solidity/test/libsolidity/smtCheckerTests/invariants/loop_basic_for.sol
2019-12-09 15:32:08 +01:00

12 lines
173 B
Solidity

pragma experimental SMTChecker;
contract Simple {
function f(uint x) public pure {
uint y;
for (y = 0; y < x; ++y) {}
assert(y == x);
}
}
// ====
// SMTSolvers: z3