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
@@ -16,18 +16,18 @@ class A(a: Int, b: Int): T
L0:
1 <START>
v(a: Int)
magic(a: Int) -> <v0>
magic[FAKE_INITIALIZER](a: Int) -> <v0>
w(a|<v0>)
v(b: Int)
magic(b: Int) -> <v1>
magic[FAKE_INITIALIZER](b: Int) -> <v1>
w(b|<v1>)
unsupported(DELEGATOR_SUPER_CLASS : T)
L1:
<END> NEXT:[<SINK>]
<END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
<SINK> PREV:[<ERROR>, <END>]
=====================
== B ==
class B(a: Int, b: Int): T by A(a + b, a - b)
@@ -35,10 +35,10 @@ class B(a: Int, b: Int): T by A(a + b, a - b)
L0:
1 <START>
v(a: Int)
magic(a: Int) -> <v0>
magic[FAKE_INITIALIZER](a: Int) -> <v0>
w(a|<v0>)
v(b: Int)
magic(b: Int) -> <v1>
magic[FAKE_INITIALIZER](b: Int) -> <v1>
w(b|<v1>)
r(a) -> <v2>
r(b) -> <v3>
@@ -50,11 +50,11 @@ L0:
call(a - b, minus|<v5>, <v6>) -> <v7>
mark(A(a + b, a - b))
call(A(a + b, a - b), <init>|<v4>, <v7>) -> <v8>
magic(T by A(a + b, a - b)|<v8>) -> <v9>
magic[VALUE_CONSUMER](T by A(a + b, a - b)|<v8>) -> <v9>
L1:
<END> NEXT:[<SINK>]
<END> NEXT:[<SINK>]
error:
<ERROR> PREV:[]
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
<SINK> PREV:[<ERROR>, <END>]
=====================