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
@@ -4,10 +4,10 @@ fun foo(x: Int) {
a
}
---------------------
<v0>: Int NEW: magic(x: Int) -> <v0>
<v2>: {<: [ERROR : component1() return type]} NEW: magic(a|<v1>) -> <v2>
<v3>: {<: [ERROR : component2() return type]} NEW: magic(b|<v1>) -> <v3>
x <v1>: * NEW: r(x) -> <v1>
a <v4>: * NEW: r(a) -> <v4>
{ val (a, b) = x a } <v4>: * COPY
=====================
<v0>: Int NEW: magic[FAKE_INITIALIZER](x: Int) -> <v0>
<v2>: {<: [ERROR : component1() return type]} NEW: magic[UNRESOLVED_CALL](a|<v1>) -> <v2>
<v3>: {<: [ERROR : component2() return type]} NEW: magic[UNRESOLVED_CALL](b|<v1>) -> <v3>
x <v1>: * NEW: r(x) -> <v1>
a <v4>: * NEW: r(a) -> <v4>
{ val (a, b) = x a } <v4>: * COPY
=====================