mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			575 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			575 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
Warning: CHC: Underflow (resulting value less than 0) happens here.
 | 
						|
Counterexample:
 | 
						|
arr = []
 | 
						|
a = 0x0
 | 
						|
x = 0
 | 
						|
 | 
						|
Transaction trace:
 | 
						|
test.constructor()
 | 
						|
State: arr = []
 | 
						|
test.f(0x0, 0)
 | 
						|
 --> model_checker_targets_underflow_overflow_chc/input.sol:7:3:
 | 
						|
  |
 | 
						|
7 | 		--x;
 | 
						|
  | 		^^^
 | 
						|
 | 
						|
Warning: CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
 | 
						|
Counterexample:
 | 
						|
arr = []
 | 
						|
a = 0x0
 | 
						|
x = 1
 | 
						|
 | 
						|
Transaction trace:
 | 
						|
test.constructor()
 | 
						|
State: arr = []
 | 
						|
test.f(0x0, 2)
 | 
						|
 --> model_checker_targets_underflow_overflow_chc/input.sol:8:3:
 | 
						|
  |
 | 
						|
8 | 		x + type(uint).max;
 | 
						|
  | 		^^^^^^^^^^^^^^^^^^
 |