solidity/test/cmdlineTests/model_checker_targets_overflow_chc/err

15 lines
293 B
Plaintext
Raw Normal View History

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)
2021-03-31 15:31:23 +00:00
--> model_checker_targets_overflow_chc/input.sol:8:3:
|
2021-03-31 15:31:23 +00:00
8 | x + type(uint).max;
| ^^^^^^^^^^^^^^^^^^