% stap -p2 -e 'probe oneshot { println(i+0) }' ... should work, and print 0. But the const_folder logic elides the "+0" part of that expression without passing on the type inference (i <= pe_long).
fixed by commit 4375d018c2634f256c536b46ca1d266f615ba8b2