2020-08-18 17:25:36 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract C {
|
|
|
|
function f(uint b) public pure {
|
|
|
|
require(b < 3);
|
|
|
|
uint c = (b > 0) ? b++ : ++b;
|
|
|
|
assert(c == 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-09-25 17:09:06 +00:00
|
|
|
// Warning 6328: (132-146): CHC: Assertion violation happens here.
|