mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			429 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			429 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {
 | |
|     let i := 0
 | |
|     for {} lt(i, 2) { i := add(i, 1) }
 | |
|     {
 | |
|         let x
 | |
|         x := 1337
 | |
|         if lt(i,1) {
 | |
|             x := 42
 | |
|             continue
 | |
|         }
 | |
|         mstore(0, x)
 | |
|     }
 | |
| }
 | |
| 
 | |
| // ----
 | |
| // step: redundantAssignEliminator
 | |
| //
 | |
| // {
 | |
| //     let i := 0
 | |
| //     for { } lt(i, 2) { i := add(i, 1) }
 | |
| //     {
 | |
| //         let x
 | |
| //         x := 1337
 | |
| //         if lt(i, 1) { continue }
 | |
| //         mstore(0, x)
 | |
| //     }
 | |
| // }
 |