mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			354 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			354 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| pragma experimental SMTChecker;
 | |
| 
 | |
| contract C {
 | |
| 	function f(bytes memory data) public pure {
 | |
| 		bytes32 k = keccak256(data);
 | |
| 		fi(data, k);
 | |
| 	}
 | |
| 	function fi(bytes memory data, bytes32 k) internal pure {
 | |
| 		bytes32 h = sha256(data);
 | |
| 		assert(h == k);
 | |
| 	}
 | |
| }
 | |
| // ====
 | |
| // SMTIgnoreCex: yes
 | |
| // ----
 | |
| // Warning 6328: (229-243): CHC: Assertion violation happens here.
 |