mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			310 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			310 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract C {
 | |
|     function f() public returns (uint k) {
 | |
|         assembly {
 | |
|             for {let i := 0} lt(i, 10) { i := add(i, 1) }
 | |
|             {
 | |
|                 if eq(mod(i, 2), 0) { continue }
 | |
|                 k := add(k, 1)
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 | |
| // ====
 | |
| // compileViaYul: also
 | |
| // ----
 | |
| // f() -> 5
 |