edbf360852
The reason is that while there are optimizations for them definition of their state is both rather simple and may be confusing in testData
49 lines
1.6 KiB
Plaintext
Vendored
49 lines
1.6 KiB
Plaintext
Vendored
== foo ==
|
|
fun foo() {
|
|
"before"
|
|
val b = 1
|
|
fun local(x: Int) = x + b
|
|
"after"
|
|
}
|
|
---------------------
|
|
L0:
|
|
1 <START> INIT: in: {} out: {}
|
|
2 mark({ "before" val b = 1 fun local(x: Int) = x + b "after" })
|
|
mark("before")
|
|
r("before") -> <v0>
|
|
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) = x + b) INIT: in: {} out: {}
|
|
L2 [after local declaration]:
|
|
mark("after")
|
|
r("after") -> <v2>
|
|
L1:
|
|
1 <END>
|
|
error:
|
|
<ERROR>
|
|
sink:
|
|
<SINK> USE: in: {} out: {}
|
|
=====================
|
|
== local ==
|
|
fun local(x: Int) = x + b
|
|
---------------------
|
|
L3:
|
|
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: {}
|
|
r(x) -> <v1> INIT: in: {} out: {}
|
|
r(b) -> <v2>
|
|
mark(x + b)
|
|
call(x + b, plus|<v1>, <v2>) -> <v3>
|
|
ret(*|<v3>) L4
|
|
L4:
|
|
<END>
|
|
error:
|
|
<ERROR>
|
|
sink:
|
|
<SINK> USE: in: {} out: {}
|
|
=====================
|