solidity/test/libsolidity/smtCheckerTests/functions/function_call_state_var_init.sol
2021-01-04 10:03:16 +01:00

13 lines
289 B
Solidity

pragma experimental SMTChecker;
contract C {
uint x = f(2);
function f(uint y) internal pure returns (uint) {
assert(y > 1000);
return y;
}
}
// ----
// Warning 6328: (116-132): CHC: Assertion violation happens here.\nCounterexample:\nx = 0\n\nTransaction trace:\nC.constructor()