Skip to content

Commit beed0f6

Browse files
author
Leonardo Alt
committed
Set tests that CVC4 can't handle to Z3 only
1 parent 8d5f5a5 commit beed0f6

File tree

61 files changed

+122
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+122
-5
lines changed

test/libsolidity/smtCheckerTests/inheritance/implicit_constructor_hierarchy.sol

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ contract C is B {
1414
assert(x == 2);
1515
}
1616
}
17+
// ====
18+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/inheritance/implicit_only_constructor_hierarchy.sol

+2
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ contract C is B {
1818
assert(x == 0);
1919
}
2020
}
21+
// ====
22+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/invariants/loop_basic.sol

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ contract Simple {
99
assert(y == x);
1010
}
1111
}
12+
// ====
13+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/invariants/loop_basic_for.sol

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ contract Simple {
77
assert(y == x);
88
}
99
}
10-
// ----
10+
// ====
11+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/invariants/loop_nested.sol

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ contract Simple {
1515
assert(y == x);
1616
}
1717
}
18+
// ====
19+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/invariants/loop_nested_for.sol

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ contract Simple {
1212
assert(y == x);
1313
}
1414
}
15+
// ====
16+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/invariants/state_machine_1.sol

+2
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ contract C {
3030
assert(x < 9);
3131
}
3232
}
33+
// ====
34+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/invariants/state_machine_1_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ contract C {
2828
assert(x < 2);
2929
}
3030
}
31+
// ====
32+
// SMTSolvers: z3
3133
// ----
3234
// Warning: (311-324): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/do_while_1_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ contract C
1111
assert(x < 14);
1212
}
1313
}
14+
// ====
15+
// SMTSolvers: z3
1416
// ----
1517
// Warning: (150-155): Overflow (resulting value larger than 2**256 - 1) happens here
1618
// Warning: (179-193): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/do_while_1_false_positives.sol

+2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ contract C
1313
assert(x > 0);
1414
}
1515
}
16+
// ====
17+
// SMTSolvers: z3
1618
// ----
1719
// Warning: (150-155): Overflow (resulting value larger than 2**256 - 1) happens here

test/libsolidity/smtCheckerTests/loops/do_while_break.sol

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ contract C {
1010
assert(x == 0);
1111
}
1212
}
13+
// ====
14+
// SMTSolvers: z3
1315
// ----
1416
// Warning: (104-109): Unreachable code.
1517
// Warning: (122-128): Unreachable code.

test/libsolidity/smtCheckerTests/loops/do_while_break_2.sol

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ contract C {
1414
assert(a == 1);
1515
}
1616
}
17+
// ====
18+
// SMTSolvers: z3
1719
// ----
1820
// Warning: (128-133): Unreachable code.
1921
// Warning: (147-151): Unreachable code.

test/libsolidity/smtCheckerTests/loops/do_while_break_2_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ contract C {
1414
assert(a == 2);
1515
}
1616
}
17+
// ====
18+
// SMTSolvers: z3
1719
// ----
1820
// Warning: (128-133): Unreachable code.
1921
// Warning: (147-151): Unreachable code.

test/libsolidity/smtCheckerTests/loops/do_while_break_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ contract C {
1010
assert(x == 1);
1111
}
1212
}
13+
// ====
14+
// SMTSolvers: z3
1315
// ----
1416
// Warning: (104-109): Unreachable code.
1517
// Warning: (122-128): Unreachable code.

test/libsolidity/smtCheckerTests/loops/do_while_continue.sol

+2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ contract C {
1010
assert(x == 0);
1111
}
1212
}
13+
// ====
14+
// SMTSolvers: z3
1315
// ----
1416
// Warning: (107-112): Unreachable code.

test/libsolidity/smtCheckerTests/loops/for_1_break.sol

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ contract C
1515
assert(x >= 10);
1616
}
1717
}
18+
// ====
19+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/for_1_break_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ contract C
1414
assert(x >= 10);
1515
}
1616
}
17+
// ====
18+
// SMTSolvers: z3
1719
// ----
1820
// Warning: (201-216): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_1_continue.sol

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ contract C
1313
assert(x > 0);
1414
}
1515
}
16+
// ====
17+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/for_1_continue_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ contract C
1414
assert(x > 15);
1515
}
1616
}
17+
// ====
18+
// SMTSolvers: z3
1719
// ----
1820
// Warning: (185-199): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_1_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ contract C
1111
assert(x < 14);
1212
}
1313
}
14+
// ====
15+
// SMTSolvers: z3
1416
// ----
1517
// Warning: (176-181): Overflow (resulting value larger than 2**256 - 1) happens here
1618
// Warning: (189-203): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_1_false_positive.sol

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ contract C
1313
assert(x > 0);
1414
}
1515
}
16+
// ====
17+
// SMTSolvers: z3
1618
// ----
1719
// Warning: (296-309): Error trying to invoke SMT solver.
1820
// Warning: (176-181): Overflow (resulting value larger than 2**256 - 1) happens here

test/libsolidity/smtCheckerTests/loops/for_break_direct.sol

+2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ contract C
88
assert(x == 0);
99
}
1010
}
11+
// ====
12+
// SMTSolvers: z3
1113
// ----
1214
// Warning: (102-105): Unreachable code.

test/libsolidity/smtCheckerTests/loops/for_loop_1.sol

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ contract C {
66
assert(x == 2);
77
}
88
}
9+
// ====
10+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/for_loop_2.sol

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ contract C {
66
}
77
}
88
}
9+
// ====
10+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/for_loop_3.sol

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ contract C {
66
}
77
}
88
}
9+
// ====
10+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/for_loop_4.sol

+2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ contract C {
66
}
77
}
88
}
9+
// ====
10+
// SMTSolvers: z3
911
// ----
1012
// Warning: (136-150): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_loop_5.sol

+2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ contract C {
88
assert(y == 3);
99
}
1010
}
11+
// ====
12+
// SMTSolvers: z3
1113
// ----
1214
// Warning: (167-181): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_loop_6.sol

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ contract C {
99
assert(y < 4);
1010
}
1111
}
12-
// ----
12+
// ====
13+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/for_loop_array_assignment_memory_memory.sol

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ contract LoopFor2 {
1414
assert(b[0] == 900);
1515
}
1616
}
17+
// ====
18+
// SMTSolvers: z3
1719
// ----
1820
// Warning: (281-301): Assertion violation happens here
1921
// Warning: (305-324): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_loop_array_assignment_memory_storage.sol

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ contract LoopFor2 {
1616
assert(b[0] == 900);
1717
}
1818
}
19+
// ====
20+
// SMTSolvers: z3
1921
// ----
2022
// Warning: (274-294): Assertion violation happens here
2123
// Warning: (321-340): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_loop_array_assignment_storage_memory.sol

+2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ contract LoopFor2 {
1717
assert(b[0] == 900);
1818
}
1919
}
20+
// ====
21+
// SMTSolvers: z3
2022
// ----
2123
// Warning: (312-331): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_loop_array_assignment_storage_storage.sol

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ contract LoopFor2 {
1717
assert(b[0] == 900);
1818
}
1919
}
20+
// ====
21+
// SMTSolvers: z3
2022
// ----
2123
// Warning: (290-309): Assertion violation happens here
2224
// Warning: (313-332): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/for_loop_trivial_condition_1.sol

+2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ contract C {
66
assert(x == 2);
77
}
88
}
9+
// ====
10+
// SMTSolvers: z3
911
// ----
1012
// Warning: (122-128): Condition is always true.

test/libsolidity/smtCheckerTests/loops/for_loop_trivial_condition_2.sol

+2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ contract C {
99
assert(x == 2);
1010
}
1111
}
12+
// ====
13+
// SMTSolvers: z3
1214
// ----
1315
// Warning: (138-144): Condition is always true.

test/libsolidity/smtCheckerTests/loops/for_loop_trivial_condition_3.sol

+2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ contract C {
1313
assert(x == 2);
1414
}
1515
}
16+
// ====
17+
// SMTSolvers: z3
1618
// ----
1719
// Warning: (115-121): Unused local variable.

test/libsolidity/smtCheckerTests/loops/for_loop_unreachable_1.sol

+2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ contract C {
66
assert(x == 2);
77
}
88
}
9+
// ====
10+
// SMTSolvers: z3
911
// ----
1012
// Warning: (122-127): Condition is always false.

test/libsolidity/smtCheckerTests/loops/while_1.sol

+2
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ contract C
1313
assert(x > 0);
1414
}
1515
}
16+
// ====
17+
// SMTSolvers: z3
1618
// ----

test/libsolidity/smtCheckerTests/loops/while_1_break.sol

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ contract C
1515
assert(x >= 10);
1616
}
1717
}
18+
// ====
19+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/while_1_break_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ contract C
1515
assert(x >= 10);
1616
}
1717
}
18+
// ====
19+
// SMTSolvers: z3
1820
// ----
1921
// Warning: (218-233): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/while_1_continue.sol

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ contract C
1414
assert(x >= 10);
1515
}
1616
}
17+
// ====
18+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/while_1_continue_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ contract C
1717
assert(x >= 17);
1818
}
1919
}
20+
// ====
21+
// SMTSolvers: z3
2022
// ----
2123
// Warning: (169-176): Unreachable code.
2224
// Warning: (227-242): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/while_1_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ contract C
1010
assert(x < 14);
1111
}
1212
}
13+
// ====
14+
// SMTSolvers: z3
1315
// ----
1416
// Warning: (139-153): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/while_1_infinite.sol

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ contract C
1818
assert(x > 0);
1919
}
2020
}
21-
// ----
21+
// ====
22+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/while_2.sol

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ contract C {
1111
assert(x < 2);
1212
}
1313
}
14+
// ====
15+
// SMTSolvers: z3

test/libsolidity/smtCheckerTests/loops/while_2_break.sol

+2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ contract C
1212
assert(x == 1);
1313
}
1414
}
15+
// ====
16+
// SMTSolvers: z3
1517
// ----
1618
// Warning: (128-131): Unreachable code.

test/libsolidity/smtCheckerTests/loops/while_2_break_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ contract C
1111
assert(x == 2);
1212
}
1313
}
14+
// ====
15+
// SMTSolvers: z3
1416
// ----
1517
// Warning: (120-123): Unreachable code.
1618
// Warning: (131-145): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/while_2_fail.sol

+2
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ contract C {
1111
assert(x == 2);
1212
}
1313
}
14+
// ====
15+
// SMTSolvers: z3
1416
// ----

test/libsolidity/smtCheckerTests/loops/while_break_direct.sol

+2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ contract C
99
assert(x == 0);
1010
}
1111
}
12+
// ====
13+
// SMTSolvers: z3
1214
// ----
1315
// Warning: (98-104): Condition is always true.

test/libsolidity/smtCheckerTests/loops/while_loop_array_assignment_memory_memory.sol

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ contract LoopFor2 {
1616
assert(b[0] == 900);
1717
}
1818
}
19+
// ====
20+
// SMTSolvers: z3
1921
// ----
2022
// Warning: (281-301): Assertion violation happens here
2123
// Warning: (305-324): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/while_loop_array_assignment_memory_storage.sol

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ contract LoopFor2 {
2020
assert(b[0] == 900);
2121
}
2222
}
23+
// ====
24+
// SMTSolvers: z3
2325
// ----
2426
// Warning: (362-382): Assertion violation happens here
2527
// Warning: (409-428): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/while_loop_simple_1.sol

+2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ contract C {
99
assert(x == 2);
1010
}
1111
}
12+
// ====
13+
// SMTSolvers: z3
1214
// ----
1315
// Warning: (194-208): Assertion violation happens here

test/libsolidity/smtCheckerTests/loops/while_loop_simple_2.sol

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ contract C {
77
}
88
}
99
}
10+
// ====
11+
// SMTSolvers: z3

0 commit comments

Comments
 (0)