2018-10-18 13:03:52 +00:00
|
|
|
pragma experimental SMTChecker;
|
|
|
|
|
|
|
|
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;
|
|
|
|
assert(x + 2 > block.number);
|
2020-05-05 11:33:28 +00:00
|
|
|
assert(block.timestamp > 10);
|
2018-10-18 13:03:52 +00:00
|
|
|
assert(gasleft() > 100);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// Warning: (79-115): Assertion violation happens here
|
|
|
|
// Warning: (119-161): Assertion violation happens here
|
|
|
|
// Warning: (165-204): Assertion violation happens here
|
|
|
|
// Warning: (208-240): Assertion violation happens here
|
|
|
|
// Warning: (244-275): Assertion violation happens here
|
2020-02-12 02:21:42 +00:00
|
|
|
// Warning: (311-316): Overflow (resulting value larger than 2**256 - 1) happens here
|
2019-02-06 10:12:02 +00:00
|
|
|
// Warning: (304-332): Assertion violation happens here
|
2020-05-05 11:33:28 +00:00
|
|
|
// Warning: (336-364): Assertion violation happens here
|
|
|
|
// Warning: (368-391): Assertion violation happens here
|