Pseudocode: Add debug information to magic instructions

This commit is contained in:
Alexey Sedunov
2014-06-26 13:06:28 +04:00
parent d636d362b7
commit 4707f4a5e9
125 changed files with 1204 additions and 1157 deletions
+6 -6
View File
@@ -3,10 +3,10 @@ fun foo(a: Array<Int>) {
a[0]++
}
---------------------
<v0>: {<: Array<Int>} NEW: magic(a: Array<Int>) -> <v0>
a <v5>: {<: Array<Int>} NEW: r(a) -> <v5>
0 <v6>: Int NEW: r(0) -> <v6>
a[0] <v3>: Int NEW: call(a[0], get|<v1>, <v2>) -> <v3>
a[0]++ <v3>: Int COPY
{ a[0]++ } <v3>: Int COPY
<v0>: {<: Array<Int>} NEW: magic[FAKE_INITIALIZER](a: Array<Int>) -> <v0>
a <v5>: {<: Array<Int>} NEW: r(a) -> <v5>
0 <v6>: Int NEW: r(0) -> <v6>
a[0] <v3>: Int NEW: call(a[0], get|<v1>, <v2>) -> <v3>
a[0]++ <v3>: Int COPY
{ a[0]++ } <v3>: Int COPY
=====================