mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			517 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			517 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {
 | |
|     let x := calldataload(1)
 | |
|     let a := add(x, 10)
 | |
|     let b := add(x, 42)
 | |
|     mstore(a, 7)
 | |
|     // does not invalidate the first store, because the
 | |
|     // difference is larger than 32, even if the absolute
 | |
|     // values are unknown
 | |
|     mstore(b, 8)
 | |
|     sstore(mload(a), mload(b))
 | |
| }
 | |
| // ----
 | |
| // step: loadResolver
 | |
| //
 | |
| // {
 | |
| //     let x := calldataload(1)
 | |
| //     let a := add(x, 10)
 | |
| //     let b := add(x, 42)
 | |
| //     let _4 := 7
 | |
| //     mstore(a, _4)
 | |
| //     let _5 := 8
 | |
| //     mstore(b, _5)
 | |
| //     sstore(_4, _5)
 | |
| // }
 |