mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			339 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			339 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| pragma experimental SMTChecker;
 | |
| 
 | |
| contract C {
 | |
| 	function f(bool b, uint a) pure public {
 | |
| 		require(a <= 256);
 | |
| 		if (b)
 | |
| 			revert();
 | |
| 		uint c = a + 1;
 | |
| 		if (b)
 | |
| 			c--;
 | |
| 		else
 | |
| 			c++;
 | |
| 		assert(c == a);
 | |
| 	}
 | |
| }
 | |
| // ----
 | |
| // Warning 6328: (183-197): CHC: Assertion violation happens here.
 | |
| // Warning 6838: (155-156): BMC: Condition is always false.
 |