Pseudocode: Replace {<: Any?} type predicate with *

This commit is contained in:
Alexey Sedunov
2014-07-11 13:34:54 +04:00
parent 3cd7a22535
commit 487e7f2a91
11 changed files with 28 additions and 21 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ tailRecursive fun sum(x: Long, sum: Long): Long {
<v1>: Long NEW: magic[FAKE_INITIALIZER](sum: Long) -> <v1>
x <v2>: OR{{<: Any}, {<: Any}} NEW: r(x) -> <v2>
0 <v3>: {<: Number} NEW: r(0) -> <v3>
toLong() <v4>: {<: Any?} NEW: call(toLong(), toLong|<v3>) -> <v4>
0.toLong() <v4>: {<: Any?} COPY
toLong() <v4>: * NEW: call(toLong(), toLong|<v3>) -> <v4>
0.toLong() <v4>: * COPY
x == 0.toLong() <v5>: Boolean NEW: call(x == 0.toLong(), equals|<v2>, <v4>) -> <v5>
sum <v6>: Long NEW: r(sum) -> <v6>
x <v7>: Long NEW: r(x) -> <v7>