Add tests for element -> pseudo-value mapping

This commit is contained in:
Alexey Sedunov
2014-05-19 18:32:03 +04:00
parent d2c055e9da
commit 4a5d2e6728
78 changed files with 3105 additions and 1 deletions
@@ -0,0 +1,21 @@
== foo ==
fun foo() {
"before"
val b = 1
fun local(x: Int) = x + b
"after"
}
---------------------
"before" <v0> NEW()
1 <v1> NEW()
"after" <v2> NEW()
{ "before" val b = 1 fun local(x: Int) = x + b "after" } <v2> COPY
=====================
== local ==
fun local(x: Int) = x + b
---------------------
x <v1> NEW()
+ <v3> NEW(<v1>, <v2>)
b <v2> NEW()
x + b <v3> COPY
=====================