solidity/test/libsolidity/smtCheckerTests/functions/functions_recursive.sol
2020-03-11 16:29:07 +01:00

17 lines
160 B
Solidity

pragma experimental SMTChecker;
contract C
{
uint a;
function g() public {
if (a > 0)
{
a = a - 1;
g();
}
else
assert(a == 0);
}
}
// ----