mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			338 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			338 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| abstract contract A {
 | |
| 	uint x;
 | |
| 	function f() public view {
 | |
| 		assert(x == 2);
 | |
| 	}
 | |
| }
 | |
| 
 | |
| contract C is  A {
 | |
| 	function g() public {
 | |
| 		x = 2;
 | |
| 		f();
 | |
| 		x = 0;
 | |
| 	}
 | |
| }
 | |
| // ====
 | |
| // SMTEngine: all
 | |
| // ----
 | |
| // Warning 6328: (61-75): CHC: Assertion violation happens here.\nCounterexample:\nx = 0\n\nTransaction trace:\nC.constructor()\nState: x = 0\nA.f()
 |