solidity/test/libsolidity/smtCheckerTests/invariants/loop_basic_for.sol
2020-12-30 12:14:30 +01:00

13 lines
181 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
// ----