roc/crates/compiler/test_mono/generated/if_multi_branch.txt
kilianv 9717747a54
Update tests
not all tests pass yet. Will look at them with Ayaz.
2022-09-20 14:42:03 -05:00

21 lines
491 B
Text

procedure Bool.1 ():
let Bool.11 : Int1 = false;
ret Bool.11;
procedure Bool.2 ():
let Bool.12 : Int1 = true;
ret Bool.12;
procedure Test.0 ():
let Test.4 : Int1 = CallByName Bool.2;
if Test.4 then
let Test.5 : I64 = 1i64;
ret Test.5;
else
let Test.2 : Int1 = CallByName Bool.1;
if Test.2 then
let Test.3 : I64 = 2i64;
ret Test.3;
else
let Test.1 : I64 = 3i64;
ret Test.1;