2018-08-01 21:37:46 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
// Check that negation of condition is not assumed after the body anymore
|
|
|
|
contract C {
|
|
|
|
function f(uint x) public pure {
|
|
|
|
while (x == 2) {
|
|
|
|
}
|
|
|
|
assert(x != 2);
|
|
|
|
}
|
|
|
|
}
|
2019-12-04 15:39:34 +00:00
|
|
|
// ====
|
|
|
|
// SMTSolvers: z3
|