mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			567 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			567 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {
 | |
|     sstore(f(1), 1)
 | |
|     sstore(f(2), 1)
 | |
|     sstore(f(3), 1)
 | |
|     function f(a) -> x {
 | |
|         // The usage of a is redundant
 | |
|         a := calldataload(0)
 | |
|         mstore(a, x)
 | |
|         // to prevent f from getting inlined
 | |
|         if iszero(a) { leave }
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // step: fullSuite
 | |
| //
 | |
| // {
 | |
| //     {
 | |
| //         f()
 | |
| //         sstore(0, 1)
 | |
| //         f()
 | |
| //         sstore(0, 1)
 | |
| //         f()
 | |
| //         sstore(0, 1)
 | |
| //     }
 | |
| //     function f()
 | |
| //     {
 | |
| //         let a := calldataload(0)
 | |
| //         mstore(a, 0)
 | |
| //         if iszero(a) { leave }
 | |
| //     }
 | |
| // }
 |