mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
29 lines
609 B
Solidity
29 lines
609 B
Solidity
pragma experimental SMTChecker;
|
|
|
|
contract C {
|
|
event Nudge();
|
|
event SomeArgs(uint, uint);
|
|
event Caller(address, uint);
|
|
function f() payable external {
|
|
emit Nudge();
|
|
emit SomeArgs(134, 567);
|
|
emit Caller(msg.sender, msg.value);
|
|
}
|
|
function g_data() pure internal returns (uint) {
|
|
assert(true);
|
|
}
|
|
function g() external {
|
|
emit SomeArgs(g_data(), g_data());
|
|
}
|
|
bool x = true;
|
|
function h_data() view internal returns (uint) {
|
|
assert(x);
|
|
}
|
|
function h() external {
|
|
x = false;
|
|
emit SomeArgs(h_data(), h_data());
|
|
}
|
|
}
|
|
// ----
|
|
// Warning 6328: (440-449): CHC: Assertion violation happens here.
|