Pseudocode: Add valued instructions and unbound values to AbstractPseudoValueTest

This commit is contained in:
Alexey Sedunov
2014-06-25 19:32:20 +04:00
parent 21be468e6c
commit f226d99d36
77 changed files with 897 additions and 777 deletions
@@ -7,15 +7,17 @@ class Delegate {
== get ==
fun get(_this: Any, p: PropertyMetadata): Int = 0
---------------------
0 <v2>: Int NEW()
<v0>: {<: Any} NEW: magic(_this: Any) -> <v0>
<v1>: {<: PropertyMetadata} NEW: magic(p: PropertyMetadata) -> <v1>
0 <v2>: Int NEW: r(0) -> <v2>
=====================
== a ==
val a = Delegate()
---------------------
Delegate() <v0>: Delegate NEW()
Delegate() <v0>: Delegate NEW: call(Delegate, <init>) -> <v0>
=====================
== b ==
val b by a
---------------------
a <v0>: * NEW()
a <v0>: * NEW: r(a) -> <v0>
=====================
@@ -8,6 +8,7 @@ class C {
}
}
---------------------
$a <v1>: * NEW(<v0>)
{ $a } <v1>: * COPY
<v0>: C NEW: magic($a) -> <v0>
$a <v1>: * NEW: r($a|<v0>) -> <v1>
{ $a } <v1>: * COPY
=====================
@@ -8,10 +8,10 @@ abstract class Bar {
== foo ==
fun foo() = "foo" + this.$bar
---------------------
"foo" <v0>: String NEW()
this <v1>: {<: Bar} COPY
this <v1>: {<: Bar} NEW()
$bar <v2>: {<: Any?} NEW(<v1>)
this.$bar <v2>: {<: Any?} COPY
"foo" + this.$bar <v3>: String NEW(<v0>, <v2>)
"foo" <v0>: String NEW: r("foo") -> <v0>
this <v1>: {<: Bar} COPY
this <v1>: {<: Bar} NEW: r(this) -> <v1>
$bar <v2>: {<: Any?} NEW: r($bar|<v1>) -> <v2>
this.$bar <v2>: {<: Any?} COPY
"foo" + this.$bar <v3>: String NEW: call(+, plus|<v0>, <v2>) -> <v3>
=====================