Pseudocode: Generate fake values for Unit/Nothing-typed expressions

This commit is contained in:
Alexey Sedunov
2014-07-23 12:56:21 +04:00
parent 2d3ac9109b
commit 77bbf8f73b
72 changed files with 851 additions and 592 deletions
@@ -7,6 +7,9 @@ tailRecursive fun test() : Int {
}
}
---------------------
test() <v0>: * NEW: call(test(), test) -> <v0>
{ test() } <v0>: * COPY
=====================
{ // do nothing } !<v1>: *
test() <v0>: * NEW: call(test(), test) -> <v0>
{ test() } <v0>: * COPY
try { // do nothing } finally { test() } !<v1>: * COPY
{ try { // do nothing } finally { test() } } !<v1>: * COPY
=====================