solidity/test/libsolidity/smtCheckerTests/functions/functions_recursive_indirect.sol

26 lines
312 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
uint a;
function f() public {
if (a > 0)
{
a = a - 1;
g();
}
else
assert(a == 0);
}
function g() public {
if (a > 0)
{
a = a - 1;
f();
}
else
assert(a == 0);
}
}
// ----
2020-02-12 02:21:42 +00:00
// Warning: (130-144): Error trying to invoke SMT solver.