2019-08-20 13:03:45 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
|
|
|
function f(uint x, bool b) public pure {
|
|
|
|
require(x < 10);
|
|
|
|
while (x < 10) {
|
|
|
|
if (b)
|
|
|
|
++x;
|
|
|
|
else {
|
|
|
|
x = 20;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
assert(x >= 10);
|
|
|
|
}
|
|
|
|
}
|
2019-12-04 15:39:34 +00:00
|
|
|
// ====
|
|
|
|
// SMTSolvers: z3
|