mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			391 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			391 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| // SPDX-License-Identifier: MIT
 | |
| pragma solidity >=0.8.13;
 | |
| 
 | |
| contract C {
 | |
|     function f(uint x) external pure {
 | |
|         uint t = msb(x);
 | |
|         assert(t == 0); // should fail
 | |
|     }
 | |
| }
 | |
| 
 | |
| /// @custom:smtchecker abstract-function-nondet
 | |
| function msb(uint256 x) pure returns (uint256 result) {}
 | |
| 
 | |
| // ====
 | |
| // SMTEngine: chc
 | |
| // ----
 | |
| // Warning 6328: (144-158): CHC: Assertion violation happens here.
 |