With some help from the Kt native team im sure it ...
# kotlin-native
j
With some help from the Kt native team im sure it could be made more stable and then it could provide a massive boon to the kt/native ecosystem
o
pretty interesting, how do you think it shall be better done?
j
So the biggest issue was, that kotlin methods like
@Kotlin_Int_inc
were not defined in the bitcode, so the verifier couldn't run against them. The seahorn guy worked around it by manually defining them
Copy code
;;declare i32 @Kotlin_Int_inc(i32)
define i32 @Kotlin_Int_inc(i32) {
entry:
   %y = add i32 %0, 1
   ret i32 %y
}
Either offering some shadow implementations in pure llvm bitcode or forcing the compiler to have an option where it emits everything would solve this
o
It is in the bitcode, just one produced from C++ sources, but it is linked together, and so could be analyzed
j
I couldn't find a way with the compiler to get everything emitted to bitcode in one step
j
Huh I might "hack" an emitter into that and report back