about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--apps/ex3.mu11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/ex3.mu b/apps/ex3.mu
new file mode 100644
index 00000000..aaef1175
--- /dev/null
+++ b/apps/ex3.mu
@@ -0,0 +1,11 @@
+fn main -> result/ebx: int {
+  result <- copy 0
+  var i/eax: int <- copy 1
+  {
+    compare i, 0xa
+    break-if->
+    result <- add i
+    i <- increment
+    loop
+  }
+}