solidity/test/cmdlineTests/model_checker_targets_pop_empty_chc/err

15 lines
249 B
Plaintext
Raw Normal View History

Warning: CHC: Empty array "pop" happens here.
Counterexample:
arr = []
a = 0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0, 1)
2021-03-31 15:31:23 +00:00
--> model_checker_targets_pop_empty_chc/input.sol:12:3:
|
2021-03-31 15:31:23 +00:00
12 | arr.pop();
| ^^^^^^^^^