2019-09-16 18:14:27 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
|
|
|
function f(uint x, bool b) public pure {
|
|
|
|
require(x < 10);
|
|
|
|
for (; x < 10; ) {
|
|
|
|
if (b)
|
|
|
|
++x;
|
|
|
|
else {
|
|
|
|
x = 20;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
assert(x >= 10);
|
|
|
|
}
|
|
|
|
}
|
2019-12-04 15:39:34 +00:00
|
|
|
// ====
|
|
|
|
// SMTSolvers: z3
|