bump mono tests after List.replace being used in List.set

This commit is contained in:
Folkert 2022-03-09 16:15:36 +01:00
parent 6c0b6751ea
commit 10b190917b
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C
4 changed files with 130 additions and 78 deletions

View File

@ -1,12 +1,25 @@
procedure List.4 (#Attr.2, #Attr.3, #Attr.4):
let Test.19 : U64 = lowlevel ListLen #Attr.2;
let Test.17 : Int1 = lowlevel NumLt #Attr.3 Test.19;
let Test.24 : U64 = lowlevel ListLen #Attr.2;
let Test.17 : Int1 = lowlevel NumLt #Attr.3 Test.24;
if Test.17 then
let Test.18 : List I64 = lowlevel ListSet #Attr.2 #Attr.3 #Attr.4;
let Test.19 : {List I64, I64} = CallByName List.58 #Attr.2 #Attr.3 #Attr.4;
let Test.18 : List I64 = StructAtIndex 0 Test.19;
inc Test.18;
dec Test.19;
ret Test.18;
else
ret #Attr.2;
procedure List.58 (#Attr.2, #Attr.3, #Attr.4):
let Test.23 : U64 = lowlevel ListLen #Attr.2;
let Test.21 : Int1 = lowlevel NumLt #Attr.3 Test.23;
if Test.21 then
let Test.22 : {List I64, I64} = lowlevel ListReplaceUnsafe #Attr.2 #Attr.3 #Attr.4;
ret Test.22;
else
let Test.20 : {List I64, I64} = Struct {#Attr.2, #Attr.4};
ret Test.20;
procedure List.7 (#Attr.2):
let Test.9 : U64 = lowlevel ListLen #Attr.2;
ret Test.9;

View File

@ -1,12 +1,25 @@
procedure List.4 (#Attr.2, #Attr.3, #Attr.4):
let Test.11 : U64 = lowlevel ListLen #Attr.2;
let Test.9 : Int1 = lowlevel NumLt #Attr.3 Test.11;
let Test.16 : U64 = lowlevel ListLen #Attr.2;
let Test.9 : Int1 = lowlevel NumLt #Attr.3 Test.16;
if Test.9 then
let Test.10 : List I64 = lowlevel ListSet #Attr.2 #Attr.3 #Attr.4;
let Test.11 : {List I64, I64} = CallByName List.58 #Attr.2 #Attr.3 #Attr.4;
let Test.10 : List I64 = StructAtIndex 0 Test.11;
inc Test.10;
dec Test.11;
ret Test.10;
else
ret #Attr.2;
procedure List.58 (#Attr.2, #Attr.3, #Attr.4):
let Test.15 : U64 = lowlevel ListLen #Attr.2;
let Test.13 : Int1 = lowlevel NumLt #Attr.3 Test.15;
if Test.13 then
let Test.14 : {List I64, I64} = lowlevel ListReplaceUnsafe #Attr.2 #Attr.3 #Attr.4;
ret Test.14;
else
let Test.12 : {List I64, I64} = Struct {#Attr.2, #Attr.4};
ret Test.12;
procedure Test.2 (Test.3):
let Test.6 : U64 = 0i64;
let Test.7 : I64 = 0i64;

View File

@ -1,59 +1,72 @@
procedure List.3 (#Attr.2, #Attr.3):
let Test.37 : U64 = lowlevel ListLen #Attr.2;
let Test.34 : Int1 = lowlevel NumLt #Attr.3 Test.37;
if Test.34 then
let Test.36 : I64 = lowlevel ListGetUnsafe #Attr.2 #Attr.3;
let Test.35 : [C {}, C I64] = Ok Test.36;
ret Test.35;
let Test.42 : U64 = lowlevel ListLen #Attr.2;
let Test.39 : Int1 = lowlevel NumLt #Attr.3 Test.42;
if Test.39 then
let Test.41 : I64 = lowlevel ListGetUnsafe #Attr.2 #Attr.3;
let Test.40 : [C {}, C I64] = Ok Test.41;
ret Test.40;
else
let Test.33 : {} = Struct {};
let Test.32 : [C {}, C I64] = Err Test.33;
ret Test.32;
let Test.38 : {} = Struct {};
let Test.37 : [C {}, C I64] = Err Test.38;
ret Test.37;
procedure List.4 (#Attr.2, #Attr.3, #Attr.4):
let Test.15 : U64 = lowlevel ListLen #Attr.2;
let Test.13 : Int1 = lowlevel NumLt #Attr.3 Test.15;
let Test.20 : U64 = lowlevel ListLen #Attr.2;
let Test.13 : Int1 = lowlevel NumLt #Attr.3 Test.20;
if Test.13 then
let Test.14 : List I64 = lowlevel ListSet #Attr.2 #Attr.3 #Attr.4;
let Test.15 : {List I64, I64} = CallByName List.58 #Attr.2 #Attr.3 #Attr.4;
let Test.14 : List I64 = StructAtIndex 0 Test.15;
inc Test.14;
dec Test.15;
ret Test.14;
else
ret #Attr.2;
procedure List.58 (#Attr.2, #Attr.3, #Attr.4):
let Test.19 : U64 = lowlevel ListLen #Attr.2;
let Test.17 : Int1 = lowlevel NumLt #Attr.3 Test.19;
if Test.17 then
let Test.18 : {List I64, I64} = lowlevel ListReplaceUnsafe #Attr.2 #Attr.3 #Attr.4;
ret Test.18;
else
let Test.16 : {List I64, I64} = Struct {#Attr.2, #Attr.4};
ret Test.16;
procedure Test.1 (Test.2):
let Test.38 : U64 = 0i64;
let Test.30 : [C {}, C I64] = CallByName List.3 Test.2 Test.38;
let Test.31 : U64 = 0i64;
let Test.29 : [C {}, C I64] = CallByName List.3 Test.2 Test.31;
let Test.8 : {[C {}, C I64], [C {}, C I64]} = Struct {Test.29, Test.30};
joinpoint Test.26:
let Test.17 : List I64 = Array [];
ret Test.17;
let Test.43 : U64 = 0i64;
let Test.35 : [C {}, C I64] = CallByName List.3 Test.2 Test.43;
let Test.36 : U64 = 0i64;
let Test.34 : [C {}, C I64] = CallByName List.3 Test.2 Test.36;
let Test.8 : {[C {}, C I64], [C {}, C I64]} = Struct {Test.34, Test.35};
joinpoint Test.31:
let Test.22 : List I64 = Array [];
ret Test.22;
in
let Test.23 : [C {}, C I64] = StructAtIndex 1 Test.8;
let Test.24 : U8 = 1i64;
let Test.25 : U8 = GetTagId Test.23;
let Test.28 : Int1 = lowlevel Eq Test.24 Test.25;
if Test.28 then
let Test.20 : [C {}, C I64] = StructAtIndex 0 Test.8;
let Test.21 : U8 = 1i64;
let Test.22 : U8 = GetTagId Test.20;
let Test.27 : Int1 = lowlevel Eq Test.21 Test.22;
if Test.27 then
let Test.19 : [C {}, C I64] = StructAtIndex 0 Test.8;
let Test.4 : I64 = UnionAtIndex (Id 1) (Index 0) Test.19;
let Test.18 : [C {}, C I64] = StructAtIndex 1 Test.8;
let Test.5 : I64 = UnionAtIndex (Id 1) (Index 0) Test.18;
let Test.16 : U64 = 0i64;
let Test.10 : List I64 = CallByName List.4 Test.2 Test.16 Test.5;
let Test.28 : [C {}, C I64] = StructAtIndex 1 Test.8;
let Test.29 : U8 = 1i64;
let Test.30 : U8 = GetTagId Test.28;
let Test.33 : Int1 = lowlevel Eq Test.29 Test.30;
if Test.33 then
let Test.25 : [C {}, C I64] = StructAtIndex 0 Test.8;
let Test.26 : U8 = 1i64;
let Test.27 : U8 = GetTagId Test.25;
let Test.32 : Int1 = lowlevel Eq Test.26 Test.27;
if Test.32 then
let Test.24 : [C {}, C I64] = StructAtIndex 0 Test.8;
let Test.4 : I64 = UnionAtIndex (Id 1) (Index 0) Test.24;
let Test.23 : [C {}, C I64] = StructAtIndex 1 Test.8;
let Test.5 : I64 = UnionAtIndex (Id 1) (Index 0) Test.23;
let Test.21 : U64 = 0i64;
let Test.10 : List I64 = CallByName List.4 Test.2 Test.21 Test.5;
let Test.11 : U64 = 0i64;
let Test.9 : List I64 = CallByName List.4 Test.10 Test.11 Test.4;
ret Test.9;
else
dec Test.2;
jump Test.26;
jump Test.31;
else
dec Test.2;
jump Test.26;
jump Test.31;
procedure Test.0 ():
let Test.7 : List I64 = Array [1i64, 2i64];

View File

@ -1,55 +1,68 @@
procedure List.3 (#Attr.2, #Attr.3):
let Test.39 : U64 = lowlevel ListLen #Attr.2;
let Test.36 : Int1 = lowlevel NumLt #Attr.3 Test.39;
if Test.36 then
let Test.38 : I64 = lowlevel ListGetUnsafe #Attr.2 #Attr.3;
let Test.37 : [C {}, C I64] = Ok Test.38;
ret Test.37;
let Test.44 : U64 = lowlevel ListLen #Attr.2;
let Test.41 : Int1 = lowlevel NumLt #Attr.3 Test.44;
if Test.41 then
let Test.43 : I64 = lowlevel ListGetUnsafe #Attr.2 #Attr.3;
let Test.42 : [C {}, C I64] = Ok Test.43;
ret Test.42;
else
let Test.35 : {} = Struct {};
let Test.34 : [C {}, C I64] = Err Test.35;
ret Test.34;
let Test.40 : {} = Struct {};
let Test.39 : [C {}, C I64] = Err Test.40;
ret Test.39;
procedure List.4 (#Attr.2, #Attr.3, #Attr.4):
let Test.19 : U64 = lowlevel ListLen #Attr.2;
let Test.17 : Int1 = lowlevel NumLt #Attr.3 Test.19;
let Test.24 : U64 = lowlevel ListLen #Attr.2;
let Test.17 : Int1 = lowlevel NumLt #Attr.3 Test.24;
if Test.17 then
let Test.18 : List I64 = lowlevel ListSet #Attr.2 #Attr.3 #Attr.4;
let Test.19 : {List I64, I64} = CallByName List.58 #Attr.2 #Attr.3 #Attr.4;
let Test.18 : List I64 = StructAtIndex 0 Test.19;
inc Test.18;
dec Test.19;
ret Test.18;
else
ret #Attr.2;
procedure Test.1 (Test.2, Test.3, Test.4):
let Test.33 : [C {}, C I64] = CallByName List.3 Test.4 Test.3;
let Test.32 : [C {}, C I64] = CallByName List.3 Test.4 Test.2;
let Test.13 : {[C {}, C I64], [C {}, C I64]} = Struct {Test.32, Test.33};
joinpoint Test.29:
let Test.20 : List I64 = Array [];
procedure List.58 (#Attr.2, #Attr.3, #Attr.4):
let Test.23 : U64 = lowlevel ListLen #Attr.2;
let Test.21 : Int1 = lowlevel NumLt #Attr.3 Test.23;
if Test.21 then
let Test.22 : {List I64, I64} = lowlevel ListReplaceUnsafe #Attr.2 #Attr.3 #Attr.4;
ret Test.22;
else
let Test.20 : {List I64, I64} = Struct {#Attr.2, #Attr.4};
ret Test.20;
procedure Test.1 (Test.2, Test.3, Test.4):
let Test.38 : [C {}, C I64] = CallByName List.3 Test.4 Test.3;
let Test.37 : [C {}, C I64] = CallByName List.3 Test.4 Test.2;
let Test.13 : {[C {}, C I64], [C {}, C I64]} = Struct {Test.37, Test.38};
joinpoint Test.34:
let Test.25 : List I64 = Array [];
ret Test.25;
in
let Test.26 : [C {}, C I64] = StructAtIndex 1 Test.13;
let Test.27 : U8 = 1i64;
let Test.28 : U8 = GetTagId Test.26;
let Test.31 : Int1 = lowlevel Eq Test.27 Test.28;
if Test.31 then
let Test.23 : [C {}, C I64] = StructAtIndex 0 Test.13;
let Test.24 : U8 = 1i64;
let Test.25 : U8 = GetTagId Test.23;
let Test.30 : Int1 = lowlevel Eq Test.24 Test.25;
if Test.30 then
let Test.22 : [C {}, C I64] = StructAtIndex 0 Test.13;
let Test.6 : I64 = UnionAtIndex (Id 1) (Index 0) Test.22;
let Test.21 : [C {}, C I64] = StructAtIndex 1 Test.13;
let Test.7 : I64 = UnionAtIndex (Id 1) (Index 0) Test.21;
let Test.31 : [C {}, C I64] = StructAtIndex 1 Test.13;
let Test.32 : U8 = 1i64;
let Test.33 : U8 = GetTagId Test.31;
let Test.36 : Int1 = lowlevel Eq Test.32 Test.33;
if Test.36 then
let Test.28 : [C {}, C I64] = StructAtIndex 0 Test.13;
let Test.29 : U8 = 1i64;
let Test.30 : U8 = GetTagId Test.28;
let Test.35 : Int1 = lowlevel Eq Test.29 Test.30;
if Test.35 then
let Test.27 : [C {}, C I64] = StructAtIndex 0 Test.13;
let Test.6 : I64 = UnionAtIndex (Id 1) (Index 0) Test.27;
let Test.26 : [C {}, C I64] = StructAtIndex 1 Test.13;
let Test.7 : I64 = UnionAtIndex (Id 1) (Index 0) Test.26;
let Test.15 : List I64 = CallByName List.4 Test.4 Test.2 Test.7;
let Test.14 : List I64 = CallByName List.4 Test.15 Test.3 Test.6;
ret Test.14;
else
dec Test.4;
jump Test.29;
jump Test.34;
else
dec Test.4;
jump Test.29;
jump Test.34;
procedure Test.0 ():
let Test.10 : U64 = 0i64;