== foo == fun foo() { "before" val b = 1 fun local(x: Int) = x + b "after" } --------------------- L0: 1 INIT: in: {} out: {} USE: in: {} out: {} 2 mark({ "before" val b = 1 fun local(x: Int) = x + b "after" }) mark("before") r("before") -> v(val b = 1) INIT: in: {} out: {b=D} r(1) -> INIT: in: {b=D} out: {b=D} w(b|) INIT: in: {b=D} out: {b=ID} jmp?(L2) INIT: in: {b=ID} out: {b=ID} d(fun local(x: Int) = x + b) USE: in: {b=READ} out: {b=READ} L2: mark("after") r("after") -> L1: 1 INIT: in: {} out: {} error: sink: USE: in: {} out: {} ===================== == local == fun local(x: Int) = x + b --------------------- L3: 3 INIT: in: {} out: {} v(x: Int) INIT: in: {} out: {x=D} magic[FAKE_INITIALIZER](x: Int) -> INIT: in: {x=D} out: {x=D} w(x|) INIT: in: {x=D} out: {x=ID} USE: in: {b=READ, x=READ} out: {b=READ, x=READ} r(x) -> INIT: in: {x=ID} out: {x=ID} USE: in: {b=READ} out: {b=READ, x=READ} r(b) -> USE: in: {} out: {b=READ} mark(x + b) call(x + b, plus|, ) -> ret(*|) L4 L4: error: INIT: in: {} out: {} sink: INIT: in: {x=ID} out: {x=ID} USE: in: {} out: {} =====================