1 # Increment a number, and return the result in the exit code. 2 # 3 # To run: 4 # $ ./translate_mu apps/ex2.2.mu 5 # $ ./a.elf 6 # Expected result: 7 # $ echo $? 8 # 7 9 10 fn main -> result/ebx: int { 11 result <- foo 12 } 13 14 fn foo -> result/ebx: int { 15 var n: int 16 copy-to n, 3 17 increment n 18 result <- copy n 19 }