mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			460 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			460 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma experimental SMTChecker;
 | 
						|
 | 
						|
abstract contract D {
 | 
						|
    function d() public virtual ;
 | 
						|
}
 | 
						|
 | 
						|
contract C {
 | 
						|
    bool a;
 | 
						|
    uint x;
 | 
						|
    D d;
 | 
						|
    function g() public returns (uint) {
 | 
						|
        x = 2;
 | 
						|
        d.d();
 | 
						|
        return x;
 | 
						|
    }
 | 
						|
    function f(bool b) public {
 | 
						|
        x = 1;
 | 
						|
        uint y = b ? g() : 3;
 | 
						|
        assert(x == 2 || x == 1);
 | 
						|
    }
 | 
						|
    function h() internal {
 | 
						|
        x = 3;
 | 
						|
    }
 | 
						|
}
 | 
						|
// ----
 | 
						|
// Warning 2072: (288-294): Unused local variable.
 |