roc/compiler/test_mono/generated/is_nil.txt
ayazhafiz e655ab7d3b Module comments for reset-reuse
Figuring out what this module was doing, and why, took me a bit less
than half an hour. We should document what's happening for others in the
future so they don't need to follow up on Zulip necessarily.
2022-01-13 16:33:23 -05:00

18 lines
765 B
Text

procedure Test.2 (Test.3):
let Test.12 : Builtin(Bool) = 1i64;
let Test.13 : Builtin(Bool) = GetTagId Test.3;
let Test.14 : Builtin(Bool) = lowlevel Eq Test.12 Test.13;
if Test.14 then
let Test.10 : Builtin(Bool) = true;
ret Test.10;
else
let Test.11 : Builtin(Bool) = false;
ret Test.11;
procedure Test.0 ():
let Test.15 : Builtin(Int(I64)) = 2i64;
let Test.16 : Union(NullableUnwrapped { nullable_id: true, other_fields: [Builtin(Int(I64)), RecursivePointer] }) = Nil ;
let Test.9 : Union(NullableUnwrapped { nullable_id: true, other_fields: [Builtin(Int(I64)), RecursivePointer] }) = Cons Test.15 Test.16;
let Test.8 : Builtin(Bool) = CallByName Test.2 Test.9;
dec Test.9;
ret Test.8;