Pseudocode: don't write full label name when jump on it

This commit is contained in:
Svetlana Isakova
2014-09-03 16:00:41 +04:00
parent 3a9b7bbade
commit 976d5ab030
89 changed files with 482 additions and 480 deletions
@@ -36,10 +36,10 @@ L0:
mark(genfun<Any>())
call(genfun<Any>(), genfun) -> <v8>
mark({1})
jmp?(L2 [after local declaration]) NEXT:[r({1}) -> <v9>, d({1})]
jmp?(L2) NEXT:[r({1}) -> <v9>, d({1})]
d({1}) NEXT:[<SINK>]
L2 [after local declaration]:
r({1}) -> <v9> PREV:[jmp?(L2 [after local declaration])]
r({1}) -> <v9> PREV:[jmp?(L2)]
mark(flfun {1})
call(flfun {1}, flfun|<v9>) -> <v10>
mark(3.equals(4))
@@ -56,15 +56,15 @@ L2 [after local declaration]:
mark(1 + 2)
call(1 + 2, plus|<v17>, <v18>) -> <v19>
r(a) -> <v20>
jf(L5 [result of boolean operation]|<v20>) NEXT:[magic[AND](a && true|<v20>, <v21>) -> <v22>, r(true) -> <v21>]
jf(L5|<v20>) NEXT:[magic[AND](a && true|<v20>, <v21>) -> <v22>, r(true) -> <v21>]
r(true) -> <v21>
L5 [result of boolean operation]:
magic[AND](a && true|<v20>, <v21>) -> <v22> PREV:[jf(L5 [result of boolean operation]|<v20>), r(true) -> <v21>]
magic[AND](a && true|<v20>, <v21>) -> <v22> PREV:[jf(L5|<v20>), r(true) -> <v21>]
r(a) -> <v23>
jt(L6 [result of boolean operation]|<v23>) NEXT:[r(false) -> <v24>, magic[OR](a || false|<v23>, <v24>) -> <v25>]
jt(L6|<v23>) NEXT:[r(false) -> <v24>, magic[OR](a || false|<v23>, <v24>) -> <v25>]
r(false) -> <v24>
L6 [result of boolean operation]:
magic[OR](a || false|<v23>, <v24>) -> <v25> PREV:[jt(L6 [result of boolean operation]|<v23>), r(false) -> <v24>]
magic[OR](a || false|<v23>, <v24>) -> <v25> PREV:[jt(L6|<v23>), r(false) -> <v24>]
L1:
1 <END> NEXT:[<SINK>]
error:
@@ -137,4 +137,4 @@ error:
<ERROR> PREV:[]
sink:
<SINK> PREV:[<ERROR>, <END>]
=====================
=====================