Skip to content

Commit c43182e

Browse files
authored
Add some missing return statements. (#2533)
1 parent 4b4a3d0 commit c43182e

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

test_data/asm/book/operations_and_links.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ machine Main with degree: 16 {
1818
assert_eq A, 10;
1919
A <== add4(2, 2, 2, 2);
2020
assert_eq A, 8;
21+
22+
return;
2123
}
2224
}
2325

test_data/std/arith256_memory_large_test.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,5 +979,7 @@ machine Main with degree: main_degree {
979979

980980
// Left out these test cases, because the format is different...
981981
// https://github.com/0xPolygonHermez/zkevm-proverjs/blob/a4006af3d7fe4a57a85500c01dc791fb5013cef0/test/sm/sm_arith.js#L1196-L1211
982+
983+
return;
982984
}
983985
}

test_data/std/arith256_small_test.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,7 @@ machine Main with degree: main_degree {
242242
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff);
243243
assert_eq t_0_0, t_0_1, t_0_2, t_0_3, t_0_4, t_0_5, t_0_6, t_0_7, t_0_8, t_0_9, t_0_10, t_0_11, t_0_12, t_0_13, t_0_14, t_0_15, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0;
244244
assert_eq t_1_0, t_1_1, t_1_2, t_1_3, t_1_4, t_1_5, t_1_6, t_1_7, t_1_8, t_1_9, t_1_10, t_1_11, t_1_12, t_1_13, t_1_14, t_1_15, 0xfffe, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff;
245+
246+
return;
245247
}
246248
}

test_data/std/arith_large_test.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,5 +829,6 @@ machine Main with degree: main_degree {
829829
// Left out these test cases, because the format is different...
830830
// https://github.com/0xPolygonHermez/zkevm-proverjs/blob/a4006af3d7fe4a57a85500c01dc791fb5013cef0/test/sm/sm_arith.js#L1196-L1211
831831

832+
return;
832833
}
833834
}

test_data/std/arith_small_test.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ machine Main with degree: main_degree {
6969
t_0_0, t_0_1, t_1_0, t_1_1 <== div(0xabcd, 0xef01, 0, 0);
7070
assert_eq t_0_0, t_0_1, t_1_0, t_1_1, 0, 0, 0xabcd, 0xef01;
7171

72+
return;
7273
}
7374
}

0 commit comments

Comments
 (0)