Mark some expressions after processing their components
when it's semantically correct Expressions: calls, 'for' loops, elvis operators It's significant for reporting 'unreachable code' correctly
This commit is contained in:
@@ -9,12 +9,13 @@ L0:
|
||||
magic(a: Array<Int>) -> <v0>
|
||||
w(a|<v0>)
|
||||
2 mark({ a[0] += 1 })
|
||||
mark(a[0] += 1)
|
||||
mark(a[0])
|
||||
r(a) -> <v1>
|
||||
r(0) -> <v2>
|
||||
mark(a[0])
|
||||
call(a[0], get|<v1>, <v2>) -> <v3>
|
||||
r(1) -> <v4>
|
||||
mark(a[0] += 1)
|
||||
call(+=, plus|<v3>, <v4>) -> <v5>
|
||||
r(a) -> <v6>
|
||||
r(0) -> <v7>
|
||||
|
||||
Reference in New Issue
Block a user