Pseudocode: Implement computation of expected type predicates

This commit is contained in:
Alexey Sedunov
2014-06-23 14:02:22 +04:00
parent 50228fa085
commit 5e2c2b4eca
87 changed files with 1154 additions and 803 deletions
@@ -6,13 +6,13 @@ fun foo() {
use(a)
}
---------------------
1 <v0> NEW()
a <v1> NEW()
use(a) <v2> NEW(<v1>)
2 <v3> NEW()
a <v4> NEW()
use(a) <v5> NEW(<v4>)
{ var a = 1 use(a) a = 2 use(a) } <v5> COPY
1 <v0>: Int NEW()
a <v1>: Int NEW()
use(a) <v2>: * NEW(<v1>)
2 <v3>: Int NEW()
a <v4>: Int NEW()
use(a) <v5>: * NEW(<v4>)
{ var a = 1 use(a) a = 2 use(a) } <v5>: * COPY
=====================
== bar ==
fun bar() {
@@ -20,10 +20,10 @@ fun bar() {
b = 3
}
---------------------
3 <v0> NEW()
3 <v0>: Int NEW()
=====================
== use ==
fun use(a: Int) = a
---------------------
a <v1> NEW()
a <v1>: Int NEW()
=====================