mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
28 lines
973 B
Solidity
28 lines
973 B
Solidity
contract C
|
|
{
|
|
function f() public payable {
|
|
assert(msg.sender == block.coinbase);
|
|
assert(block.difficulty == block.gaslimit);
|
|
assert(block.number == block.timestamp);
|
|
assert(tx.gasprice == msg.value);
|
|
assert(tx.origin == msg.sender);
|
|
uint x = block.number;
|
|
unchecked { x += 2; }
|
|
assert(x > block.number);
|
|
assert(block.timestamp > 10);
|
|
assert(gasleft() > 100);
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: all
|
|
// SMTIgnoreCex: yes
|
|
// ----
|
|
// Warning 6328: (46-82): CHC: Assertion violation happens here.
|
|
// Warning 6328: (86-128): CHC: Assertion violation happens here.
|
|
// Warning 6328: (132-171): CHC: Assertion violation happens here.
|
|
// Warning 6328: (175-207): CHC: Assertion violation happens here.
|
|
// Warning 6328: (211-242): CHC: Assertion violation happens here.
|
|
// Warning 6328: (295-319): CHC: Assertion violation happens here.
|
|
// Warning 6328: (323-351): CHC: Assertion violation happens here.
|
|
// Warning 6328: (355-378): CHC: Assertion violation happens here.
|