solidity/test/libsolidity/smtCheckerTests/functions/functions_recursive.sol
2021-04-08 21:03:39 +02:00

18 lines
154 B
Solidity

contract C
{
uint a;
function g() public {
if (a > 0)
{
a = a - 1;
g();
}
else
assert(a == 0);
}
}
// ====
// SMTEngine: all
// ----