1 # Add two numbers, and return the result in the exit code. 2 # 3 # To run: 4 # $ ./translate_mu apps/ex2.mu 5 # $ ./a.elf 6 # Expected result: 7 # $ echo $? 8 # 7 9 10 fn main -> result/ebx: int { 11 result <- do-add 3 4 12 } 13 14 fn do-add a: int, b: int -> result/ebx: int { 15 result <- copy a 16 result <- add b 17 }