Skip to content

Commit

Permalink
fix codegen tests
Browse files Browse the repository at this point in the history
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
  • Loading branch information
xermicus committed Apr 3, 2024
1 parent cd0af6d commit 6d989c7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ contract c1 {
int p = a + get(a/(2*b), b);

bool e = (ast == bst) || p < 2;
// CHECK: ty:bool %2.cse_temp = (strcmp (%ast) (%bst))
// CHECK: branchcond %2.cse_temp, block2, block1
// CHECK: ty:bool %3.cse_temp = (strcmp (%ast) (%bst))
// CHECK: branchcond %3.cse_temp, block2, block1
bool e2 = e;
// CHECK: branchcond (strcmp ((builtin Concat (%ast, %bst))) (%cst)), block3, block4
if (string.concat(ast, bst) == cst) {
Expand All @@ -315,7 +315,7 @@ contract c1 {
emit testEvent(a + get(a/(2*b) -p, b), p, string.concat(ast, bst));
}

// CHECK: branchcond %2.cse_temp, block21, block22
// CHECK: branchcond %3.cse_temp, block21, block22
if (ast == bst) {
ast = string.concat(ast, "b");
}
Expand Down

0 comments on commit 6d989c7

Please sign in to comment.