Do not render trivial variables in DataFlow tests
The reason is that while there are optimizations for them definition of their state is both rather simple and may be confusing in testData
This commit is contained in:
+16
-16
@@ -13,11 +13,11 @@ L0:
|
||||
2 mark({ "before" val b = 1 fun local(x: Int) { val a = x + b } "after" })
|
||||
mark("before")
|
||||
r("before") -> <v0>
|
||||
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}
|
||||
d(fun local(x: Int) { val a = x + b }) INIT: in: {a=ID, b=ID, x=ID} out: {a=ID, b=ID, x=ID}
|
||||
v(val b = 1) INIT: in: {} out: {}
|
||||
r(1) -> <v1> INIT: in: {} out: {}
|
||||
w(b|<v1>) INIT: in: {} out: {}
|
||||
jmp?(L2) INIT: in: {} out: {}
|
||||
d(fun local(x: Int) { val a = x + b }) INIT: in: {} out: {}
|
||||
L2 [after local declaration]:
|
||||
mark("after")
|
||||
r("after") -> <v2>
|
||||
@@ -26,7 +26,7 @@ L1:
|
||||
error:
|
||||
<ERROR>
|
||||
sink:
|
||||
<SINK> USE: in: {b=READ, x=READ} out: {b=READ, x=READ}
|
||||
<SINK> USE: in: {} out: {}
|
||||
=====================
|
||||
== local ==
|
||||
fun local(x: Int) {
|
||||
@@ -34,21 +34,21 @@ fun local(x: Int) {
|
||||
}
|
||||
---------------------
|
||||
L3:
|
||||
3 <START> INIT: in: {b=ID} out: {b=ID}
|
||||
v(x: Int) INIT: in: {b=ID} out: {b=ID, x=D}
|
||||
magic[FAKE_INITIALIZER](x: Int) -> <v0> INIT: in: {b=ID, x=D} out: {b=ID, x=D}
|
||||
w(x|<v0>) INIT: in: {b=ID, x=D} out: {b=ID, x=ID}
|
||||
4 mark({ val a = x + b }) INIT: in: {b=ID, x=ID} out: {b=ID, x=ID}
|
||||
v(val a = x + b) INIT: in: {b=ID, x=ID} out: {a=D, b=ID, x=ID}
|
||||
r(x) -> <v1> INIT: in: {a=D, b=ID, x=ID} out: {a=D, b=ID, x=ID}
|
||||
3 <START> INIT: in: {} out: {}
|
||||
v(x: Int) INIT: in: {} out: {}
|
||||
magic[FAKE_INITIALIZER](x: Int) -> <v0> INIT: in: {} out: {}
|
||||
w(x|<v0>) INIT: in: {} out: {}
|
||||
4 mark({ val a = x + b }) INIT: in: {} out: {}
|
||||
v(val a = x + b) INIT: in: {} out: {}
|
||||
r(x) -> <v1> INIT: in: {} out: {}
|
||||
r(b) -> <v2>
|
||||
mark(x + b)
|
||||
call(x + b, plus|<v1>, <v2>) -> <v3>
|
||||
w(a|<v3>) INIT: in: {a=D, b=ID, x=ID} out: {a=ID, b=ID, x=ID}
|
||||
w(a|<v3>) INIT: in: {} out: {}
|
||||
L4:
|
||||
3 <END> INIT: in: {a=ID, b=ID, x=ID} out: {a=ID, b=ID, x=ID}
|
||||
3 <END> INIT: in: {} out: {}
|
||||
error:
|
||||
<ERROR>
|
||||
sink:
|
||||
<SINK> USE: in: {b=READ, x=READ} out: {b=READ, x=READ}
|
||||
<SINK> USE: in: {} out: {}
|
||||
=====================
|
||||
|
||||
Reference in New Issue
Block a user