mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
22 lines
362 B
Kotlin
Vendored
22 lines
362 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
const val M = UInt.MAX_VALUE
|
|
|
|
fun f(a: UInt): Int {
|
|
var n = 0
|
|
for (i in a..M) {
|
|
n++
|
|
}
|
|
return n
|
|
}
|
|
|
|
// 0 iterator
|
|
// 0 getStart
|
|
// 0 getEnd
|
|
// 0 getFirst
|
|
// 0 getLast
|
|
// 0 getStep
|
|
// 1 INVOKESTATIC kotlin/UnsignedKt.uintCompare
|
|
// 2 IF
|
|
// 0 INVOKESTATIC kotlin/UInt.constructor-impl
|
|
// 0 INVOKE\w+ kotlin/UInt.(un)?box-impl
|