2021-07-07 10:31:09 +00:00
|
|
|
Warning: CHC: Division by zero happens here.
|
|
|
|
Counterexample:
|
|
|
|
arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
a = 0x0
|
2021-07-07 10:31:09 +00:00
|
|
|
x = 0
|
|
|
|
|
|
|
|
Transaction trace:
|
|
|
|
test.constructor()
|
|
|
|
State: arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
test.f(0x0, 1)
|
2021-07-07 10:31:09 +00:00
|
|
|
--> model_checker_targets_default_chc/input.sol:9:3:
|
|
|
|
|
|
|
|
|
9 | 2 / x;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
Warning: CHC: Assertion violation happens here.
|
|
|
|
Counterexample:
|
|
|
|
arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
a = 0x0
|
2021-07-07 10:31:09 +00:00
|
|
|
x = 0
|
|
|
|
|
|
|
|
Transaction trace:
|
|
|
|
test.constructor()
|
|
|
|
State: arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
test.f(0x0, 1)
|
2021-07-07 10:31:09 +00:00
|
|
|
--> model_checker_targets_default_chc/input.sol:11:3:
|
|
|
|
|
|
|
|
|
11 | assert(x > 0);
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Warning: CHC: Empty array "pop" happens here.
|
|
|
|
Counterexample:
|
|
|
|
arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
a = 0x0
|
2021-07-07 10:31:09 +00:00
|
|
|
x = 0
|
|
|
|
|
|
|
|
Transaction trace:
|
|
|
|
test.constructor()
|
|
|
|
State: arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
test.f(0x0, 1)
|
2021-07-07 10:31:09 +00:00
|
|
|
--> model_checker_targets_default_chc/input.sol:12:3:
|
|
|
|
|
|
|
|
|
12 | arr.pop();
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
Warning: CHC: Out of bounds access happens here.
|
|
|
|
Counterexample:
|
|
|
|
arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
a = 0x0
|
2021-07-07 10:31:09 +00:00
|
|
|
x = 0
|
|
|
|
|
|
|
|
Transaction trace:
|
|
|
|
test.constructor()
|
|
|
|
State: arr = []
|
2021-09-16 17:18:26 +00:00
|
|
|
test.f(0x0, 1)
|
2021-07-07 10:31:09 +00:00
|
|
|
--> model_checker_targets_default_chc/input.sol:13:3:
|
|
|
|
|
|
|
|
|
13 | arr[x];
|
|
|
|
| ^^^^^^
|