Initialization analysis : more accurate handling of non-local variables while merging data #KT-14304 Fixed
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ L0:
|
||||
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) = x + b) INIT: in: {b=I?} out: {b=I?} USE: in: {b=READ} out: {b=READ}
|
||||
d(fun local(x: Int) = x + b) INIT: in: {b=I} out: {b=I} USE: in: {b=READ} out: {b=READ}
|
||||
L2 [after local declaration]:
|
||||
mark("after") INIT: in: {b=ID} out: {b=ID}
|
||||
r("after") -> <v2>
|
||||
@@ -44,5 +44,5 @@ L4:
|
||||
error:
|
||||
<ERROR> INIT: in: {} out: {}
|
||||
sink:
|
||||
<SINK> INIT: in: {b=I?, x=I?} out: {b=I?, x=I?} USE: in: {} out: {}
|
||||
<SINK> INIT: in: {b=I, x=I?} out: {b=I, x=I?} USE: in: {} out: {}
|
||||
=====================
|
||||
Reference in New Issue
Block a user