1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
export function w $main() { @start.1 %.1 =l alloc4 4 %.2 =l alloc8 8 %.4 =l alloc4 4 @body.2 storew 0, %.1 %.3 =w cnew 0, 0 jnz %.3, @cond_true.3, @cond_false.4 @cond_true.3 jmp @cond_join.5 @cond_false.4 %.5 =w loadw %.1 storew %.5, %.4 @cond_join.5 %.6 =l phi @cond_true.3 0, @cond_false.4 %.4 storel %.6, %.2 %.7 =l loadl %.2 %.8 =w loadw %.7 ret %.8 }