mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
18 lines
220 B
Kotlin
Vendored
18 lines
220 B
Kotlin
Vendored
const val M = Int.MAX_VALUE
|
|
|
|
fun f(a: Int): Int {
|
|
var n = 0
|
|
for (i in a..M) {
|
|
n++
|
|
}
|
|
return n
|
|
}
|
|
|
|
// 0 iterator
|
|
// 0 getStart
|
|
// 0 getEnd
|
|
// 0 getFirst
|
|
// 0 getLast
|
|
// 0 getStep
|
|
// 2 IF_ICMP
|
|
// 2 IF |