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

13 lines
280 B
Solidity
Raw Normal View History

contract C {
uint x = f(2);
function f(uint y) internal pure returns (uint) {
assert(y > 1000);
return y;
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2021-03-31 15:11:54 +00:00
// Warning 6328: (83-99): CHC: Assertion violation happens here.\nCounterexample:\nx = 0\n\nTransaction trace:\nC.constructor()