mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			1010 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1010 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C
 | |
| {
 | |
| 	function f() public payable {
 | |
| 		g();
 | |
| 	}
 | |
| 	function g() internal {
 | |
| 		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: (81-117): CHC: Assertion violation happens here.
 | |
| // Warning 6328: (121-163): CHC: Assertion violation happens here.
 | |
| // Warning 6328: (167-206): CHC: Assertion violation happens here.
 | |
| // Warning 6328: (210-242): CHC: Assertion violation happens here.
 | |
| // Warning 6328: (246-277): CHC: Assertion violation happens here.
 | |
| // Warning 6328: (330-354): CHC: Assertion violation happens here.
 | |
| // Warning 6328: (358-386): CHC: Assertion violation happens here.
 | |
| // Warning 6328: (390-413): CHC: Assertion violation happens here.
 |