Added exact label names for labels
This commit is contained in:
@@ -17,8 +17,8 @@ L0:
|
||||
mark(1..10)
|
||||
call(1..10, rangeTo|<v1>, <v2>) -> <v3>
|
||||
v(i) INIT: in: {} out: {i=D}
|
||||
L3:
|
||||
jmp?(L2) INIT: in: {i=D} out: {i=D}
|
||||
L3 ['for' loop condition entry point]:
|
||||
jmp?(L2 ['for' loop exit point]) INIT: in: {i=D} out: {i=D}
|
||||
L4 [loop entry point]:
|
||||
L5 [body entry point]:
|
||||
magic[LOOP_RANGE_ITERATION](1..10|<v3>) -> <v4>
|
||||
@@ -29,7 +29,7 @@ L5 [body entry point]:
|
||||
r(i) -> <v5> INIT: in: {a=D, i=ID} out: {a=D, i=ID}
|
||||
w(a|<v5>) INIT: in: {a=D, i=ID} out: {a=ID, i=ID}
|
||||
3 jmp?(L4 [loop entry point]) INIT: in: {i=ID} out: {i=ID} USE: in: {i=READ} out: {i=READ}
|
||||
L2:
|
||||
L2 ['for' loop exit point]:
|
||||
read (Unit) INIT: in: {i=D} out: {i=D}
|
||||
2 mark("after") INIT: in: {} out: {}
|
||||
r("after") -> <v6>
|
||||
@@ -39,4 +39,4 @@ error:
|
||||
<ERROR>
|
||||
sink:
|
||||
<SINK> USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
@@ -18,9 +18,9 @@ L0:
|
||||
w(b|<v1>) INIT: in: {b=D} out: {b=ID}
|
||||
v(val f = { (x: Int) -> val a = x + b }) INIT: in: {b=ID} out: {b=ID, f=D}
|
||||
mark({ (x: Int) -> val a = x + b }) INIT: in: {b=ID, f=D} out: {b=ID, f=D}
|
||||
jmp?(L2)
|
||||
jmp?(L2 [after local declaration])
|
||||
d({ (x: Int) -> val a = x + b }) USE: in: {b=READ} out: {b=READ}
|
||||
L2:
|
||||
L2 [after local declaration]:
|
||||
r({ (x: Int) -> val a = x + b }) -> <v2>
|
||||
w(f|<v2>) INIT: in: {b=ID, f=D} out: {b=ID, f=ID}
|
||||
mark("after") INIT: in: {b=ID, f=ID} out: {b=ID, f=ID}
|
||||
@@ -55,4 +55,4 @@ error:
|
||||
<ERROR> INIT: in: {} out: {}
|
||||
sink:
|
||||
<SINK> INIT: in: {x=ID} out: {x=ID} USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
@@ -17,18 +17,18 @@ L0:
|
||||
r("before") -> <v0>
|
||||
mark(if (true) { val a = 1 } else { val b = 2 })
|
||||
r(true) -> <v1>
|
||||
jf(L2|<v1>)
|
||||
jf(L2 [else branch]|<v1>)
|
||||
3 mark({ val a = 1 })
|
||||
v(val a = 1) INIT: in: {} out: {a=D}
|
||||
r(1) -> <v2> INIT: in: {a=D} out: {a=D}
|
||||
w(a|<v2>) INIT: in: {a=D} out: {a=ID}
|
||||
2 jmp(L3) INIT: in: {} out: {}
|
||||
L2:
|
||||
2 jmp(L3 ['if' expression result]) INIT: in: {} out: {}
|
||||
L2 [else branch]:
|
||||
3 mark({ val b = 2 })
|
||||
v(val b = 2) INIT: in: {} out: {b=D}
|
||||
r(2) -> <v3> INIT: in: {b=D} out: {b=D}
|
||||
w(b|<v3>) INIT: in: {b=D} out: {b=ID}
|
||||
L3:
|
||||
L3 ['if' expression result]:
|
||||
2 merge(if (true) { val a = 1 } else { val b = 2 }|!<v4>, !<v5>) -> <v6> INIT: in: {} out: {}
|
||||
mark("after")
|
||||
r("after") -> <v7>
|
||||
@@ -38,4 +38,4 @@ error:
|
||||
<ERROR>
|
||||
sink:
|
||||
<SINK> USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
@@ -25,9 +25,9 @@ L0:
|
||||
magic[IMPLICIT_RECEIVER](x) -> <v2> INIT: in: {a=D, x=ID} out: {a=D, x=ID}
|
||||
r(x|<v2>) -> <v3>
|
||||
w(a|<v3>) INIT: in: {a=D, x=ID} out: {a=ID, x=ID}
|
||||
2 jmp?(L2) INIT: in: {x=ID} out: {x=ID}
|
||||
2 jmp?(L2 [after local declaration]) INIT: in: {x=ID} out: {x=ID}
|
||||
d(fun foo() { val b = x }) USE: in: {x=READ} out: {x=READ}
|
||||
L2:
|
||||
L2 [after local declaration]:
|
||||
mark("after")
|
||||
r("after") -> <v4>
|
||||
L1:
|
||||
@@ -55,4 +55,4 @@ error:
|
||||
<ERROR>
|
||||
sink:
|
||||
<SINK> USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
@@ -16,9 +16,9 @@ L0:
|
||||
v(val b = 1) INIT: in: {} out: {b=D}
|
||||
r(1) -> <v1> INIT: in: {b=D} out: {b=D}
|
||||
w(b|<v1>) INIT: in: {b=D} out: {b=ID}
|
||||
jmp?(L2) INIT: in: {b=ID} out: {b=ID}
|
||||
jmp?(L2 [after local declaration]) INIT: in: {b=ID} out: {b=ID}
|
||||
d(fun local(x: Int) { val a = x + b }) USE: in: {b=READ} out: {b=READ}
|
||||
L2:
|
||||
L2 [after local declaration]:
|
||||
mark("after")
|
||||
r("after") -> <v2>
|
||||
L1:
|
||||
@@ -51,4 +51,4 @@ error:
|
||||
<ERROR> INIT: in: {} out: {}
|
||||
sink:
|
||||
<SINK> INIT: in: {x=ID} out: {x=ID} USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
+3
-3
@@ -14,9 +14,9 @@ L0:
|
||||
v(val b = 1) INIT: in: {} out: {b=D}
|
||||
r(1) -> <v1> INIT: in: {b=D} out: {b=D}
|
||||
w(b|<v1>) INIT: in: {b=D} out: {b=ID}
|
||||
jmp?(L2) INIT: in: {b=ID} out: {b=ID}
|
||||
jmp?(L2 [after local declaration]) INIT: in: {b=ID} out: {b=ID}
|
||||
d(fun local(x: Int) = x + b) USE: in: {b=READ} out: {b=READ}
|
||||
L2:
|
||||
L2 [after local declaration]:
|
||||
mark("after")
|
||||
r("after") -> <v2>
|
||||
L1:
|
||||
@@ -45,4 +45,4 @@ error:
|
||||
<ERROR> INIT: in: {} out: {}
|
||||
sink:
|
||||
<SINK> INIT: in: {x=ID} out: {x=ID} USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
@@ -21,9 +21,9 @@ L0:
|
||||
v(val a = 1) INIT: in: {} out: {a=D}
|
||||
r(1) -> <v1> INIT: in: {a=D} out: {a=D}
|
||||
w(a|<v1>) INIT: in: {a=D} out: {a=ID}
|
||||
2 jmp?(L2) INIT: in: {} out: {}
|
||||
2 jmp?(L2 [after local declaration]) INIT: in: {} out: {}
|
||||
d(fun foo() { val b = 2 })
|
||||
L2:
|
||||
L2 [after local declaration]:
|
||||
mark("after")
|
||||
r("after") -> <v2>
|
||||
L1:
|
||||
@@ -50,4 +50,4 @@ error:
|
||||
<ERROR>
|
||||
sink:
|
||||
<SINK> USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
@@ -23,9 +23,9 @@ L0:
|
||||
v(val x = 1) INIT: in: {bar=D} out: {bar=D, x=D}
|
||||
r(1) -> <v1> INIT: in: {bar=D, x=D} out: {bar=D, x=D}
|
||||
w(x|<v1>) INIT: in: {bar=D, x=D} out: {bar=D, x=ID}
|
||||
2 jmp?(L2) INIT: in: {bar=D} out: {bar=D}
|
||||
2 jmp?(L2 [after local declaration]) INIT: in: {bar=D} out: {bar=D}
|
||||
d(fun foo() { val a = 2 })
|
||||
L2:
|
||||
L2 [after local declaration]:
|
||||
r(object { { val x = 1 } fun foo() { val a = 2 } }) -> <v2>
|
||||
w(bar|<v2>) INIT: in: {bar=D} out: {bar=ID}
|
||||
mark("after") INIT: in: {bar=ID} out: {bar=ID}
|
||||
@@ -54,4 +54,4 @@ error:
|
||||
<ERROR>
|
||||
sink:
|
||||
<SINK> USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
@@ -15,13 +15,13 @@ L0:
|
||||
1 <START> INIT: in: {} out: {} USE: in: {} out: {}
|
||||
2 mark({ class A { var a : Int get() { return $a } set(v: Int) { $a = v } } })
|
||||
v(var a : Int get() { return $a } set(v: Int) { $a = v }) INIT: in: {} out: {a=D}
|
||||
jmp?(L2) INIT: in: {a=D} out: {a=D}
|
||||
jmp?(L2 [after local declaration]) INIT: in: {a=D} out: {a=D}
|
||||
d(get() { return $a }) USE: in: {a=READ} out: {a=READ}
|
||||
L2:
|
||||
jmp?(L5)
|
||||
L2 [after local declaration]:
|
||||
jmp?(L5 [after local declaration])
|
||||
d(set(v: Int) { $a = v }) USE: in: {a=ONLY_WRITTEN_NEVER_READ} out: {a=ONLY_WRITTEN_NEVER_READ}
|
||||
L1:
|
||||
L5:
|
||||
L5 [after local declaration]:
|
||||
1 <END> INIT: in: {} out: {}
|
||||
error:
|
||||
<ERROR>
|
||||
@@ -66,4 +66,4 @@ error:
|
||||
<ERROR> INIT: in: {} out: {}
|
||||
sink:
|
||||
<SINK> INIT: in: {a=I, v=ID} out: {a=I, v=ID} USE: in: {} out: {}
|
||||
=====================
|
||||
=====================
|
||||
Reference in New Issue
Block a user