1 # Add the first 10 numbers, and return the result in the exit code. 2 # 3 # To run: 4 # $ ./translate_mu apps/browse.mu 5 # $ ./a.elf 6 # Expected result: 7 # $ echo $? 8 # 55 9 10 fn main -> result/ebx: int { 11 result <- copy 0 12 var i/eax: int <- copy 1 13 { 14 compare i, 0xa 15 break-if-> 16 result <- add i 17 i <- increment 18 loop 19 } 20 }