Pseudocode: don't write full label name when jump on it
This commit is contained in:
@@ -19,7 +19,7 @@ L0:
|
||||
v(i)
|
||||
L2 [loop entry point]:
|
||||
L6 [condition entry point]:
|
||||
jmp?(L3 [loop exit point]) NEXT:[read (Unit), magic[LOOP_RANGE_ITERATION](1..10|<v3>) -> <v4>] PREV:[v(i), jmp(L6 [condition entry point])]
|
||||
jmp?(L3) NEXT:[read (Unit), magic[LOOP_RANGE_ITERATION](1..10|<v3>) -> <v4>] PREV:[v(i), jmp(L6)]
|
||||
magic[LOOP_RANGE_ITERATION](1..10|<v3>) -> <v4>
|
||||
w(i|<v4>)
|
||||
mark(for (i in 1..10) { if (b) break; continue; })
|
||||
@@ -27,22 +27,22 @@ L4 [body entry point]:
|
||||
4 mark({ if (b) break; continue; })
|
||||
mark(if (b) break)
|
||||
r(b) -> <v5>
|
||||
jf(L7 [else branch]|<v5>) NEXT:[read (Unit), jmp(L3 [loop exit point])]
|
||||
jmp(L3 [loop exit point]) NEXT:[read (Unit)]
|
||||
- jmp(L8 ['if' expression result]) NEXT:[merge(if (b) break|!<v6>) -> <v7>] PREV:[]
|
||||
jf(L7|<v5>) NEXT:[read (Unit), jmp(L3)]
|
||||
jmp(L3) NEXT:[read (Unit)]
|
||||
- jmp(L8) NEXT:[merge(if (b) break|!<v6>) -> <v7>] PREV:[]
|
||||
L7 [else branch]:
|
||||
read (Unit) PREV:[jf(L7 [else branch]|<v5>)]
|
||||
read (Unit) PREV:[jf(L7|<v5>)]
|
||||
L8 ['if' expression result]:
|
||||
merge(if (b) break|!<v6>) -> <v7>
|
||||
jmp(L6 [condition entry point]) NEXT:[jmp?(L3 [loop exit point])]
|
||||
- 3 jmp(L2 [loop entry point]) NEXT:[jmp?(L3 [loop exit point])] PREV:[]
|
||||
jmp(L6) NEXT:[jmp?(L3)]
|
||||
- 3 jmp(L2) NEXT:[jmp?(L3)] PREV:[]
|
||||
L3 [loop exit point]:
|
||||
L5 [body exit point]:
|
||||
read (Unit) PREV:[jmp?(L3 [loop exit point]), jmp(L3 [loop exit point])]
|
||||
read (Unit) PREV:[jmp?(L3), jmp(L3)]
|
||||
L1:
|
||||
1 <END> NEXT:[<SINK>]
|
||||
error:
|
||||
<ERROR> PREV:[]
|
||||
sink:
|
||||
<SINK> PREV:[<ERROR>, <END>]
|
||||
=====================
|
||||
=====================
|
||||
Reference in New Issue
Block a user