Pseudocode: Generate instructions for unresolved array assignments
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
== A ==
|
||||
class A
|
||||
---------------------
|
||||
=====================
|
||||
== foo ==
|
||||
fun foo(a: A) {
|
||||
a[0]++
|
||||
}
|
||||
---------------------
|
||||
<v0>: A NEW: magic[FAKE_INITIALIZER](a: A) -> <v0>
|
||||
a <v1>: * NEW: r(a) -> <v1>
|
||||
0 <v2>: * NEW: r(0) -> <v2>
|
||||
a[0] <v3>: * NEW: magic[UNRESOLVED_CALL](a[0]|<v1>, <v2>) -> <v3>
|
||||
a[0]++ <v3>: * COPY
|
||||
{ a[0]++ } <v3>: * COPY
|
||||
=====================
|
||||
Reference in New Issue
Block a user