2019-08-20 13:03:45 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
contract Simple {
|
|
|
|
function f(uint x) public pure {
|
|
|
|
uint y;
|
|
|
|
require(x > 0);
|
|
|
|
while (y < x)
|
|
|
|
++y;
|
|
|
|
assert(y == x);
|
|
|
|
}
|
|
|
|
}
|
2019-12-04 15:39:34 +00:00
|
|
|
// ====
|
|
|
|
// SMTSolvers: z3
|
2020-12-10 15:51:10 +00:00
|
|
|
// ----
|