Updated tests for control flow: call instruction stores call element
instead of callee expression
This commit is contained in:
@@ -18,9 +18,9 @@ L0:
|
||||
mark(0.toLong())
|
||||
r(0) -> <v3>
|
||||
mark(toLong())
|
||||
call(toLong, toLong|<v3>) -> <v4>
|
||||
call(toLong(), toLong|<v3>) -> <v4>
|
||||
mark(x == 0.toLong())
|
||||
call(==, equals|<v2>, <v4>) -> <v5>
|
||||
call(x == 0.toLong(), equals|<v2>, <v4>) -> <v5>
|
||||
jf(L2|<v5>) NEXT:[read (Unit), r(sum) -> <v6>]
|
||||
r(sum) -> <v6>
|
||||
ret(*|<v6>) L1 NEXT:[<END>]
|
||||
@@ -31,13 +31,13 @@ L3:
|
||||
r(x) -> <v7>
|
||||
r(1) -> <v8>
|
||||
mark(x - 1)
|
||||
call(-, minus|<v7>, <v8>) -> <v9>
|
||||
call(x - 1, minus|<v7>, <v8>) -> <v9>
|
||||
r(sum) -> <v10>
|
||||
r(x) -> <v11>
|
||||
mark(sum + x)
|
||||
call(+, plus|<v10>, <v11>) -> <v12>
|
||||
call(sum + x, plus|<v10>, <v11>) -> <v12>
|
||||
mark(sum(x - 1, sum + x))
|
||||
call(sum, sum|<v9>, <v12>) -> <v13>
|
||||
call(sum(x - 1, sum + x), sum|<v9>, <v12>) -> <v13>
|
||||
ret(*|<v13>) L1
|
||||
L1:
|
||||
1 <END> NEXT:[<SINK>] PREV:[ret(*|<v6>) L1, ret(*|<v13>) L1]
|
||||
|
||||
Reference in New Issue
Block a user