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-09 14:12:55 +00:00
|
|
|
// Warning 6328: (132-146): Assertion violation happens here.
|