[SMTChecker] Adding unary increment and decrement as under/overflow verification targets for the CHC engine

This commit is contained in:
Martin Blicha
2020-12-11 17:41:50 +01:00
parent ccd1f283aa
commit 8927015e5a
40 changed files with 150 additions and 59 deletions
@@ -9,3 +9,5 @@ contract C {
}
}
}
// ----
// Warning 4984: (112-115): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
@@ -11,4 +11,5 @@ contract C {
}
}
// ----
// Warning 4984: (112-115): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.
// Warning 2529: (150-157): CHC: Empty array "pop" happens here.\nCounterexample:\na = []\nl = 0\n\n\nTransaction trace:\nconstructor()\nState: a = []\nf(0)
@@ -11,3 +11,5 @@ contract C {
assert(x[0] == 42);
}
}
// ----
// Warning 4984: (174-177): CHC: Overflow (resulting value larger than 2**256 - 1) might happen here.