Explorar o código

Merge branch 'master' of github.com:taddeus/peephole

Jayke Meijer %!s(int64=14) %!d(string=hai) anos
pai
achega
67b42ca45d
Modificáronse 1 ficheiros con 16 adicións e 0 borrados
  1. 16 0
      benchmarks/wiki.c

+ 16 - 0
benchmarks/wiki.c

@@ -0,0 +1,16 @@
+#include <stdio.h>
+
+int main(void)
+{
+    int a = 3, b = 5, d = 5, x = 100;
+    int c = 0;
+    if (a > b)
+    {
+        int c = a + b;
+        d = 2;
+    }
+    
+    c = 4;
+    
+    return b * d + c;
+}