mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			365 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			365 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma experimental SMTChecker;
 | 
						|
 | 
						|
contract C {
 | 
						|
	uint y;
 | 
						|
	function c(uint _y) public returns (uint) {
 | 
						|
		y = _y;
 | 
						|
		return y;
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
contract B is C {
 | 
						|
	function b() public returns (uint) { return c(42); }
 | 
						|
}
 | 
						|
 | 
						|
contract A is B {
 | 
						|
	uint public x;
 | 
						|
 | 
						|
	function a() public {
 | 
						|
		x = b();
 | 
						|
		assert(x < 40);
 | 
						|
	}
 | 
						|
}
 | 
						|
// ----
 | 
						|
// Warning 6328: (274-288): Assertion violation happens here.
 |