[SMTChecker] Report values for block, msg and tx variables in counterexamples

This commit is contained in:
Leo Alt
2021-10-05 15:19:10 +02:00
parent ecfcca1a27
commit 4c2b661eaa
105 changed files with 390 additions and 250 deletions
@@ -1,13 +1,13 @@
Warning: CHC: Underflow (resulting value less than 0) happens here.
Counterexample:
arr = []
a = 0
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0, 0)
test.f(0x0, 0)
--> model_checker_targets_underflow_overflow_assert_chc/input.sol:7:3:
|
7 | --x;
@@ -16,13 +16,13 @@ test.f(0, 0)
Warning: CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
Counterexample:
arr = []
a = 0
a = 0x0
x = 1
Transaction trace:
test.constructor()
State: arr = []
test.f(0, 2)
test.f(0x0, 2)
--> model_checker_targets_underflow_overflow_assert_chc/input.sol:8:3:
|
8 | x + type(uint).max;
@@ -31,13 +31,13 @@ test.f(0, 2)
Warning: CHC: Assertion violation happens here.
Counterexample:
arr = []
a = 0
a = 0x0
x = 0
Transaction trace:
test.constructor()
State: arr = []
test.f(0, 1)
test.f(0x0, 1)
--> model_checker_targets_underflow_overflow_assert_chc/input.sol:11:3:
|
11 | assert(x > 0);