conditional expressions are optimized more intelligently (simple ones are not split off in separate assignments)

This commit is contained in:
Irmen de Jong
2021-11-14 12:38:56 +01:00
parent 5190594c8a
commit ab2d1122a9
4 changed files with 12 additions and 15 deletions
+9 -8
View File
@@ -5,15 +5,16 @@
main {
sub start() {
float[] farr = [1.111,2.222,3.333,4.444,5.555,6.666]
float f2 = 9.999
ubyte xx=1
ubyte yy=2
byte xx=1
floats.print_f(farr[3])
txt.nl()
floats.print_f(farr[xx+yy])
txt.nl()
if -xx {
xx++
}
sub test() -> ubyte {
xx++
return xx
}
}