From 0be8e8007299be1eaaf778e3539b2eafcb637c8b Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 10 Feb 2020 00:47:44 -0800 Subject: 6004 --- apps/ex3.mu | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/ex3.mu (limited to 'apps') 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 + } +} -- cgit 1.4.1-2-gfad0