use upper-case L in label name instead of lower-case

This commit is contained in:
Svetlana Isakova
2012-12-13 18:49:27 +04:00
parent e91805a593
commit e15340bf3c
19 changed files with 799 additions and 799 deletions
+117 -117
View File
@@ -14,7 +14,7 @@ fun testCopy1() : Int {
}
}
---------------------
l0:
L0:
<START> NEXT:[r(try { doSmth() } catch (e:..)] PREV:[]
r(try {
doSmth()
@@ -27,42 +27,42 @@ l0:
}
finally {
return 1
}) NEXT:[jmp?(l2 [onException])] PREV:[<START>]
jmp?(l2 [onException]) NEXT:[jmp?(l5 [catch 0]), jmp?(l3 [onExceptionToFinallyBlock])] PREV:[r(try { doSmth() } catch (e:..)]
jmp?(l3 [onExceptionToFinallyBlock]) NEXT:[r(1), r(doSmth)] PREV:[jmp?(l2 [onException])]
r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(l3 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(l4 [afterCatches])] PREV:[r(doSmth)]
}) NEXT:[jmp?(L2 [onException])] PREV:[<START>]
jmp?(L2 [onException]) NEXT:[jmp?(L5 [catch 0]), jmp?(L3 [onExceptionToFinallyBlock])] PREV:[r(try { doSmth() } catch (e:..)]
jmp?(L3 [onExceptionToFinallyBlock]) NEXT:[r(1), r(doSmth)] PREV:[jmp?(L2 [onException])]
r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(L4 [afterCatches])] PREV:[r(doSmth)]
d0:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
l2 [onException]:
jmp?(l5 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(l2 [onException])]
v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(l5 [catch 0])]
jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
L2 [onException]:
jmp?(L5 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(L2 [onException])]
v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(L5 [catch 0])]
w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)]
r(doSmth1) NEXT:[r(doSmth1())] PREV:[w(e)]
r(doSmth1()) NEXT:[jmp(l4 [afterCatches])] PREV:[r(doSmth1)]
r(doSmth1()) NEXT:[jmp(L4 [afterCatches])] PREV:[r(doSmth1)]
d1:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
l5 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(l5 [catch 0])]
jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
L5 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(L5 [catch 0])]
w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)]
r(doSmth2) NEXT:[r(doSmth2())] PREV:[w(e)]
r(doSmth2()) NEXT:[jmp(l4 [afterCatches])] PREV:[r(doSmth2)]
r(doSmth2()) NEXT:[jmp(L4 [afterCatches])] PREV:[r(doSmth2)]
d2:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
l4 [afterCatches]:
jmp(l6 [skipFinallyToErrorBlock]) NEXT:[r(1)] PREV:[jmp(l4 [afterCatches]), jmp(l4 [afterCatches]), jmp(l4 [afterCatches])]
l3 [onExceptionToFinallyBlock]:
l7 [start finally]:
r(1) NEXT:[ret(*) l1] PREV:[jmp?(l3 [onExceptionToFinallyBlock])]
ret(*) l1 NEXT:[<END>] PREV:[r(1)]
l8 [finish finally]:
jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
L4 [afterCatches]:
jmp(L6 [skipFinallyToErrorBlock]) NEXT:[r(1)] PREV:[jmp(L4 [afterCatches]), jmp(L4 [afterCatches]), jmp(L4 [afterCatches])]
L3 [onExceptionToFinallyBlock]:
L7 [start finally]:
r(1) NEXT:[ret(*) L1] PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
ret(*) L1 NEXT:[<END>] PREV:[r(1)]
L8 [finish finally]:
- jmp(error) NEXT:[<ERROR>] PREV:[]
l6 [skipFinallyToErrorBlock]:
r(1) NEXT:[ret(*) l1] PREV:[jmp(l6 [skipFinallyToErrorBlock])]
ret(*) l1 NEXT:[<END>] PREV:[r(1)]
l1:
l9 [stop [d0, d1, d2]]:
<END> NEXT:[<SINK>] PREV:[ret(*) l1, ret(*) l1]
L6 [skipFinallyToErrorBlock]:
r(1) NEXT:[ret(*) L1] PREV:[jmp(L6 [skipFinallyToErrorBlock])]
ret(*) L1 NEXT:[<END>] PREV:[r(1)]
L1:
L9 [stop [d0, d1, d2]]:
<END> NEXT:[<SINK>] PREV:[ret(*) L1, ret(*) L1]
error:
<ERROR> NEXT:[<SINK>] PREV:[]
sink:
@@ -87,7 +87,7 @@ fun testCopy2() {
}
}
---------------------
l0:
L0:
<START> NEXT:[r(while (cond()) { try { doS..)] PREV:[]
r(while (cond()) {
try {
@@ -104,12 +104,12 @@ l0:
else continue
}
}) NEXT:[r(cond)] PREV:[<START>]
l2 [loop entry point]:
l5 [condition entry point]:
r(cond) NEXT:[r(cond())] PREV:[r(while (cond()) { try { doS..), jmp(l2 [loop entry point]), jmp(l2 [loop entry point])]
r(cond()) NEXT:[jf(l3 [loop exit point])] PREV:[r(cond)]
jf(l3 [loop exit point]) NEXT:[read (Unit), r(try { doSmth() } catch (e:..)] PREV:[r(cond())]
l4 [body entry point]:
L2 [loop entry point]:
L5 [condition entry point]:
r(cond) NEXT:[r(cond())] PREV:[r(while (cond()) { try { doS..), jmp(L2 [loop entry point]), jmp(L2 [loop entry point])]
r(cond()) NEXT:[jf(L3 [loop exit point])] PREV:[r(cond)]
jf(L3 [loop exit point]) NEXT:[read (Unit), r(try { doSmth() } catch (e:..)] PREV:[r(cond())]
L4 [body entry point]:
r(try {
doSmth()
}
@@ -122,55 +122,55 @@ l4 [body entry point]:
finally {
if (cond()) return
else continue
}) NEXT:[jmp?(l6 [onException])] PREV:[jf(l3 [loop exit point])]
jmp?(l6 [onException]) NEXT:[jmp?(l9 [catch 0]), jmp?(l7 [onExceptionToFinallyBlock])] PREV:[r(try { doSmth() } catch (e:..)]
jmp?(l7 [onExceptionToFinallyBlock]) NEXT:[r(cond), r(doSmth)] PREV:[jmp?(l6 [onException])]
r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(l7 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(l8 [afterCatches])] PREV:[r(doSmth)]
}) NEXT:[jmp?(L6 [onException])] PREV:[jf(L3 [loop exit point])]
jmp?(L6 [onException]) NEXT:[jmp?(L9 [catch 0]), jmp?(L7 [onExceptionToFinallyBlock])] PREV:[r(try { doSmth() } catch (e:..)]
jmp?(L7 [onExceptionToFinallyBlock]) NEXT:[r(cond), r(doSmth)] PREV:[jmp?(L6 [onException])]
r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(L7 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(L8 [afterCatches])] PREV:[r(doSmth)]
d0:
jmp(l8 [afterCatches]) NEXT:[jmp(l10 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
l6 [onException]:
jmp?(l9 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(l6 [onException])]
v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(l9 [catch 0])]
jmp(L8 [afterCatches]) NEXT:[jmp(L10 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
L6 [onException]:
jmp?(L9 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(L6 [onException])]
v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(L9 [catch 0])]
w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)]
r(doSmth1) NEXT:[r(doSmth1())] PREV:[w(e)]
r(doSmth1()) NEXT:[jmp(l8 [afterCatches])] PREV:[r(doSmth1)]
r(doSmth1()) NEXT:[jmp(L8 [afterCatches])] PREV:[r(doSmth1)]
d1:
jmp(l8 [afterCatches]) NEXT:[jmp(l10 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
l9 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(l9 [catch 0])]
jmp(L8 [afterCatches]) NEXT:[jmp(L10 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
L9 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(L9 [catch 0])]
w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)]
r(doSmth2) NEXT:[r(doSmth2())] PREV:[w(e)]
r(doSmth2()) NEXT:[jmp(l8 [afterCatches])] PREV:[r(doSmth2)]
r(doSmth2()) NEXT:[jmp(L8 [afterCatches])] PREV:[r(doSmth2)]
d2:
jmp(l8 [afterCatches]) NEXT:[jmp(l10 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
l8 [afterCatches]:
jmp(l10 [skipFinallyToErrorBlock]) NEXT:[r(cond)] PREV:[jmp(l8 [afterCatches]), jmp(l8 [afterCatches]), jmp(l8 [afterCatches])]
l7 [onExceptionToFinallyBlock]:
l11 [start finally]:
r(cond) NEXT:[r(cond())] PREV:[jmp?(l7 [onExceptionToFinallyBlock])]
r(cond()) NEXT:[jf(l12)] PREV:[r(cond)]
jf(l12) NEXT:[jmp(l2 [loop entry point]), ret l1] PREV:[r(cond())]
ret l1 NEXT:[<END>] PREV:[jf(l12)]
- jmp(l13) NEXT:[jmp(error)] PREV:[]
l12:
jmp(l2 [loop entry point]) NEXT:[r(cond)] PREV:[jf(l12)]
l13:
l14 [finish finally]:
jmp(L8 [afterCatches]) NEXT:[jmp(L10 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
L8 [afterCatches]:
jmp(L10 [skipFinallyToErrorBlock]) NEXT:[r(cond)] PREV:[jmp(L8 [afterCatches]), jmp(L8 [afterCatches]), jmp(L8 [afterCatches])]
L7 [onExceptionToFinallyBlock]:
L11 [start finally]:
r(cond) NEXT:[r(cond())] PREV:[jmp?(L7 [onExceptionToFinallyBlock])]
r(cond()) NEXT:[jf(L12)] PREV:[r(cond)]
jf(L12) NEXT:[jmp(L2 [loop entry point]), ret L1] PREV:[r(cond())]
ret L1 NEXT:[<END>] PREV:[jf(L12)]
- jmp(L13) NEXT:[jmp(error)] PREV:[]
L12:
jmp(L2 [loop entry point]) NEXT:[r(cond)] PREV:[jf(L12)]
L13:
L14 [finish finally]:
- jmp(error) NEXT:[<ERROR>] PREV:[]
l10 [skipFinallyToErrorBlock]:
r(cond) NEXT:[r(cond())] PREV:[jmp(l10 [skipFinallyToErrorBlock])]
r(cond()) NEXT:[jf(copy l12)] PREV:[r(cond)]
jf(copy l12) NEXT:[jmp(l2 [loop entry point]), ret l1] PREV:[r(cond())]
ret l1 NEXT:[<END>] PREV:[jf(copy l12)]
- jmp(l13) NEXT:[jmp(error)] PREV:[]
jmp(l2 [loop entry point]) NEXT:[r(cond)] PREV:[jf(copy l12)]
l15 [stop [d0, d1, d2]]:
- jmp(l2 [loop entry point]) NEXT:[r(cond)] PREV:[]
l3 [loop exit point]:
read (Unit) NEXT:[<END>] PREV:[jf(l3 [loop exit point])]
l1:
<END> NEXT:[<SINK>] PREV:[ret l1, ret l1, read (Unit)]
L10 [skipFinallyToErrorBlock]:
r(cond) NEXT:[r(cond())] PREV:[jmp(L10 [skipFinallyToErrorBlock])]
r(cond()) NEXT:[jf(copy L12)] PREV:[r(cond)]
jf(copy L12) NEXT:[jmp(L2 [loop entry point]), ret L1] PREV:[r(cond())]
ret L1 NEXT:[<END>] PREV:[jf(copy L12)]
- jmp(L13) NEXT:[jmp(error)] PREV:[]
jmp(L2 [loop entry point]) NEXT:[r(cond)] PREV:[jf(copy L12)]
L15 [stop [d0, d1, d2]]:
- jmp(L2 [loop entry point]) NEXT:[r(cond)] PREV:[]
L3 [loop exit point]:
read (Unit) NEXT:[<END>] PREV:[jf(L3 [loop exit point])]
L1:
<END> NEXT:[<SINK>] PREV:[ret L1, ret L1, read (Unit)]
error:
<ERROR> NEXT:[<SINK>] PREV:[]
sink:
@@ -192,7 +192,7 @@ fun testCopy3() {
}
}
---------------------
l0:
L0:
<START> NEXT:[r(try { doSmth() } catch (e:..)] PREV:[]
r(try {
doSmth()
@@ -205,53 +205,53 @@ l0:
}
finally {
while (cond());
}) NEXT:[jmp?(l2 [onException])] PREV:[<START>]
jmp?(l2 [onException]) NEXT:[jmp?(l5 [catch 0]), jmp?(l3 [onExceptionToFinallyBlock])] PREV:[r(try { doSmth() } catch (e:..)]
jmp?(l3 [onExceptionToFinallyBlock]) NEXT:[r(while (cond())), r(doSmth)] PREV:[jmp?(l2 [onException])]
r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(l3 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(l4 [afterCatches])] PREV:[r(doSmth)]
}) NEXT:[jmp?(L2 [onException])] PREV:[<START>]
jmp?(L2 [onException]) NEXT:[jmp?(L5 [catch 0]), jmp?(L3 [onExceptionToFinallyBlock])] PREV:[r(try { doSmth() } catch (e:..)]
jmp?(L3 [onExceptionToFinallyBlock]) NEXT:[r(while (cond())), r(doSmth)] PREV:[jmp?(L2 [onException])]
r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(L4 [afterCatches])] PREV:[r(doSmth)]
d0:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
l2 [onException]:
jmp?(l5 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(l2 [onException])]
v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(l5 [catch 0])]
jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
L2 [onException]:
jmp?(L5 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(L2 [onException])]
v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(L5 [catch 0])]
w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)]
r(doSmth1) NEXT:[r(doSmth1())] PREV:[w(e)]
r(doSmth1()) NEXT:[jmp(l4 [afterCatches])] PREV:[r(doSmth1)]
r(doSmth1()) NEXT:[jmp(L4 [afterCatches])] PREV:[r(doSmth1)]
d1:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
l5 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(l5 [catch 0])]
jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
L5 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(L5 [catch 0])]
w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)]
r(doSmth2) NEXT:[r(doSmth2())] PREV:[w(e)]
r(doSmth2()) NEXT:[jmp(l4 [afterCatches])] PREV:[r(doSmth2)]
r(doSmth2()) NEXT:[jmp(L4 [afterCatches])] PREV:[r(doSmth2)]
d2:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
l4 [afterCatches]:
jmp(l6 [skipFinallyToErrorBlock]) NEXT:[r(while (cond()))] PREV:[jmp(l4 [afterCatches]), jmp(l4 [afterCatches]), jmp(l4 [afterCatches])]
l3 [onExceptionToFinallyBlock]:
l7 [start finally]:
r(while (cond())) NEXT:[r(cond)] PREV:[jmp?(l3 [onExceptionToFinallyBlock])]
l8 [loop entry point]:
l11 [condition entry point]:
r(cond) NEXT:[r(cond())] PREV:[r(while (cond())), jmp(l8 [loop entry point])]
r(cond()) NEXT:[jf(l9 [loop exit point])] PREV:[r(cond)]
jf(l9 [loop exit point]) NEXT:[read (Unit), jmp(l8 [loop entry point])] PREV:[r(cond())]
l10 [body entry point]:
jmp(l8 [loop entry point]) NEXT:[r(cond)] PREV:[jf(l9 [loop exit point])]
l9 [loop exit point]:
read (Unit) NEXT:[jmp(error)] PREV:[jf(l9 [loop exit point])]
l12 [finish finally]:
jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
L4 [afterCatches]:
jmp(L6 [skipFinallyToErrorBlock]) NEXT:[r(while (cond()))] PREV:[jmp(L4 [afterCatches]), jmp(L4 [afterCatches]), jmp(L4 [afterCatches])]
L3 [onExceptionToFinallyBlock]:
L7 [start finally]:
r(while (cond())) NEXT:[r(cond)] PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
L8 [loop entry point]:
L11 [condition entry point]:
r(cond) NEXT:[r(cond())] PREV:[r(while (cond())), jmp(L8 [loop entry point])]
r(cond()) NEXT:[jf(L9 [loop exit point])] PREV:[r(cond)]
jf(L9 [loop exit point]) NEXT:[read (Unit), jmp(L8 [loop entry point])] PREV:[r(cond())]
L10 [body entry point]:
jmp(L8 [loop entry point]) NEXT:[r(cond)] PREV:[jf(L9 [loop exit point])]
L9 [loop exit point]:
read (Unit) NEXT:[jmp(error)] PREV:[jf(L9 [loop exit point])]
L12 [finish finally]:
jmp(error) NEXT:[<ERROR>] PREV:[read (Unit)]
l6 [skipFinallyToErrorBlock]:
r(while (cond())) NEXT:[r(cond)] PREV:[jmp(l6 [skipFinallyToErrorBlock])]
r(cond) NEXT:[r(cond())] PREV:[r(while (cond())), jmp(copy l8 [loop entry point])]
r(cond()) NEXT:[jf(copy l9 [loop exit point])] PREV:[r(cond)]
jf(copy l9 [loop exit point]) NEXT:[read (Unit), jmp(copy l8 [loop entry point])] PREV:[r(cond())]
jmp(copy l8 [loop entry point]) NEXT:[r(cond)] PREV:[jf(copy l9 [loop exit point])]
read (Unit) NEXT:[<END>] PREV:[jf(copy l9 [loop exit point])]
l1:
l13 [stop [d0, d1, d2]]:
L6 [skipFinallyToErrorBlock]:
r(while (cond())) NEXT:[r(cond)] PREV:[jmp(L6 [skipFinallyToErrorBlock])]
r(cond) NEXT:[r(cond())] PREV:[r(while (cond())), jmp(copy L8 [loop entry point])]
r(cond()) NEXT:[jf(copy L9 [loop exit point])] PREV:[r(cond)]
jf(copy L9 [loop exit point]) NEXT:[read (Unit), jmp(copy L8 [loop entry point])] PREV:[r(cond())]
jmp(copy L8 [loop entry point]) NEXT:[r(cond)] PREV:[jf(copy L9 [loop exit point])]
read (Unit) NEXT:[<END>] PREV:[jf(copy L9 [loop exit point])]
L1:
L13 [stop [d0, d1, d2]]:
<END> NEXT:[<SINK>] PREV:[read (Unit)]
error:
<ERROR> NEXT:[<SINK>] PREV:[jmp(error)]