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
@@ -103,13 +103,13 @@ public class JetControlFlowInstructionsGenerator extends JetControlFlowBuilderAd
@NotNull @NotNull
@Override @Override
public final Label createUnboundLabel() { public final Label createUnboundLabel() {
return pseudocode.createLabel("l" + labelCount++); return pseudocode.createLabel("L" + labelCount++);
} }
@NotNull @NotNull
@Override @Override
public Label createUnboundLabel(@NotNull String name) { public Label createUnboundLabel(@NotNull String name) {
return pseudocode.createLabel("l" + labelCount++ + " [" + name + "]"); return pseudocode.createLabel("L" + labelCount++ + " [" + name + "]");
} }
@Override @Override
@@ -15,7 +15,7 @@ class AnonymousInitializers() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val k = 34)] PREV:[] <START> NEXT:[v(val k = 34)] PREV:[]
v(val k = 34) NEXT:[r(34)] PREV:[<START>] v(val k = 34) NEXT:[r(34)] PREV:[<START>]
r(34) NEXT:[w(k)] PREV:[v(val k = 34)] r(34) NEXT:[w(k)] PREV:[v(val k = 34)]
@@ -24,22 +24,22 @@ l0:
r(12) NEXT:[w($i)] PREV:[v(val i: Int)] r(12) NEXT:[w($i)] PREV:[v(val i: Int)]
w($i) NEXT:[v(val j: Int get() = 20) ] PREV:[r(12)] w($i) NEXT:[v(val j: Int get() = 20) ] PREV:[r(12)]
v(val j: Int v(val j: Int
get() = 20) NEXT:[jmp?(l2)] PREV:[w($i)] get() = 20) NEXT:[jmp?(L2)] PREV:[w($i)]
jmp?(l2) NEXT:[r(13), d(get() = 20)] PREV:[v(val j: Int get() = 20) ] jmp?(L2) NEXT:[r(13), d(get() = 20)] PREV:[v(val j: Int get() = 20) ]
d(get() = 20) NEXT:[<SINK>] PREV:[jmp?(l2)] d(get() = 20) NEXT:[<SINK>] PREV:[jmp?(L2)]
l2: L2:
r(13) NEXT:[w($i)] PREV:[jmp?(l2)] r(13) NEXT:[w($i)] PREV:[jmp?(L2)]
w($i) NEXT:[<END>] PREV:[r(13)] w($i) NEXT:[<END>] PREV:[r(13)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w($i)] <END> NEXT:[<SINK>] PREV:[w($i)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
<SINK> NEXT:[] PREV:[<ERROR>, <END>, d(get() = 20)] <SINK> NEXT:[] PREV:[<ERROR>, <END>, d(get() = 20)]
l3: L3:
<START> NEXT:[r(20)] PREV:[] <START> NEXT:[r(20)] PREV:[]
r(20) NEXT:[<END>] PREV:[<START>] r(20) NEXT:[<END>] PREV:[<START>]
l4: L4:
<END> NEXT:[<SINK>] PREV:[r(20)] <END> NEXT:[<SINK>] PREV:[r(20)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -49,10 +49,10 @@ sink:
== get_j == == get_j ==
get() = 20 get() = 20
--------------------- ---------------------
l3: L3:
<START> NEXT:[r(20)] PREV:[] <START> NEXT:[r(20)] PREV:[]
r(20) NEXT:[<END>] PREV:[<START>] r(20) NEXT:[<END>] PREV:[<START>]
l4: L4:
<END> NEXT:[<SINK>] PREV:[r(20)] <END> NEXT:[<SINK>] PREV:[r(20)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -9,7 +9,7 @@ fun foo() {
a[10] += 1 a[10] += 1
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val a = Array<Int>)] PREV:[] <START> NEXT:[v(val a = Array<Int>)] PREV:[]
v(val a = Array<Int>) NEXT:[r(Array)] PREV:[<START>] v(val a = Array<Int>) NEXT:[r(Array)] PREV:[<START>]
r(Array) NEXT:[r(Array<Int>)] PREV:[v(val a = Array<Int>)] r(Array) NEXT:[r(Array<Int>)] PREV:[v(val a = Array<Int>)]
@@ -32,7 +32,7 @@ l0:
r(1) NEXT:[r(+=)] PREV:[r(a[10])] r(1) NEXT:[r(+=)] PREV:[r(a[10])]
r(+=) NEXT:[w(a[10])] PREV:[r(1)] r(+=) NEXT:[w(a[10])] PREV:[r(1)]
w(a[10]) NEXT:[<END>] PREV:[r(+=)] w(a[10]) NEXT:[<END>] PREV:[r(+=)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(a[10])] <END> NEXT:[<SINK>] PREV:[w(a[10])]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
+22 -22
View File
@@ -3,10 +3,10 @@ class Test {
var x : Int; var x : Int;
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(var x : Int;)] PREV:[] <START> NEXT:[v(var x : Int;)] PREV:[]
v(var x : Int;) NEXT:[<END>] PREV:[<START>] v(var x : Int;) NEXT:[<END>] PREV:[<START>]
l1: L1:
<END> NEXT:[<SINK>] PREV:[v(var x : Int;)] <END> NEXT:[<SINK>] PREV:[v(var x : Int;)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -28,7 +28,7 @@ fun assignments() : Unit {
t.x = 1 t.x = 1
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(var x = 1)] PREV:[] <START> NEXT:[v(var x = 1)] PREV:[]
v(var x = 1) NEXT:[r(1)] PREV:[<START>] v(var x = 1) NEXT:[r(1)] PREV:[<START>]
r(1) NEXT:[w(x)] PREV:[v(var x = 1)] r(1) NEXT:[w(x)] PREV:[v(var x = 1)]
@@ -39,27 +39,27 @@ l0:
r(2) NEXT:[r(+=)] PREV:[r(x)] r(2) NEXT:[r(+=)] PREV:[r(x)]
r(+=) NEXT:[w(x)] PREV:[r(2)] r(+=) NEXT:[w(x)] PREV:[r(2)]
w(x) NEXT:[r(true)] PREV:[r(+=)] w(x) NEXT:[r(true)] PREV:[r(+=)]
r(true) NEXT:[jf(l2)] PREV:[w(x)] r(true) NEXT:[jf(L2)] PREV:[w(x)]
jf(l2) NEXT:[r(2), r(1)] PREV:[r(true)] jf(L2) NEXT:[r(2), r(1)] PREV:[r(true)]
r(1) NEXT:[jmp(l3)] PREV:[jf(l2)] r(1) NEXT:[jmp(L3)] PREV:[jf(L2)]
jmp(l3) NEXT:[w(x)] PREV:[r(1)] jmp(L3) NEXT:[w(x)] PREV:[r(1)]
l2: L2:
r(2) NEXT:[w(x)] PREV:[jf(l2)] r(2) NEXT:[w(x)] PREV:[jf(L2)]
l3: L3:
w(x) NEXT:[v(val y = true && false)] PREV:[jmp(l3), r(2)] w(x) NEXT:[v(val y = true && false)] PREV:[jmp(L3), r(2)]
v(val y = true && false) NEXT:[r(true)] PREV:[w(x)] v(val y = true && false) NEXT:[r(true)] PREV:[w(x)]
r(true) NEXT:[jf(l4)] PREV:[v(val y = true && false)] r(true) NEXT:[jf(L4)] PREV:[v(val y = true && false)]
jf(l4) NEXT:[r(true && false), r(false)] PREV:[r(true)] jf(L4) NEXT:[r(true && false), r(false)] PREV:[r(true)]
r(false) NEXT:[r(true && false)] PREV:[jf(l4)] r(false) NEXT:[r(true && false)] PREV:[jf(L4)]
l4: L4:
r(true && false) NEXT:[w(y)] PREV:[jf(l4), r(false)] r(true && false) NEXT:[w(y)] PREV:[jf(L4), r(false)]
w(y) NEXT:[v(val z = false && true)] PREV:[r(true && false)] w(y) NEXT:[v(val z = false && true)] PREV:[r(true && false)]
v(val z = false && true) NEXT:[r(false)] PREV:[w(y)] v(val z = false && true) NEXT:[r(false)] PREV:[w(y)]
r(false) NEXT:[jf(l5)] PREV:[v(val z = false && true)] r(false) NEXT:[jf(L5)] PREV:[v(val z = false && true)]
jf(l5) NEXT:[r(false && true), r(true)] PREV:[r(false)] jf(L5) NEXT:[r(false && true), r(true)] PREV:[r(false)]
r(true) NEXT:[r(false && true)] PREV:[jf(l5)] r(true) NEXT:[r(false && true)] PREV:[jf(L5)]
l5: L5:
r(false && true) NEXT:[w(z)] PREV:[jf(l5), r(true)] r(false && true) NEXT:[w(z)] PREV:[jf(L5), r(true)]
w(z) NEXT:[v(val t = Test())] PREV:[r(false && true)] w(z) NEXT:[v(val t = Test())] PREV:[r(false && true)]
v(val t = Test()) NEXT:[r(Test)] PREV:[w(z)] v(val t = Test()) NEXT:[r(Test)] PREV:[w(z)]
r(Test) NEXT:[r(Test())] PREV:[v(val t = Test())] r(Test) NEXT:[r(Test())] PREV:[v(val t = Test())]
@@ -69,7 +69,7 @@ l5:
r(t) NEXT:[r(=)] PREV:[r(1)] r(t) NEXT:[r(=)] PREV:[r(1)]
r(=) NEXT:[w(t.x)] PREV:[r(t)] r(=) NEXT:[w(t.x)] PREV:[r(t)]
w(t.x) NEXT:[<END>] PREV:[r(=)] w(t.x) NEXT:[<END>] PREV:[r(=)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(t.x)] <END> NEXT:[<SINK>] PREV:[w(t.x)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
+27 -27
View File
@@ -17,7 +17,7 @@ fun f(a : Boolean) : Unit {
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(a : Boolean)] PREV:[] <START> NEXT:[v(a : Boolean)] PREV:[]
v(a : Boolean) NEXT:[w(a)] PREV:[<START>] v(a : Boolean) NEXT:[w(a)] PREV:[<START>]
w(a) NEXT:[r(1)] PREV:[v(a : Boolean)] w(a) NEXT:[r(1)] PREV:[v(a : Boolean)]
@@ -32,11 +32,11 @@ l0:
r(foo) NEXT:[r(foo(a, 3))] PREV:[r(3)] r(foo) NEXT:[r(foo(a, 3))] PREV:[r(3)]
r(foo(a, 3)) NEXT:[r(genfun)] PREV:[r(foo)] r(foo(a, 3)) NEXT:[r(genfun)] PREV:[r(foo)]
r(genfun) NEXT:[r(genfun<Any>())] PREV:[r(foo(a, 3))] r(genfun) NEXT:[r(genfun<Any>())] PREV:[r(foo(a, 3))]
r(genfun<Any>()) NEXT:[jmp?(l2)] PREV:[r(genfun)] r(genfun<Any>()) NEXT:[jmp?(L2)] PREV:[r(genfun)]
jmp?(l2) NEXT:[r({1}), d({1})] PREV:[r(genfun<Any>())] jmp?(L2) NEXT:[r({1}), d({1})] PREV:[r(genfun<Any>())]
d({1}) NEXT:[<SINK>] PREV:[jmp?(l2)] d({1}) NEXT:[<SINK>] PREV:[jmp?(L2)]
l2: L2:
r({1}) NEXT:[r(flfun)] PREV:[jmp?(l2)] r({1}) NEXT:[r(flfun)] PREV:[jmp?(L2)]
r(flfun) NEXT:[r(flfun {1})] PREV:[r({1})] r(flfun) NEXT:[r(flfun {1})] PREV:[r({1})]
r(flfun {1}) NEXT:[r(3)] PREV:[r(flfun)] r(flfun {1}) NEXT:[r(3)] PREV:[r(flfun)]
r(3) NEXT:[r(4)] PREV:[r(flfun {1})] r(3) NEXT:[r(4)] PREV:[r(flfun {1})]
@@ -52,26 +52,26 @@ l2:
r(2) NEXT:[r(+)] PREV:[r(1)] r(2) NEXT:[r(+)] PREV:[r(1)]
r(+) NEXT:[r(1 + 2)] PREV:[r(2)] r(+) NEXT:[r(1 + 2)] PREV:[r(2)]
r(1 + 2) NEXT:[r(a)] PREV:[r(+)] r(1 + 2) NEXT:[r(a)] PREV:[r(+)]
r(a) NEXT:[jf(l5)] PREV:[r(1 + 2)] r(a) NEXT:[jf(L5)] PREV:[r(1 + 2)]
jf(l5) NEXT:[r(a && true), r(true)] PREV:[r(a)] jf(L5) NEXT:[r(a && true), r(true)] PREV:[r(a)]
r(true) NEXT:[r(a && true)] PREV:[jf(l5)] r(true) NEXT:[r(a && true)] PREV:[jf(L5)]
l5: L5:
r(a && true) NEXT:[r(a)] PREV:[jf(l5), r(true)] r(a && true) NEXT:[r(a)] PREV:[jf(L5), r(true)]
r(a) NEXT:[jt(l6)] PREV:[r(a && true)] r(a) NEXT:[jt(L6)] PREV:[r(a && true)]
jt(l6) NEXT:[r(false), r(a || false)] PREV:[r(a)] jt(L6) NEXT:[r(false), r(a || false)] PREV:[r(a)]
r(false) NEXT:[r(a || false)] PREV:[jt(l6)] r(false) NEXT:[r(a || false)] PREV:[jt(L6)]
l6: L6:
r(a || false) NEXT:[<END>] PREV:[jt(l6), r(false)] r(a || false) NEXT:[<END>] PREV:[jt(L6), r(false)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[r(a || false)] <END> NEXT:[<SINK>] PREV:[r(a || false)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
<SINK> NEXT:[] PREV:[<ERROR>, <END>, d({1})] <SINK> NEXT:[] PREV:[<ERROR>, <END>, d({1})]
l3: L3:
<START> NEXT:[r(1)] PREV:[] <START> NEXT:[r(1)] PREV:[]
r(1) NEXT:[<END>] PREV:[<START>] r(1) NEXT:[<END>] PREV:[<START>]
l4: L4:
<END> NEXT:[<SINK>] PREV:[r(1)] <END> NEXT:[<SINK>] PREV:[r(1)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -81,10 +81,10 @@ sink:
== anonymous_0 == == anonymous_0 ==
{1} {1}
--------------------- ---------------------
l3: L3:
<START> NEXT:[r(1)] PREV:[] <START> NEXT:[r(1)] PREV:[]
r(1) NEXT:[<END>] PREV:[<START>] r(1) NEXT:[<END>] PREV:[<START>]
l4: L4:
<END> NEXT:[<SINK>] PREV:[r(1)] <END> NEXT:[<SINK>] PREV:[r(1)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -94,14 +94,14 @@ sink:
== foo == == foo ==
fun foo(a : Boolean, b : Int) : Unit {} fun foo(a : Boolean, b : Int) : Unit {}
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(a : Boolean)] PREV:[] <START> NEXT:[v(a : Boolean)] PREV:[]
v(a : Boolean) NEXT:[w(a)] PREV:[<START>] v(a : Boolean) NEXT:[w(a)] PREV:[<START>]
w(a) NEXT:[v(b : Int)] PREV:[v(a : Boolean)] w(a) NEXT:[v(b : Int)] PREV:[v(a : Boolean)]
v(b : Int) NEXT:[w(b)] PREV:[w(a)] v(b : Int) NEXT:[w(b)] PREV:[w(a)]
w(b) NEXT:[read (Unit)] PREV:[v(b : Int)] w(b) NEXT:[read (Unit)] PREV:[v(b : Int)]
read (Unit) NEXT:[<END>] PREV:[w(b)] read (Unit) NEXT:[<END>] PREV:[w(b)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -111,10 +111,10 @@ sink:
== genfun == == genfun ==
fun genfun<T>() : Unit {} fun genfun<T>() : Unit {}
--------------------- ---------------------
l0: L0:
<START> NEXT:[read (Unit)] PREV:[] <START> NEXT:[read (Unit)] PREV:[]
read (Unit) NEXT:[<END>] PREV:[<START>] read (Unit) NEXT:[<END>] PREV:[<START>]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -124,12 +124,12 @@ sink:
== flfun == == flfun ==
fun flfun(f : () -> Any) : Unit {} fun flfun(f : () -> Any) : Unit {}
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(f : () -> Any)] PREV:[] <START> NEXT:[v(f : () -> Any)] PREV:[]
v(f : () -> Any) NEXT:[w(f)] PREV:[<START>] v(f : () -> Any) NEXT:[w(f)] PREV:[<START>]
w(f) NEXT:[read (Unit)] PREV:[v(f : () -> Any)] w(f) NEXT:[read (Unit)] PREV:[v(f : () -> Any)]
read (Unit) NEXT:[<END>] PREV:[w(f)] read (Unit) NEXT:[<END>] PREV:[w(f)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
+2 -2
View File
@@ -4,14 +4,14 @@ fun test() {
test() test()
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(Exception)] PREV:[] <START> NEXT:[r(Exception)] PREV:[]
r(Exception) NEXT:[r(Exception())] PREV:[<START>] r(Exception) NEXT:[r(Exception())] PREV:[<START>]
r(Exception()) NEXT:[throw (throw Exception())] PREV:[r(Exception)] r(Exception()) NEXT:[throw (throw Exception())] PREV:[r(Exception)]
throw (throw Exception()) NEXT:[<ERROR>] PREV:[r(Exception())] throw (throw Exception()) NEXT:[<ERROR>] PREV:[r(Exception())]
- r(test) NEXT:[r(test())] PREV:[] - r(test) NEXT:[r(test())] PREV:[]
- r(test()) NEXT:[<END>] PREV:[] - r(test()) NEXT:[<END>] PREV:[]
l1: L1:
<END> NEXT:[<SINK>] PREV:[] <END> NEXT:[<SINK>] PREV:[]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[throw (throw Exception())] <ERROR> NEXT:[<SINK>] PREV:[throw (throw Exception())]
@@ -1,10 +1,10 @@
== empty == == empty ==
fun empty() {} fun empty() {}
--------------------- ---------------------
l0: L0:
<START> NEXT:[read (Unit)] PREV:[] <START> NEXT:[read (Unit)] PREV:[]
read (Unit) NEXT:[<END>] PREV:[<START>] read (Unit) NEXT:[<END>] PREV:[<START>]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -3,7 +3,7 @@ fun fail() : Nothing {
throw java.lang.RuntimeException() throw java.lang.RuntimeException()
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(java)] PREV:[] <START> NEXT:[r(java)] PREV:[]
r(java) NEXT:[r(lang)] PREV:[<START>] r(java) NEXT:[r(lang)] PREV:[<START>]
r(lang) NEXT:[r(java.lang)] PREV:[r(java)] r(lang) NEXT:[r(java.lang)] PREV:[r(java)]
@@ -12,7 +12,7 @@ l0:
r(RuntimeException()) NEXT:[r(java.lang.RuntimeException())] PREV:[r(RuntimeException)] r(RuntimeException()) NEXT:[r(java.lang.RuntimeException())] PREV:[r(RuntimeException)]
r(java.lang.RuntimeException()) NEXT:[throw (throw java.lang.RuntimeException())] PREV:[r(RuntimeException())] r(java.lang.RuntimeException()) NEXT:[throw (throw java.lang.RuntimeException())] PREV:[r(RuntimeException())]
throw (throw java.lang.RuntimeException()) NEXT:[<ERROR>] PREV:[r(java.lang.RuntimeException())] throw (throw java.lang.RuntimeException()) NEXT:[<ERROR>] PREV:[r(java.lang.RuntimeException())]
l1: L1:
<END> NEXT:[<SINK>] PREV:[] <END> NEXT:[<SINK>] PREV:[]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[throw (throw java.lang.RuntimeException())] <ERROR> NEXT:[<SINK>] PREV:[throw (throw java.lang.RuntimeException())]
File diff suppressed because it is too large Load Diff
+117 -117
View File
@@ -14,7 +14,7 @@ fun testCopy1() : Int {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(try { doSmth() } catch (e:..)] PREV:[] <START> NEXT:[r(try { doSmth() } catch (e:..)] PREV:[]
r(try { r(try {
doSmth() doSmth()
@@ -27,42 +27,42 @@ l0:
} }
finally { finally {
return 1 return 1
}) NEXT:[jmp?(l2 [onException])] PREV:[<START>] }) NEXT:[jmp?(L2 [onException])] PREV:[<START>]
jmp?(l2 [onException]) NEXT:[jmp?(l5 [catch 0]), jmp?(l3 [onExceptionToFinallyBlock])] PREV:[r(try { doSmth() } catch (e:..)] 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])] jmp?(L3 [onExceptionToFinallyBlock]) NEXT:[r(1), r(doSmth)] PREV:[jmp?(L2 [onException])]
r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(l3 [onExceptionToFinallyBlock])] r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(l4 [afterCatches])] PREV:[r(doSmth)] r(doSmth()) NEXT:[jmp(L4 [afterCatches])] PREV:[r(doSmth)]
d0: d0:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth())] jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
l2 [onException]: L2 [onException]:
jmp?(l5 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(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])] v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(L5 [catch 0])]
w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)] w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)]
r(doSmth1) NEXT:[r(doSmth1())] PREV:[w(e)] 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: d1:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())] jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
l5 [catch 0]: L5 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(l5 [catch 0])] v(e: Exception) NEXT:[w(e)] PREV:[jmp?(L5 [catch 0])]
w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)] w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)]
r(doSmth2) NEXT:[r(doSmth2())] PREV:[w(e)] 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: d2:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())] jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
l4 [afterCatches]: L4 [afterCatches]:
jmp(l6 [skipFinallyToErrorBlock]) NEXT:[r(1)] PREV:[jmp(l4 [afterCatches]), jmp(l4 [afterCatches]), jmp(l4 [afterCatches])] jmp(L6 [skipFinallyToErrorBlock]) NEXT:[r(1)] PREV:[jmp(L4 [afterCatches]), jmp(L4 [afterCatches]), jmp(L4 [afterCatches])]
l3 [onExceptionToFinallyBlock]: L3 [onExceptionToFinallyBlock]:
l7 [start finally]: L7 [start finally]:
r(1) NEXT:[ret(*) l1] PREV:[jmp?(l3 [onExceptionToFinallyBlock])] r(1) NEXT:[ret(*) L1] PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
ret(*) l1 NEXT:[<END>] PREV:[r(1)] ret(*) L1 NEXT:[<END>] PREV:[r(1)]
l8 [finish finally]: L8 [finish finally]:
- jmp(error) NEXT:[<ERROR>] PREV:[] - jmp(error) NEXT:[<ERROR>] PREV:[]
l6 [skipFinallyToErrorBlock]: L6 [skipFinallyToErrorBlock]:
r(1) NEXT:[ret(*) l1] PREV:[jmp(l6 [skipFinallyToErrorBlock])] r(1) NEXT:[ret(*) L1] PREV:[jmp(L6 [skipFinallyToErrorBlock])]
ret(*) l1 NEXT:[<END>] PREV:[r(1)] ret(*) L1 NEXT:[<END>] PREV:[r(1)]
l1: L1:
l9 [stop [d0, d1, d2]]: L9 [stop [d0, d1, d2]]:
<END> NEXT:[<SINK>] PREV:[ret(*) l1, ret(*) l1] <END> NEXT:[<SINK>] PREV:[ret(*) L1, ret(*) L1]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
@@ -87,7 +87,7 @@ fun testCopy2() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(while (cond()) { try { doS..)] PREV:[] <START> NEXT:[r(while (cond()) { try { doS..)] PREV:[]
r(while (cond()) { r(while (cond()) {
try { try {
@@ -104,12 +104,12 @@ l0:
else continue else continue
} }
}) NEXT:[r(cond)] PREV:[<START>] }) NEXT:[r(cond)] PREV:[<START>]
l2 [loop entry point]: L2 [loop entry point]:
l5 [condition 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:[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)] 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())] jf(L3 [loop exit point]) NEXT:[read (Unit), r(try { doSmth() } catch (e:..)] PREV:[r(cond())]
l4 [body entry point]: L4 [body entry point]:
r(try { r(try {
doSmth() doSmth()
} }
@@ -122,55 +122,55 @@ l4 [body entry point]:
finally { finally {
if (cond()) return if (cond()) return
else continue else continue
}) NEXT:[jmp?(l6 [onException])] PREV:[jf(l3 [loop exit point])] }) 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?(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])] jmp?(L7 [onExceptionToFinallyBlock]) NEXT:[r(cond), r(doSmth)] PREV:[jmp?(L6 [onException])]
r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(l7 [onExceptionToFinallyBlock])] r(doSmth) NEXT:[r(doSmth())] PREV:[jmp?(L7 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(l8 [afterCatches])] PREV:[r(doSmth)] r(doSmth()) NEXT:[jmp(L8 [afterCatches])] PREV:[r(doSmth)]
d0: d0:
jmp(l8 [afterCatches]) NEXT:[jmp(l10 [skipFinallyToErrorBlock])] PREV:[r(doSmth())] jmp(L8 [afterCatches]) NEXT:[jmp(L10 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
l6 [onException]: L6 [onException]:
jmp?(l9 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(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])] v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(L9 [catch 0])]
w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)] w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)]
r(doSmth1) NEXT:[r(doSmth1())] PREV:[w(e)] 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: d1:
jmp(l8 [afterCatches]) NEXT:[jmp(l10 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())] jmp(L8 [afterCatches]) NEXT:[jmp(L10 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
l9 [catch 0]: L9 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(l9 [catch 0])] v(e: Exception) NEXT:[w(e)] PREV:[jmp?(L9 [catch 0])]
w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)] w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)]
r(doSmth2) NEXT:[r(doSmth2())] PREV:[w(e)] 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: d2:
jmp(l8 [afterCatches]) NEXT:[jmp(l10 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())] jmp(L8 [afterCatches]) NEXT:[jmp(L10 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
l8 [afterCatches]: L8 [afterCatches]:
jmp(l10 [skipFinallyToErrorBlock]) NEXT:[r(cond)] PREV:[jmp(l8 [afterCatches]), jmp(l8 [afterCatches]), jmp(l8 [afterCatches])] jmp(L10 [skipFinallyToErrorBlock]) NEXT:[r(cond)] PREV:[jmp(L8 [afterCatches]), jmp(L8 [afterCatches]), jmp(L8 [afterCatches])]
l7 [onExceptionToFinallyBlock]: L7 [onExceptionToFinallyBlock]:
l11 [start finally]: L11 [start finally]:
r(cond) NEXT:[r(cond())] PREV:[jmp?(l7 [onExceptionToFinallyBlock])] r(cond) NEXT:[r(cond())] PREV:[jmp?(L7 [onExceptionToFinallyBlock])]
r(cond()) NEXT:[jf(l12)] PREV:[r(cond)] r(cond()) NEXT:[jf(L12)] PREV:[r(cond)]
jf(l12) NEXT:[jmp(l2 [loop entry point]), ret l1] PREV:[r(cond())] jf(L12) NEXT:[jmp(L2 [loop entry point]), ret L1] PREV:[r(cond())]
ret l1 NEXT:[<END>] PREV:[jf(l12)] ret L1 NEXT:[<END>] PREV:[jf(L12)]
- jmp(l13) NEXT:[jmp(error)] PREV:[] - jmp(L13) NEXT:[jmp(error)] PREV:[]
l12: L12:
jmp(l2 [loop entry point]) NEXT:[r(cond)] PREV:[jf(l12)] jmp(L2 [loop entry point]) NEXT:[r(cond)] PREV:[jf(L12)]
l13: L13:
l14 [finish finally]: L14 [finish finally]:
- jmp(error) NEXT:[<ERROR>] PREV:[] - jmp(error) NEXT:[<ERROR>] PREV:[]
l10 [skipFinallyToErrorBlock]: L10 [skipFinallyToErrorBlock]:
r(cond) NEXT:[r(cond())] PREV:[jmp(l10 [skipFinallyToErrorBlock])] r(cond) NEXT:[r(cond())] PREV:[jmp(L10 [skipFinallyToErrorBlock])]
r(cond()) NEXT:[jf(copy l12)] PREV:[r(cond)] r(cond()) NEXT:[jf(copy L12)] PREV:[r(cond)]
jf(copy l12) NEXT:[jmp(l2 [loop entry point]), ret l1] 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)] ret L1 NEXT:[<END>] PREV:[jf(copy L12)]
- jmp(l13) NEXT:[jmp(error)] PREV:[] - jmp(L13) NEXT:[jmp(error)] PREV:[]
jmp(l2 [loop entry point]) NEXT:[r(cond)] PREV:[jf(copy l12)] jmp(L2 [loop entry point]) NEXT:[r(cond)] PREV:[jf(copy L12)]
l15 [stop [d0, d1, d2]]: L15 [stop [d0, d1, d2]]:
- jmp(l2 [loop entry point]) NEXT:[r(cond)] PREV:[] - jmp(L2 [loop entry point]) NEXT:[r(cond)] PREV:[]
l3 [loop exit point]: L3 [loop exit point]:
read (Unit) NEXT:[<END>] PREV:[jf(l3 [loop exit point])] read (Unit) NEXT:[<END>] PREV:[jf(L3 [loop exit point])]
l1: L1:
<END> NEXT:[<SINK>] PREV:[ret l1, ret l1, read (Unit)] <END> NEXT:[<SINK>] PREV:[ret L1, ret L1, read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
@@ -192,7 +192,7 @@ fun testCopy3() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(try { doSmth() } catch (e:..)] PREV:[] <START> NEXT:[r(try { doSmth() } catch (e:..)] PREV:[]
r(try { r(try {
doSmth() doSmth()
@@ -205,53 +205,53 @@ l0:
} }
finally { finally {
while (cond()); while (cond());
}) NEXT:[jmp?(l2 [onException])] PREV:[<START>] }) NEXT:[jmp?(L2 [onException])] PREV:[<START>]
jmp?(l2 [onException]) NEXT:[jmp?(l5 [catch 0]), jmp?(l3 [onExceptionToFinallyBlock])] PREV:[r(try { doSmth() } catch (e:..)] 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])] 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:[r(doSmth())] PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
r(doSmth()) NEXT:[jmp(l4 [afterCatches])] PREV:[r(doSmth)] r(doSmth()) NEXT:[jmp(L4 [afterCatches])] PREV:[r(doSmth)]
d0: d0:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth())] jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth())]
l2 [onException]: L2 [onException]:
jmp?(l5 [catch 0]) NEXT:[v(e: Exception), v(e: NullPointerException)] PREV:[jmp?(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])] v(e: NullPointerException) NEXT:[w(e)] PREV:[jmp?(L5 [catch 0])]
w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)] w(e) NEXT:[r(doSmth1)] PREV:[v(e: NullPointerException)]
r(doSmth1) NEXT:[r(doSmth1())] PREV:[w(e)] 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: d1:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())] jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth1())]
l5 [catch 0]: L5 [catch 0]:
v(e: Exception) NEXT:[w(e)] PREV:[jmp?(l5 [catch 0])] v(e: Exception) NEXT:[w(e)] PREV:[jmp?(L5 [catch 0])]
w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)] w(e) NEXT:[r(doSmth2)] PREV:[v(e: Exception)]
r(doSmth2) NEXT:[r(doSmth2())] PREV:[w(e)] 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: d2:
jmp(l4 [afterCatches]) NEXT:[jmp(l6 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())] jmp(L4 [afterCatches]) NEXT:[jmp(L6 [skipFinallyToErrorBlock])] PREV:[r(doSmth2())]
l4 [afterCatches]: L4 [afterCatches]:
jmp(l6 [skipFinallyToErrorBlock]) NEXT:[r(while (cond()))] PREV:[jmp(l4 [afterCatches]), jmp(l4 [afterCatches]), jmp(l4 [afterCatches])] jmp(L6 [skipFinallyToErrorBlock]) NEXT:[r(while (cond()))] PREV:[jmp(L4 [afterCatches]), jmp(L4 [afterCatches]), jmp(L4 [afterCatches])]
l3 [onExceptionToFinallyBlock]: L3 [onExceptionToFinallyBlock]:
l7 [start finally]: L7 [start finally]:
r(while (cond())) NEXT:[r(cond)] PREV:[jmp?(l3 [onExceptionToFinallyBlock])] r(while (cond())) NEXT:[r(cond)] PREV:[jmp?(L3 [onExceptionToFinallyBlock])]
l8 [loop entry point]: L8 [loop entry point]:
l11 [condition entry point]: L11 [condition entry point]:
r(cond) NEXT:[r(cond())] PREV:[r(while (cond())), jmp(l8 [loop 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)] 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())] jf(L9 [loop exit point]) NEXT:[read (Unit), jmp(L8 [loop entry point])] PREV:[r(cond())]
l10 [body entry point]: L10 [body entry point]:
jmp(l8 [loop entry point]) NEXT:[r(cond)] PREV:[jf(l9 [loop exit point])] jmp(L8 [loop entry point]) NEXT:[r(cond)] PREV:[jf(L9 [loop exit point])]
l9 [loop exit point]: L9 [loop exit point]:
read (Unit) NEXT:[jmp(error)] PREV:[jf(l9 [loop exit point])] read (Unit) NEXT:[jmp(error)] PREV:[jf(L9 [loop exit point])]
l12 [finish finally]: L12 [finish finally]:
jmp(error) NEXT:[<ERROR>] PREV:[read (Unit)] jmp(error) NEXT:[<ERROR>] PREV:[read (Unit)]
l6 [skipFinallyToErrorBlock]: L6 [skipFinallyToErrorBlock]:
r(while (cond())) NEXT:[r(cond)] PREV:[jmp(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:[r(cond())] PREV:[r(while (cond())), jmp(copy L8 [loop entry point])]
r(cond()) NEXT:[jf(copy l9 [loop exit point])] PREV:[r(cond)] 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())] 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])] 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])] read (Unit) NEXT:[<END>] PREV:[jf(copy L9 [loop exit point])]
l1: L1:
l13 [stop [d0, d1, d2]]: L13 [stop [d0, d1, d2]]:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[jmp(error)] <ERROR> NEXT:[<SINK>] PREV:[jmp(error)]
+14 -14
View File
@@ -5,7 +5,7 @@ fun t1() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(for (i in 1..2) { doSmth(i..)] PREV:[] <START> NEXT:[r(for (i in 1..2) { doSmth(i..)] PREV:[]
r(for (i in 1..2) { r(for (i in 1..2) {
doSmth(i) doSmth(i)
@@ -15,18 +15,18 @@ l0:
r(..) NEXT:[r(1..2)] PREV:[r(2)] r(..) NEXT:[r(1..2)] PREV:[r(2)]
r(1..2) NEXT:[v(i)] PREV:[r(..)] r(1..2) NEXT:[v(i)] PREV:[r(..)]
v(i) NEXT:[w(i)] PREV:[r(1..2)] v(i) NEXT:[w(i)] PREV:[r(1..2)]
w(i) NEXT:[jmp?(l2)] PREV:[v(i)] w(i) NEXT:[jmp?(L2)] PREV:[v(i)]
l3: L3:
jmp?(l2) NEXT:[read (Unit), r(i)] PREV:[w(i)] jmp?(L2) NEXT:[read (Unit), r(i)] PREV:[w(i)]
l4 [loop entry point]: L4 [loop entry point]:
l5 [body entry point]: L5 [body entry point]:
r(i) NEXT:[r(doSmth)] PREV:[jmp?(l2), jmp?(l4 [loop entry point])] r(i) NEXT:[r(doSmth)] PREV:[jmp?(L2), jmp?(L4 [loop entry point])]
r(doSmth) NEXT:[r(doSmth(i))] PREV:[r(i)] r(doSmth) NEXT:[r(doSmth(i))] PREV:[r(i)]
r(doSmth(i)) NEXT:[jmp?(l4 [loop entry point])] PREV:[r(doSmth)] r(doSmth(i)) NEXT:[jmp?(L4 [loop entry point])] PREV:[r(doSmth)]
jmp?(l4 [loop entry point]) NEXT:[r(i), read (Unit)] PREV:[r(doSmth(i))] jmp?(L4 [loop entry point]) NEXT:[r(i), read (Unit)] PREV:[r(doSmth(i))]
l2: L2:
read (Unit) NEXT:[<END>] PREV:[jmp?(l2), jmp?(l4 [loop entry point])] read (Unit) NEXT:[<END>] PREV:[jmp?(L2), jmp?(L4 [loop entry point])]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -36,12 +36,12 @@ sink:
== doSmth == == doSmth ==
fun doSmth(i: Int) {} fun doSmth(i: Int) {}
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(i: Int)] PREV:[] <START> NEXT:[v(i: Int)] PREV:[]
v(i: Int) NEXT:[w(i)] PREV:[<START>] v(i: Int) NEXT:[w(i)] PREV:[<START>]
w(i) NEXT:[read (Unit)] PREV:[v(i: Int)] w(i) NEXT:[read (Unit)] PREV:[v(i: Int)]
read (Unit) NEXT:[<END>] PREV:[w(i)] read (Unit) NEXT:[<END>] PREV:[w(i)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
+39 -39
View File
@@ -16,36 +16,36 @@ fun t1(b: Boolean) {
doSmth(r) doSmth(r)
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(b: Boolean)] PREV:[] <START> NEXT:[v(b: Boolean)] PREV:[]
v(b: Boolean) NEXT:[w(b)] PREV:[<START>] v(b: Boolean) NEXT:[w(b)] PREV:[<START>]
w(b) NEXT:[v(var u: String)] PREV:[v(b: Boolean)] w(b) NEXT:[v(var u: String)] PREV:[v(b: Boolean)]
v(var u: String) NEXT:[r(b)] PREV:[w(b)] v(var u: String) NEXT:[r(b)] PREV:[w(b)]
r(b) NEXT:[jf(l2)] PREV:[v(var u: String)] r(b) NEXT:[jf(L2)] PREV:[v(var u: String)]
jf(l2) NEXT:[read (Unit), r("s")] PREV:[r(b)] jf(L2) NEXT:[read (Unit), r("s")] PREV:[r(b)]
r("s") NEXT:[w(u)] PREV:[jf(l2)] r("s") NEXT:[w(u)] PREV:[jf(L2)]
w(u) NEXT:[jmp(l3)] PREV:[r("s")] w(u) NEXT:[jmp(L3)] PREV:[r("s")]
jmp(l3) NEXT:[r(u)] PREV:[w(u)] jmp(L3) NEXT:[r(u)] PREV:[w(u)]
l2: L2:
read (Unit) NEXT:[r(u)] PREV:[jf(l2)] read (Unit) NEXT:[r(u)] PREV:[jf(L2)]
l3: L3:
r(u) NEXT:[r(doSmth)] PREV:[jmp(l3), read (Unit)] r(u) NEXT:[r(doSmth)] PREV:[jmp(L3), read (Unit)]
r(doSmth) NEXT:[r(doSmth(u))] PREV:[r(u)] r(doSmth) NEXT:[r(doSmth(u))] PREV:[r(u)]
r(doSmth(u)) NEXT:[v(var r: String)] PREV:[r(doSmth)] r(doSmth(u)) NEXT:[v(var r: String)] PREV:[r(doSmth)]
v(var r: String) NEXT:[r(b)] PREV:[r(doSmth(u))] v(var r: String) NEXT:[r(b)] PREV:[r(doSmth(u))]
r(b) NEXT:[jf(l4)] PREV:[v(var r: String)] r(b) NEXT:[jf(L4)] PREV:[v(var r: String)]
jf(l4) NEXT:[r("t"), r("s")] PREV:[r(b)] jf(L4) NEXT:[r("t"), r("s")] PREV:[r(b)]
r("s") NEXT:[w(r)] PREV:[jf(l4)] r("s") NEXT:[w(r)] PREV:[jf(L4)]
w(r) NEXT:[jmp(l5)] PREV:[r("s")] w(r) NEXT:[jmp(L5)] PREV:[r("s")]
jmp(l5) NEXT:[r(r)] PREV:[w(r)] jmp(L5) NEXT:[r(r)] PREV:[w(r)]
l4: L4:
r("t") NEXT:[w(r)] PREV:[jf(l4)] r("t") NEXT:[w(r)] PREV:[jf(L4)]
w(r) NEXT:[r(r)] PREV:[r("t")] w(r) NEXT:[r(r)] PREV:[r("t")]
l5: L5:
r(r) NEXT:[r(doSmth)] PREV:[jmp(l5), w(r)] r(r) NEXT:[r(doSmth)] PREV:[jmp(L5), w(r)]
r(doSmth) NEXT:[r(doSmth(r))] PREV:[r(r)] r(doSmth) NEXT:[r(doSmth(r))] PREV:[r(r)]
r(doSmth(r)) NEXT:[<END>] PREV:[r(doSmth)] r(doSmth(r)) NEXT:[<END>] PREV:[r(doSmth)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[r(doSmth(r))] <END> NEXT:[<SINK>] PREV:[r(doSmth(r))]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -64,33 +64,33 @@ fun t2(b: Boolean) {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(b: Boolean)] PREV:[] <START> NEXT:[v(b: Boolean)] PREV:[]
v(b: Boolean) NEXT:[w(b)] PREV:[<START>] v(b: Boolean) NEXT:[w(b)] PREV:[<START>]
w(b) NEXT:[v(val i = 3)] PREV:[v(b: Boolean)] w(b) NEXT:[v(val i = 3)] PREV:[v(b: Boolean)]
v(val i = 3) NEXT:[r(3)] PREV:[w(b)] v(val i = 3) NEXT:[r(3)] PREV:[w(b)]
r(3) NEXT:[w(i)] PREV:[v(val i = 3)] r(3) NEXT:[w(i)] PREV:[v(val i = 3)]
w(i) NEXT:[r(b)] PREV:[r(3)] w(i) NEXT:[r(b)] PREV:[r(3)]
r(b) NEXT:[jf(l2)] PREV:[w(i)] r(b) NEXT:[jf(L2)] PREV:[w(i)]
jf(l2) NEXT:[read (Unit), ret l1] PREV:[r(b)] jf(L2) NEXT:[read (Unit), ret L1] PREV:[r(b)]
ret l1 NEXT:[<END>] PREV:[jf(l2)] ret L1 NEXT:[<END>] PREV:[jf(L2)]
- jmp(l3) NEXT:[r(i)] PREV:[] - jmp(L3) NEXT:[r(i)] PREV:[]
l2: L2:
read (Unit) NEXT:[r(i)] PREV:[jf(l2)] read (Unit) NEXT:[r(i)] PREV:[jf(L2)]
l3: L3:
r(i) NEXT:[r(doSmth)] PREV:[read (Unit)] r(i) NEXT:[r(doSmth)] PREV:[read (Unit)]
r(doSmth) NEXT:[r(doSmth(i))] PREV:[r(i)] r(doSmth) NEXT:[r(doSmth(i))] PREV:[r(i)]
r(doSmth(i)) NEXT:[r(i)] PREV:[r(doSmth)] r(doSmth(i)) NEXT:[r(i)] PREV:[r(doSmth)]
r(i) NEXT:[r(i is Int)] PREV:[r(doSmth(i))] r(i) NEXT:[r(i is Int)] PREV:[r(doSmth(i))]
r(i is Int) NEXT:[jf(l4)] PREV:[r(i)] r(i is Int) NEXT:[jf(L4)] PREV:[r(i)]
jf(l4) NEXT:[read (Unit), ret l1] PREV:[r(i is Int)] jf(L4) NEXT:[read (Unit), ret L1] PREV:[r(i is Int)]
ret l1 NEXT:[<END>] PREV:[jf(l4)] ret L1 NEXT:[<END>] PREV:[jf(L4)]
- jmp(l5) NEXT:[<END>] PREV:[] - jmp(L5) NEXT:[<END>] PREV:[]
l4: L4:
read (Unit) NEXT:[<END>] PREV:[jf(l4)] read (Unit) NEXT:[<END>] PREV:[jf(L4)]
l1: L1:
l5: L5:
<END> NEXT:[<SINK>] PREV:[ret l1, ret l1, read (Unit)] <END> NEXT:[<SINK>] PREV:[ret L1, ret L1, read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
@@ -99,12 +99,12 @@ sink:
== doSmth == == doSmth ==
fun doSmth(s: String) {} fun doSmth(s: String) {}
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(s: String)] PREV:[] <START> NEXT:[v(s: String)] PREV:[]
v(s: String) NEXT:[w(s)] PREV:[<START>] v(s: String) NEXT:[w(s)] PREV:[<START>]
w(s) NEXT:[read (Unit)] PREV:[v(s: String)] w(s) NEXT:[read (Unit)] PREV:[v(s: String)]
read (Unit) NEXT:[<END>] PREV:[w(s)] read (Unit) NEXT:[<END>] PREV:[w(s)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
+48 -48
View File
@@ -17,59 +17,59 @@ fun lazyBooleans(a : Boolean, b : Boolean) : Unit {
14 14
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(a : Boolean)] PREV:[] <START> NEXT:[v(a : Boolean)] PREV:[]
v(a : Boolean) NEXT:[w(a)] PREV:[<START>] v(a : Boolean) NEXT:[w(a)] PREV:[<START>]
w(a) NEXT:[v(b : Boolean)] PREV:[v(a : Boolean)] w(a) NEXT:[v(b : Boolean)] PREV:[v(a : Boolean)]
v(b : Boolean) NEXT:[w(b)] PREV:[w(a)] v(b : Boolean) NEXT:[w(b)] PREV:[w(a)]
w(b) NEXT:[r(a)] PREV:[v(b : Boolean)] w(b) NEXT:[r(a)] PREV:[v(b : Boolean)]
r(a) NEXT:[jf(l2)] PREV:[w(b)] r(a) NEXT:[jf(L2)] PREV:[w(b)]
jf(l2) NEXT:[r(2), r(1)] PREV:[r(a)] jf(L2) NEXT:[r(2), r(1)] PREV:[r(a)]
r(1) NEXT:[jmp(l3)] PREV:[jf(l2)] r(1) NEXT:[jmp(L3)] PREV:[jf(L2)]
jmp(l3) NEXT:[r(3)] PREV:[r(1)] jmp(L3) NEXT:[r(3)] PREV:[r(1)]
l2: L2:
r(2) NEXT:[r(3)] PREV:[jf(l2)] r(2) NEXT:[r(3)] PREV:[jf(L2)]
l3: L3:
r(3) NEXT:[r(a)] PREV:[jmp(l3), r(2)] r(3) NEXT:[r(a)] PREV:[jmp(L3), r(2)]
r(a) NEXT:[jf(l4)] PREV:[r(3)] r(a) NEXT:[jf(L4)] PREV:[r(3)]
jf(l4) NEXT:[jf(l5), r(b)] PREV:[r(a)] jf(L4) NEXT:[jf(L5), r(b)] PREV:[r(a)]
r(b) NEXT:[jf(l5)] PREV:[jf(l4)] r(b) NEXT:[jf(L5)] PREV:[jf(L4)]
l4: L4:
jf(l5) NEXT:[r(6), r(5)] PREV:[jf(l4), r(b)] jf(L5) NEXT:[r(6), r(5)] PREV:[jf(L4), r(b)]
r(5) NEXT:[jmp(l6)] PREV:[jf(l5)] r(5) NEXT:[jmp(L6)] PREV:[jf(L5)]
jmp(l6) NEXT:[r(7)] PREV:[r(5)] jmp(L6) NEXT:[r(7)] PREV:[r(5)]
l5: L5:
r(6) NEXT:[r(7)] PREV:[jf(l5)] r(6) NEXT:[r(7)] PREV:[jf(L5)]
l6: L6:
r(7) NEXT:[r(a)] PREV:[jmp(l6), r(6)] r(7) NEXT:[r(a)] PREV:[jmp(L6), r(6)]
r(a) NEXT:[jt(l7)] PREV:[r(7)] r(a) NEXT:[jt(L7)] PREV:[r(7)]
jt(l7) NEXT:[r(b), jf(l8)] PREV:[r(a)] jt(L7) NEXT:[r(b), jf(L8)] PREV:[r(a)]
r(b) NEXT:[jf(l8)] PREV:[jt(l7)] r(b) NEXT:[jf(L8)] PREV:[jt(L7)]
l7: L7:
jf(l8) NEXT:[r(9), r(8)] PREV:[jt(l7), r(b)] jf(L8) NEXT:[r(9), r(8)] PREV:[jt(L7), r(b)]
r(8) NEXT:[jmp(l9)] PREV:[jf(l8)] r(8) NEXT:[jmp(L9)] PREV:[jf(L8)]
jmp(l9) NEXT:[r(10)] PREV:[r(8)] jmp(L9) NEXT:[r(10)] PREV:[r(8)]
l8: L8:
r(9) NEXT:[r(10)] PREV:[jf(l8)] r(9) NEXT:[r(10)] PREV:[jf(L8)]
l9: L9:
r(10) NEXT:[r(a)] PREV:[jmp(l9), r(9)] r(10) NEXT:[r(a)] PREV:[jmp(L9), r(9)]
r(a) NEXT:[jf(l10)] PREV:[r(10)] r(a) NEXT:[jf(L10)] PREV:[r(10)]
jf(l10) NEXT:[read (Unit), r(11)] PREV:[r(a)] jf(L10) NEXT:[read (Unit), r(11)] PREV:[r(a)]
r(11) NEXT:[jmp(l11)] PREV:[jf(l10)] r(11) NEXT:[jmp(L11)] PREV:[jf(L10)]
jmp(l11) NEXT:[r(12)] PREV:[r(11)] jmp(L11) NEXT:[r(12)] PREV:[r(11)]
l10: L10:
read (Unit) NEXT:[r(12)] PREV:[jf(l10)] read (Unit) NEXT:[r(12)] PREV:[jf(L10)]
l11: L11:
r(12) NEXT:[r(a)] PREV:[jmp(l11), read (Unit)] r(12) NEXT:[r(a)] PREV:[jmp(L11), read (Unit)]
r(a) NEXT:[jf(l12)] PREV:[r(12)] r(a) NEXT:[jf(L12)] PREV:[r(12)]
jf(l12) NEXT:[r(13), read (Unit)] PREV:[r(a)] jf(L12) NEXT:[r(13), read (Unit)] PREV:[r(a)]
read (Unit) NEXT:[jmp(l13)] PREV:[jf(l12)] read (Unit) NEXT:[jmp(L13)] PREV:[jf(L12)]
jmp(l13) NEXT:[r(14)] PREV:[read (Unit)] jmp(L13) NEXT:[r(14)] PREV:[read (Unit)]
l12: L12:
r(13) NEXT:[r(14)] PREV:[jf(l12)] r(13) NEXT:[r(14)] PREV:[jf(L12)]
l13: L13:
r(14) NEXT:[<END>] PREV:[jmp(l13), r(13)] r(14) NEXT:[<END>] PREV:[jmp(L13), r(13)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[r(14)] <END> NEXT:[<SINK>] PREV:[r(14)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -17,12 +17,12 @@ class C() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val a: Int = 1)] PREV:[] <START> NEXT:[v(val a: Int = 1)] PREV:[]
v(val a: Int = 1) NEXT:[r(1)] PREV:[<START>] v(val a: Int = 1) NEXT:[r(1)] PREV:[<START>]
r(1) NEXT:[w(a)] PREV:[v(val a: Int = 1)] r(1) NEXT:[w(a)] PREV:[v(val a: Int = 1)]
w(a) NEXT:[<END>] PREV:[r(1)] w(a) NEXT:[<END>] PREV:[r(1)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(a)] <END> NEXT:[<SINK>] PREV:[w(a)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -32,12 +32,12 @@ sink:
== doSmth == == doSmth ==
fun doSmth(i: Int) {} fun doSmth(i: Int) {}
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(i: Int)] PREV:[] <START> NEXT:[v(i: Int)] PREV:[]
v(i: Int) NEXT:[w(i)] PREV:[<START>] v(i: Int) NEXT:[w(i)] PREV:[<START>]
w(i) NEXT:[read (Unit)] PREV:[v(i: Int)] w(i) NEXT:[read (Unit)] PREV:[v(i: Int)]
read (Unit) NEXT:[<END>] PREV:[w(i)] read (Unit) NEXT:[<END>] PREV:[w(i)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -54,7 +54,7 @@ fun test1() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val a = object { val x : I..)] PREV:[] <START> NEXT:[v(val a = object { val x : I..)] PREV:[]
v(val a = object { v(val a = object {
val x : Int val x : Int
@@ -72,7 +72,7 @@ l0:
} }
}) NEXT:[w(a)] PREV:[w($x)] }) NEXT:[w(a)] PREV:[w($x)]
w(a) NEXT:[<END>] PREV:[r(object { val x : Int { $x ..)] w(a) NEXT:[<END>] PREV:[r(object { val x : Int { $x ..)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(a)] <END> NEXT:[<SINK>] PREV:[w(a)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -87,12 +87,12 @@ object O {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val x : Int)] PREV:[] <START> NEXT:[v(val x : Int)] PREV:[]
v(val x : Int) NEXT:[r(1)] PREV:[<START>] v(val x : Int) NEXT:[r(1)] PREV:[<START>]
r(1) NEXT:[w($x)] PREV:[v(val x : Int)] r(1) NEXT:[w($x)] PREV:[v(val x : Int)]
w($x) NEXT:[<END>] PREV:[r(1)] w($x) NEXT:[<END>] PREV:[r(1)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w($x)] <END> NEXT:[<SINK>] PREV:[w($x)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -107,7 +107,7 @@ fun test2() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val b = 1)] PREV:[] <START> NEXT:[v(val b = 1)] PREV:[]
v(val b = 1) NEXT:[r(1)] PREV:[<START>] v(val b = 1) NEXT:[r(1)] PREV:[<START>]
r(1) NEXT:[w(b)] PREV:[v(val b = 1)] r(1) NEXT:[w(b)] PREV:[v(val b = 1)]
@@ -122,7 +122,7 @@ l0:
val x = b val x = b
}) NEXT:[w(a)] PREV:[w(x)] }) NEXT:[w(a)] PREV:[w(x)]
w(a) NEXT:[<END>] PREV:[r(object { val x = b }) ] w(a) NEXT:[<END>] PREV:[r(object { val x = b }) ]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(a)] <END> NEXT:[<SINK>] PREV:[w(a)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -139,7 +139,7 @@ fun test3() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val a = object { val y : I..)] PREV:[] <START> NEXT:[v(val a = object { val y : I..)] PREV:[]
v(val a = object { v(val a = object {
val y : Int val y : Int
@@ -147,30 +147,30 @@ l0:
y = 10 y = 10
} }
}) NEXT:[v(val y : Int)] PREV:[<START>] }) NEXT:[v(val y : Int)] PREV:[<START>]
v(val y : Int) NEXT:[jmp?(l2)] PREV:[v(val a = object { val y : I..)] v(val y : Int) NEXT:[jmp?(L2)] PREV:[v(val a = object { val y : I..)]
jmp?(l2) NEXT:[r(object { val y : Int fun i..), d(fun inner_bar() { y = 10 }) ] PREV:[v(val y : Int)] jmp?(L2) NEXT:[r(object { val y : Int fun i..), d(fun inner_bar() { y = 10 }) ] PREV:[v(val y : Int)]
d(fun inner_bar() { d(fun inner_bar() {
y = 10 y = 10
}) NEXT:[<SINK>] PREV:[jmp?(l2)] }) NEXT:[<SINK>] PREV:[jmp?(L2)]
l2: L2:
r(object { r(object {
val y : Int val y : Int
fun inner_bar() { fun inner_bar() {
y = 10 y = 10
} }
}) NEXT:[w(a)] PREV:[jmp?(l2)] }) NEXT:[w(a)] PREV:[jmp?(L2)]
w(a) NEXT:[<END>] PREV:[r(object { val y : Int fun i..)] w(a) NEXT:[<END>] PREV:[r(object { val y : Int fun i..)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(a)] <END> NEXT:[<SINK>] PREV:[w(a)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
<SINK> NEXT:[] PREV:[<ERROR>, <END>, d(fun inner_bar() { y = 10 }) ] <SINK> NEXT:[] PREV:[<ERROR>, <END>, d(fun inner_bar() { y = 10 }) ]
l3: L3:
<START> NEXT:[r(10)] PREV:[] <START> NEXT:[r(10)] PREV:[]
r(10) NEXT:[w(y)] PREV:[<START>] r(10) NEXT:[w(y)] PREV:[<START>]
w(y) NEXT:[<END>] PREV:[r(10)] w(y) NEXT:[<END>] PREV:[r(10)]
l4: L4:
<END> NEXT:[<SINK>] PREV:[w(y)] <END> NEXT:[<SINK>] PREV:[w(y)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -182,11 +182,11 @@ fun inner_bar() {
y = 10 y = 10
} }
--------------------- ---------------------
l3: L3:
<START> NEXT:[r(10)] PREV:[] <START> NEXT:[r(10)] PREV:[]
r(10) NEXT:[w(y)] PREV:[<START>] r(10) NEXT:[w(y)] PREV:[<START>]
w(y) NEXT:[<END>] PREV:[r(10)] w(y) NEXT:[<END>] PREV:[r(10)]
l4: L4:
<END> NEXT:[<SINK>] PREV:[w(y)] <END> NEXT:[<SINK>] PREV:[w(y)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -207,7 +207,7 @@ fun test4() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val a = object { val x : I..)] PREV:[] <START> NEXT:[v(val a = object { val x : I..)] PREV:[]
v(val a = object { v(val a = object {
val x : Int val x : Int
@@ -222,12 +222,12 @@ l0:
v(val x : Int) NEXT:[v(val y : Int)] PREV:[v(val a = object { val x : I..)] v(val x : Int) NEXT:[v(val y : Int)] PREV:[v(val a = object { val x : I..)]
v(val y : Int) NEXT:[r(1)] PREV:[v(val x : Int)] v(val y : Int) NEXT:[r(1)] PREV:[v(val x : Int)]
r(1) NEXT:[w($x)] PREV:[v(val y : Int)] r(1) NEXT:[w($x)] PREV:[v(val y : Int)]
w($x) NEXT:[jmp?(l2)] PREV:[r(1)] w($x) NEXT:[jmp?(L2)] PREV:[r(1)]
jmp?(l2) NEXT:[r(object { val x : Int val y..), d(fun ggg() { y = 10 }) ] PREV:[w($x)] jmp?(L2) NEXT:[r(object { val x : Int val y..), d(fun ggg() { y = 10 }) ] PREV:[w($x)]
d(fun ggg() { d(fun ggg() {
y = 10 y = 10
}) NEXT:[<SINK>] PREV:[jmp?(l2)] }) NEXT:[<SINK>] PREV:[jmp?(L2)]
l2: L2:
r(object { r(object {
val x : Int val x : Int
val y : Int val y : Int
@@ -237,19 +237,19 @@ l2:
fun ggg() { fun ggg() {
y = 10 y = 10
} }
}) NEXT:[w(a)] PREV:[jmp?(l2)] }) NEXT:[w(a)] PREV:[jmp?(L2)]
w(a) NEXT:[<END>] PREV:[r(object { val x : Int val y..)] w(a) NEXT:[<END>] PREV:[r(object { val x : Int val y..)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(a)] <END> NEXT:[<SINK>] PREV:[w(a)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
<SINK> NEXT:[] PREV:[<ERROR>, <END>, d(fun ggg() { y = 10 }) ] <SINK> NEXT:[] PREV:[<ERROR>, <END>, d(fun ggg() { y = 10 }) ]
l3: L3:
<START> NEXT:[r(10)] PREV:[] <START> NEXT:[r(10)] PREV:[]
r(10) NEXT:[w(y)] PREV:[<START>] r(10) NEXT:[w(y)] PREV:[<START>]
w(y) NEXT:[<END>] PREV:[r(10)] w(y) NEXT:[<END>] PREV:[r(10)]
l4: L4:
<END> NEXT:[<SINK>] PREV:[w(y)] <END> NEXT:[<SINK>] PREV:[w(y)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -261,11 +261,11 @@ fun ggg() {
y = 10 y = 10
} }
--------------------- ---------------------
l3: L3:
<START> NEXT:[r(10)] PREV:[] <START> NEXT:[r(10)] PREV:[]
r(10) NEXT:[w(y)] PREV:[<START>] r(10) NEXT:[w(y)] PREV:[<START>]
w(y) NEXT:[<END>] PREV:[r(10)] w(y) NEXT:[<END>] PREV:[r(10)]
l4: L4:
<END> NEXT:[<SINK>] PREV:[w(y)] <END> NEXT:[<SINK>] PREV:[w(y)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -288,7 +288,7 @@ fun test5() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(val a = object { var x = 1..)] PREV:[] <START> NEXT:[v(val a = object { var x = 1..)] PREV:[]
v(val a = object { v(val a = object {
var x = 1 var x = 1
@@ -306,17 +306,17 @@ l0:
r(1) NEXT:[w(x)] PREV:[v(var x = 1)] r(1) NEXT:[w(x)] PREV:[v(var x = 1)]
w(x) NEXT:[r(2)] PREV:[r(1)] w(x) NEXT:[r(2)] PREV:[r(1)]
r(2) NEXT:[w($x)] PREV:[w(x)] r(2) NEXT:[w($x)] PREV:[w(x)]
w($x) NEXT:[jmp?(l2)] PREV:[r(2)] w($x) NEXT:[jmp?(L2)] PREV:[r(2)]
jmp?(l2) NEXT:[jmp?(l5), d(fun foo() { x = 3 }) ] PREV:[w($x)] jmp?(L2) NEXT:[jmp?(L5), d(fun foo() { x = 3 }) ] PREV:[w($x)]
d(fun foo() { d(fun foo() {
x = 3 x = 3
}) NEXT:[<SINK>] PREV:[jmp?(l2)] }) NEXT:[<SINK>] PREV:[jmp?(L2)]
l2: L2:
jmp?(l5) NEXT:[r(object { var x = 1 { $x = ..), d(fun bar() { x = 4 }) ] PREV:[jmp?(l2)] jmp?(L5) NEXT:[r(object { var x = 1 { $x = ..), d(fun bar() { x = 4 }) ] PREV:[jmp?(L2)]
d(fun bar() { d(fun bar() {
x = 4 x = 4
}) NEXT:[<SINK>] PREV:[jmp?(l5)] }) NEXT:[<SINK>] PREV:[jmp?(L5)]
l5: L5:
r(object { r(object {
var x = 1 var x = 1
{ {
@@ -328,29 +328,29 @@ l5:
fun bar() { fun bar() {
x = 4 x = 4
} }
}) NEXT:[w(a)] PREV:[jmp?(l5)] }) NEXT:[w(a)] PREV:[jmp?(L5)]
w(a) NEXT:[<END>] PREV:[r(object { var x = 1 { $x = ..)] w(a) NEXT:[<END>] PREV:[r(object { var x = 1 { $x = ..)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(a)] <END> NEXT:[<SINK>] PREV:[w(a)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
<SINK> NEXT:[] PREV:[<ERROR>, <END>, d(fun foo() { x = 3 }) , d(fun bar() { x = 4 }) ] <SINK> NEXT:[] PREV:[<ERROR>, <END>, d(fun foo() { x = 3 }) , d(fun bar() { x = 4 }) ]
l3: L3:
<START> NEXT:[r(3)] PREV:[] <START> NEXT:[r(3)] PREV:[]
r(3) NEXT:[w(x)] PREV:[<START>] r(3) NEXT:[w(x)] PREV:[<START>]
w(x) NEXT:[<END>] PREV:[r(3)] w(x) NEXT:[<END>] PREV:[r(3)]
l4: L4:
<END> NEXT:[<SINK>] PREV:[w(x)] <END> NEXT:[<SINK>] PREV:[w(x)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
<SINK> NEXT:[] PREV:[<ERROR>, <END>] <SINK> NEXT:[] PREV:[<ERROR>, <END>]
l6: L6:
<START> NEXT:[r(4)] PREV:[] <START> NEXT:[r(4)] PREV:[]
r(4) NEXT:[w(x)] PREV:[<START>] r(4) NEXT:[w(x)] PREV:[<START>]
w(x) NEXT:[<END>] PREV:[r(4)] w(x) NEXT:[<END>] PREV:[r(4)]
l7: L7:
<END> NEXT:[<SINK>] PREV:[w(x)] <END> NEXT:[<SINK>] PREV:[w(x)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -362,11 +362,11 @@ fun foo() {
x = 3 x = 3
} }
--------------------- ---------------------
l3: L3:
<START> NEXT:[r(3)] PREV:[] <START> NEXT:[r(3)] PREV:[]
r(3) NEXT:[w(x)] PREV:[<START>] r(3) NEXT:[w(x)] PREV:[<START>]
w(x) NEXT:[<END>] PREV:[r(3)] w(x) NEXT:[<END>] PREV:[r(3)]
l4: L4:
<END> NEXT:[<SINK>] PREV:[w(x)] <END> NEXT:[<SINK>] PREV:[w(x)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -378,11 +378,11 @@ fun bar() {
x = 4 x = 4
} }
--------------------- ---------------------
l6: L6:
<START> NEXT:[r(4)] PREV:[] <START> NEXT:[r(4)] PREV:[]
r(4) NEXT:[w(x)] PREV:[<START>] r(4) NEXT:[w(x)] PREV:[<START>]
w(x) NEXT:[<END>] PREV:[r(4)] w(x) NEXT:[<END>] PREV:[r(4)]
l7: L7:
<END> NEXT:[<SINK>] PREV:[w(x)] <END> NEXT:[<SINK>] PREV:[w(x)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
+4 -4
View File
@@ -4,9 +4,9 @@ class C {
fun component2() = 2 fun component2() = 2
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[<END>] PREV:[] <START> NEXT:[<END>] PREV:[]
l1: L1:
<END> NEXT:[<SINK>] PREV:[<START>] <END> NEXT:[<SINK>] PREV:[<START>]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -19,7 +19,7 @@ fun test(c: C) {
val d = 1 val d = 1
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(c: C)] PREV:[] <START> NEXT:[v(c: C)] PREV:[]
v(c: C) NEXT:[w(c)] PREV:[<START>] v(c: C) NEXT:[w(c)] PREV:[<START>]
w(c) NEXT:[r(c)] PREV:[v(c: C)] w(c) NEXT:[r(c)] PREV:[v(c: C)]
@@ -31,7 +31,7 @@ l0:
v(val d = 1) NEXT:[r(1)] PREV:[w(b)] v(val d = 1) NEXT:[r(1)] PREV:[w(b)]
r(1) NEXT:[w(d)] PREV:[v(val d = 1)] r(1) NEXT:[w(d)] PREV:[v(val d = 1)]
w(d) NEXT:[<END>] PREV:[r(1)] w(d) NEXT:[<END>] PREV:[r(1)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[w(d)] <END> NEXT:[<SINK>] PREV:[w(d)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -3,9 +3,9 @@ trait A {
fun foo() : Int fun foo() : Int
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[<END>] PREV:[] <START> NEXT:[<END>] PREV:[]
l1: L1:
<END> NEXT:[<SINK>] PREV:[<START>] <END> NEXT:[<SINK>] PREV:[<START>]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -17,10 +17,10 @@ class B : A {
override fun foo() = 10 override fun foo() = 10
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[unsupported(DELEGATOR_SUPER_CLASS : A)] PREV:[] <START> NEXT:[unsupported(DELEGATOR_SUPER_CLASS : A)] PREV:[]
unsupported(DELEGATOR_SUPER_CLASS : A) NEXT:[<END>] PREV:[<START>] unsupported(DELEGATOR_SUPER_CLASS : A) NEXT:[<END>] PREV:[<START>]
l1: L1:
<END> NEXT:[<SINK>] PREV:[unsupported(DELEGATOR_SUPER_CLASS : A)] <END> NEXT:[<SINK>] PREV:[unsupported(DELEGATOR_SUPER_CLASS : A)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -33,7 +33,7 @@ fun foo(b: B) : Int {
return o.foo() return o.foo()
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[v(b: B)] PREV:[] <START> NEXT:[v(b: B)] PREV:[]
v(b: B) NEXT:[w(b)] PREV:[<START>] v(b: B) NEXT:[w(b)] PREV:[<START>]
w(b) NEXT:[v(val o = object : A by b {})] PREV:[v(b: B)] w(b) NEXT:[v(val o = object : A by b {})] PREV:[v(b: B)]
@@ -44,10 +44,10 @@ l0:
r(o) NEXT:[r(foo)] PREV:[w(o)] r(o) NEXT:[r(foo)] PREV:[w(o)]
r(foo) NEXT:[r(foo())] PREV:[r(o)] r(foo) NEXT:[r(foo())] PREV:[r(o)]
r(foo()) NEXT:[r(o.foo())] PREV:[r(foo)] r(foo()) NEXT:[r(o.foo())] PREV:[r(foo)]
r(o.foo()) NEXT:[ret(*) l1] PREV:[r(foo())] r(o.foo()) NEXT:[ret(*) L1] PREV:[r(foo())]
ret(*) l1 NEXT:[<END>] PREV:[r(o.foo())] ret(*) L1 NEXT:[<END>] PREV:[r(o.foo())]
l1: L1:
<END> NEXT:[<SINK>] PREV:[ret(*) l1] <END> NEXT:[<SINK>] PREV:[ret(*) L1]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
@@ -5,24 +5,24 @@ fun main() {
} }
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(while(1 > 0) { 2 }) ] PREV:[] <START> NEXT:[r(while(1 > 0) { 2 }) ] PREV:[]
r(while(1 > 0) { r(while(1 > 0) {
2 2
}) NEXT:[r(1)] PREV:[<START>] }) NEXT:[r(1)] PREV:[<START>]
l2 [loop entry point]: L2 [loop entry point]:
l5 [condition entry point]: L5 [condition entry point]:
r(1) NEXT:[r(0)] PREV:[r(while(1 > 0) { 2 }) , jmp(l2 [loop entry point])] r(1) NEXT:[r(0)] PREV:[r(while(1 > 0) { 2 }) , jmp(L2 [loop entry point])]
r(0) NEXT:[r(>)] PREV:[r(1)] r(0) NEXT:[r(>)] PREV:[r(1)]
r(>) NEXT:[r(1 > 0)] PREV:[r(0)] r(>) NEXT:[r(1 > 0)] PREV:[r(0)]
r(1 > 0) NEXT:[jf(l3 [loop exit point])] PREV:[r(>)] r(1 > 0) NEXT:[jf(L3 [loop exit point])] PREV:[r(>)]
jf(l3 [loop exit point]) NEXT:[read (Unit), r(2)] PREV:[r(1 > 0)] jf(L3 [loop exit point]) NEXT:[read (Unit), r(2)] PREV:[r(1 > 0)]
l4 [body entry point]: L4 [body entry point]:
r(2) NEXT:[jmp(l2 [loop entry point])] PREV:[jf(l3 [loop exit point])] r(2) NEXT:[jmp(L2 [loop entry point])] PREV:[jf(L3 [loop exit point])]
jmp(l2 [loop entry point]) NEXT:[r(1)] PREV:[r(2)] jmp(L2 [loop entry point]) NEXT:[r(1)] PREV:[r(2)]
l3 [loop exit point]: L3 [loop exit point]:
read (Unit) NEXT:[<END>] PREV:[jf(l3 [loop exit point])] read (Unit) NEXT:[<END>] PREV:[jf(L3 [loop exit point])]
l1: L1:
<END> NEXT:[<SINK>] PREV:[read (Unit)] <END> NEXT:[<SINK>] PREV:[read (Unit)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
@@ -35,23 +35,23 @@ fun dowhile() {
while(1 > 0) while(1 > 0)
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(do {return} while(1 > 0)) ] PREV:[] <START> NEXT:[r(do {return} while(1 > 0)) ] PREV:[]
r(do {return} r(do {return}
while(1 > 0)) NEXT:[ret l1] PREV:[<START>] while(1 > 0)) NEXT:[ret L1] PREV:[<START>]
l2 [loop entry point]: L2 [loop entry point]:
l4 [body entry point]: L4 [body entry point]:
ret l1 NEXT:[<END>] PREV:[r(do {return} while(1 > 0)) ] ret L1 NEXT:[<END>] PREV:[r(do {return} while(1 > 0)) ]
l5 [condition entry point]: L5 [condition entry point]:
- r(1) NEXT:[r(0)] PREV:[] - r(1) NEXT:[r(0)] PREV:[]
- r(0) NEXT:[r(>)] PREV:[] - r(0) NEXT:[r(>)] PREV:[]
- r(>) NEXT:[r(1 > 0)] PREV:[] - r(>) NEXT:[r(1 > 0)] PREV:[]
- r(1 > 0) NEXT:[jt(l2 [loop entry point])] PREV:[] - r(1 > 0) NEXT:[jt(L2 [loop entry point])] PREV:[]
- jt(l2 [loop entry point]) NEXT:[read (Unit), ret l1] PREV:[] - jt(L2 [loop entry point]) NEXT:[read (Unit), ret L1] PREV:[]
l3 [loop exit point]: L3 [loop exit point]:
- read (Unit) NEXT:[<END>] PREV:[] - read (Unit) NEXT:[<END>] PREV:[]
l1: L1:
<END> NEXT:[<SINK>] PREV:[ret l1] <END> NEXT:[<SINK>] PREV:[ret L1]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
@@ -3,17 +3,17 @@ fun blockAndAndMismatch() : Boolean {
false || (return false) false || (return false)
} }
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(false)] PREV:[] <START> NEXT:[r(false)] PREV:[]
r(false) NEXT:[jt(l2)] PREV:[<START>] r(false) NEXT:[jt(L2)] PREV:[<START>]
jt(l2) NEXT:[r((return false)), r(false || (return false))] PREV:[r(false)] jt(L2) NEXT:[r((return false)), r(false || (return false))] PREV:[r(false)]
r((return false)) NEXT:[r(false)] PREV:[jt(l2)] r((return false)) NEXT:[r(false)] PREV:[jt(L2)]
r(false) NEXT:[ret(*) l1] PREV:[r((return false))] r(false) NEXT:[ret(*) L1] PREV:[r((return false))]
ret(*) l1 NEXT:[<END>] PREV:[r(false)] ret(*) L1 NEXT:[<END>] PREV:[r(false)]
l2: L2:
r(false || (return false)) NEXT:[<END>] PREV:[jt(l2)] r(false || (return false)) NEXT:[<END>] PREV:[jt(L2)]
l1: L1:
<END> NEXT:[<SINK>] PREV:[ret(*) l1, r(false || (return false))] <END> NEXT:[<SINK>] PREV:[ret(*) L1, r(false || (return false))]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]
sink: sink:
@@ -1,10 +1,10 @@
== short == == short ==
fun short() = 1 fun short() = 1
--------------------- ---------------------
l0: L0:
<START> NEXT:[r(1)] PREV:[] <START> NEXT:[r(1)] PREV:[]
r(1) NEXT:[<END>] PREV:[<START>] r(1) NEXT:[<END>] PREV:[<START>]
l1: L1:
<END> NEXT:[<SINK>] PREV:[r(1)] <END> NEXT:[<SINK>] PREV:[r(1)]
error: error:
<ERROR> NEXT:[<SINK>] PREV:[] <ERROR> NEXT:[<SINK>] PREV:[]