2018-08-01 21:37:46 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
contract C {
|
|
|
|
function f(uint x) public pure {
|
|
|
|
uint a = 3;
|
|
|
|
if (x > 10) {
|
|
|
|
++a;
|
|
|
|
}
|
|
|
|
assert(a == 3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// Warning 4661: (159-173): Assertion violation happens here
|