mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
75 lines
1.2 KiB
Plaintext
75 lines
1.2 KiB
Plaintext
|
Warning: CHC: Underflow (resulting value less than 0) happens here.
|
||
|
Counterexample:
|
||
|
arr = []
|
||
|
a = 0
|
||
|
x = 0
|
||
|
|
||
|
Transaction trace:
|
||
|
test.constructor()
|
||
|
State: arr = []
|
||
|
test.f(0, 0)
|
||
|
--> model_checker_targets_all_chc/input.sol:8:3:
|
||
|
|
|
||
|
8 | --x;
|
||
|
| ^^^
|
||
|
|
||
|
Warning: CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
||
|
Counterexample:
|
||
|
arr = []
|
||
|
a = 0
|
||
|
x = 1
|
||
|
|
||
|
Transaction trace:
|
||
|
test.constructor()
|
||
|
State: arr = []
|
||
|
test.f(0, 2)
|
||
|
--> model_checker_targets_all_chc/input.sol:9:3:
|
||
|
|
|
||
|
9 | x + type(uint).max;
|
||
|
| ^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
Warning: CHC: Division by zero happens here.
|
||
|
Counterexample:
|
||
|
arr = []
|
||
|
a = 0
|
||
|
x = 0
|
||
|
|
||
|
Transaction trace:
|
||
|
test.constructor()
|
||
|
State: arr = []
|
||
|
test.f(0, 1)
|
||
|
--> model_checker_targets_all_chc/input.sol:10:3:
|
||
|
|
|
||
|
10 | 2 / x;
|
||
|
| ^^^^^
|
||
|
|
||
|
Warning: CHC: Assertion violation happens here.
|
||
|
Counterexample:
|
||
|
arr = []
|
||
|
a = 0
|
||
|
x = 0
|
||
|
|
||
|
Transaction trace:
|
||
|
test.constructor()
|
||
|
State: arr = []
|
||
|
test.f(0, 1)
|
||
|
--> model_checker_targets_all_chc/input.sol:12:3:
|
||
|
|
|
||
|
12 | assert(x > 0);
|
||
|
| ^^^^^^^^^^^^^
|
||
|
|
||
|
Warning: CHC: Empty array "pop" happens here.
|
||
|
Counterexample:
|
||
|
arr = []
|
||
|
a = 0
|
||
|
x = 0
|
||
|
|
||
|
Transaction trace:
|
||
|
test.constructor()
|
||
|
State: arr = []
|
||
|
test.f(0, 1)
|
||
|
--> model_checker_targets_all_chc/input.sol:13:3:
|
||
|
|
|
||
|
13 | arr.pop();
|
||
|
| ^^^^^^^^^
|