[FIR] Rewind DFA after call arguments for correct receiver smartcasting
^KT-63709 Fixed
This commit is contained in:
+167
-125
@@ -66,29 +66,39 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
|
||||
subgraph cluster_9 {
|
||||
color=blue
|
||||
25 [label="Enter block"];
|
||||
26 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_10 {
|
||||
color=blue
|
||||
27 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
26 [label="Function call arguments enter"];
|
||||
27 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_11 {
|
||||
color=blue
|
||||
28 [label="Enter block"];
|
||||
29 [label="Function call: R|/materialize|<R|kotlin/String|>()" style="filled" fillcolor=yellow];
|
||||
30 [label="Exit block"];
|
||||
28 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_12 {
|
||||
color=blue
|
||||
29 [label="Enter block"];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
30 [label="Function call arguments enter"];
|
||||
31 [label="Function call arguments exit"];
|
||||
}
|
||||
32 [label="Function call: R|/materialize|<R|kotlin/String|>()" style="filled" fillcolor=yellow];
|
||||
33 [label="Exit block"];
|
||||
}
|
||||
34 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
31 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
35 [label="Function call arguments exit"];
|
||||
}
|
||||
32 [label="Postponed exit from lambda"];
|
||||
33 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
34 [label="Exit block"];
|
||||
36 [label="Postponed exit from lambda"];
|
||||
37 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
38 [label="Exit block"];
|
||||
}
|
||||
35 [label="Exit when branch result"];
|
||||
36 [label="Exit when"];
|
||||
39 [label="Exit when branch result"];
|
||||
40 [label="Exit when"];
|
||||
}
|
||||
37 [label="Variable declaration: lval x: R|kotlin/String|"];
|
||||
38 [label="Exit block"];
|
||||
41 [label="Variable declaration: lval x: R|kotlin/String|"];
|
||||
42 [label="Exit block"];
|
||||
}
|
||||
39 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
43 [label="Exit function test_1" style="filled" fillcolor=red];
|
||||
}
|
||||
11 -> {12};
|
||||
12 -> {13};
|
||||
@@ -102,147 +112,179 @@ digraph inplaceLambdaInControlFlowExpressions_kt {
|
||||
20 -> {21};
|
||||
21 -> {22};
|
||||
22 -> {23};
|
||||
23 -> {36};
|
||||
23 -> {40};
|
||||
24 -> {25};
|
||||
25 -> {26};
|
||||
26 -> {27 33};
|
||||
26 -> {32} [style=dotted];
|
||||
26 -> {27} [style=dashed];
|
||||
27 -> {28};
|
||||
26 -> {27};
|
||||
27 -> {28 35};
|
||||
27 -> {36} [style=dotted];
|
||||
27 -> {28} [style=dashed];
|
||||
28 -> {29};
|
||||
29 -> {30};
|
||||
30 -> {31};
|
||||
31 -> {32};
|
||||
32 -> {33} [color=green];
|
||||
32 -> {36} [color=red];
|
||||
32 -> {33};
|
||||
33 -> {34};
|
||||
34 -> {35};
|
||||
35 -> {36};
|
||||
36 -> {37};
|
||||
34 -> {36};
|
||||
35 -> {37};
|
||||
36 -> {37} [color=green];
|
||||
36 -> {40} [color=red];
|
||||
37 -> {38};
|
||||
38 -> {39};
|
||||
|
||||
subgraph cluster_12 {
|
||||
color=red
|
||||
40 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_13 {
|
||||
color=blue
|
||||
41 [label="Enter block"];
|
||||
subgraph cluster_14 {
|
||||
color=blue
|
||||
42 [label="Try expression enter"];
|
||||
subgraph cluster_15 {
|
||||
color=blue
|
||||
43 [label="Try main block enter"];
|
||||
subgraph cluster_16 {
|
||||
color=blue
|
||||
44 [label="Enter block"];
|
||||
45 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_17 {
|
||||
color=blue
|
||||
46 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
47 [label="Enter block"];
|
||||
48 [label="Function call: R|/materialize|<R|kotlin/String|>()" style="filled" fillcolor=yellow];
|
||||
49 [label="Exit block"];
|
||||
}
|
||||
50 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
51 [label="Postponed exit from lambda"];
|
||||
52 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
53 [label="Exit block"];
|
||||
}
|
||||
54 [label="Try main block exit"];
|
||||
}
|
||||
subgraph cluster_19 {
|
||||
color=blue
|
||||
55 [label="Catch enter"];
|
||||
56 [label="Variable declaration: e: R|kotlin/Exception|"];
|
||||
subgraph cluster_20 {
|
||||
color=blue
|
||||
57 [label="Enter block"];
|
||||
58 [label="Const: String()"];
|
||||
59 [label="Exit block"];
|
||||
}
|
||||
60 [label="Catch exit"];
|
||||
}
|
||||
61 [label="Try expression exit"];
|
||||
}
|
||||
62 [label="Variable declaration: lval x: R|kotlin/String|"];
|
||||
63 [label="Exit block"];
|
||||
}
|
||||
64 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
39 -> {40};
|
||||
40 -> {41};
|
||||
41 -> {42};
|
||||
42 -> {43 55};
|
||||
43 -> {44};
|
||||
42 -> {43};
|
||||
|
||||
subgraph cluster_14 {
|
||||
color=red
|
||||
44 [label="Enter function test_2" style="filled" fillcolor=red];
|
||||
subgraph cluster_15 {
|
||||
color=blue
|
||||
45 [label="Enter block"];
|
||||
subgraph cluster_16 {
|
||||
color=blue
|
||||
46 [label="Try expression enter"];
|
||||
subgraph cluster_17 {
|
||||
color=blue
|
||||
47 [label="Try main block enter"];
|
||||
subgraph cluster_18 {
|
||||
color=blue
|
||||
48 [label="Enter block"];
|
||||
subgraph cluster_19 {
|
||||
color=blue
|
||||
49 [label="Function call arguments enter"];
|
||||
50 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_20 {
|
||||
color=blue
|
||||
51 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_21 {
|
||||
color=blue
|
||||
52 [label="Enter block"];
|
||||
subgraph cluster_22 {
|
||||
color=blue
|
||||
53 [label="Function call arguments enter"];
|
||||
54 [label="Function call arguments exit"];
|
||||
}
|
||||
55 [label="Function call: R|/materialize|<R|kotlin/String|>()" style="filled" fillcolor=yellow];
|
||||
56 [label="Exit block"];
|
||||
}
|
||||
57 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
58 [label="Function call arguments exit"];
|
||||
}
|
||||
59 [label="Postponed exit from lambda"];
|
||||
60 [label="Function call: R|kotlin/run|<R|kotlin/String|>(...)" style="filled" fillcolor=yellow];
|
||||
61 [label="Exit block"];
|
||||
}
|
||||
62 [label="Try main block exit"];
|
||||
}
|
||||
subgraph cluster_23 {
|
||||
color=blue
|
||||
63 [label="Catch enter"];
|
||||
64 [label="Variable declaration: e: R|kotlin/Exception|"];
|
||||
subgraph cluster_24 {
|
||||
color=blue
|
||||
65 [label="Enter block"];
|
||||
66 [label="Const: String()"];
|
||||
67 [label="Exit block"];
|
||||
}
|
||||
68 [label="Catch exit"];
|
||||
}
|
||||
69 [label="Try expression exit"];
|
||||
}
|
||||
70 [label="Variable declaration: lval x: R|kotlin/String|"];
|
||||
71 [label="Exit block"];
|
||||
}
|
||||
72 [label="Exit function test_2" style="filled" fillcolor=red];
|
||||
}
|
||||
44 -> {45};
|
||||
45 -> {46 52};
|
||||
45 -> {51} [style=dotted];
|
||||
45 -> {46} [style=dashed];
|
||||
46 -> {47};
|
||||
45 -> {46};
|
||||
46 -> {47 63};
|
||||
47 -> {48};
|
||||
48 -> {49};
|
||||
49 -> {50};
|
||||
50 -> {51};
|
||||
51 -> {52} [color=green];
|
||||
51 -> {61} [color=red];
|
||||
50 -> {51 58};
|
||||
50 -> {59} [style=dotted];
|
||||
50 -> {51} [style=dashed];
|
||||
51 -> {52};
|
||||
52 -> {53};
|
||||
53 -> {54};
|
||||
54 -> {55 61};
|
||||
54 -> {55};
|
||||
55 -> {56};
|
||||
56 -> {57};
|
||||
57 -> {58};
|
||||
58 -> {59};
|
||||
59 -> {60};
|
||||
57 -> {59};
|
||||
58 -> {60};
|
||||
59 -> {60} [color=green];
|
||||
59 -> {69} [color=red];
|
||||
60 -> {61};
|
||||
61 -> {62};
|
||||
62 -> {63};
|
||||
62 -> {63 69};
|
||||
63 -> {64};
|
||||
|
||||
subgraph cluster_21 {
|
||||
color=red
|
||||
65 [label="Enter function test_3" style="filled" fillcolor=red];
|
||||
subgraph cluster_22 {
|
||||
color=blue
|
||||
66 [label="Enter block"];
|
||||
67 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_23 {
|
||||
color=blue
|
||||
68 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_24 {
|
||||
color=blue
|
||||
69 [label="Enter block"];
|
||||
70 [label="Function call: R|/materialize|<R|kotlin/String?|>()" style="filled" fillcolor=yellow];
|
||||
71 [label="Exit block"];
|
||||
}
|
||||
72 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
73 [label="Postponed exit from lambda"];
|
||||
74 [label="Function call: R|kotlin/run|<R|kotlin/String?|>(...)" style="filled" fillcolor=yellow];
|
||||
75 [label="Check not null: R|kotlin/run|<R|kotlin/String?|>(...)!!" style="filled" fillcolor=yellow];
|
||||
76 [label="Variable declaration: lval x: R|kotlin/String|"];
|
||||
77 [label="Exit block"];
|
||||
}
|
||||
78 [label="Exit function test_3" style="filled" fillcolor=red];
|
||||
}
|
||||
64 -> {65};
|
||||
65 -> {66};
|
||||
66 -> {67};
|
||||
67 -> {68 74};
|
||||
67 -> {73} [style=dotted];
|
||||
67 -> {68} [style=dashed];
|
||||
67 -> {68};
|
||||
68 -> {69};
|
||||
69 -> {70};
|
||||
70 -> {71};
|
||||
71 -> {72};
|
||||
72 -> {73};
|
||||
73 -> {74} [color=green];
|
||||
73 -> {75} [color=red];
|
||||
|
||||
subgraph cluster_25 {
|
||||
color=red
|
||||
73 [label="Enter function test_3" style="filled" fillcolor=red];
|
||||
subgraph cluster_26 {
|
||||
color=blue
|
||||
74 [label="Enter block"];
|
||||
subgraph cluster_27 {
|
||||
color=blue
|
||||
75 [label="Function call arguments enter"];
|
||||
76 [label="Postponed enter to lambda"];
|
||||
subgraph cluster_28 {
|
||||
color=blue
|
||||
77 [label="Enter function <anonymous>" style="filled" fillcolor=red];
|
||||
subgraph cluster_29 {
|
||||
color=blue
|
||||
78 [label="Enter block"];
|
||||
subgraph cluster_30 {
|
||||
color=blue
|
||||
79 [label="Function call arguments enter"];
|
||||
80 [label="Function call arguments exit"];
|
||||
}
|
||||
81 [label="Function call: R|/materialize|<R|kotlin/String?|>()" style="filled" fillcolor=yellow];
|
||||
82 [label="Exit block"];
|
||||
}
|
||||
83 [label="Exit function <anonymous>" style="filled" fillcolor=red];
|
||||
}
|
||||
84 [label="Function call arguments exit"];
|
||||
}
|
||||
85 [label="Postponed exit from lambda"];
|
||||
86 [label="Function call: R|kotlin/run|<R|kotlin/String?|>(...)" style="filled" fillcolor=yellow];
|
||||
87 [label="Check not null: R|kotlin/run|<R|kotlin/String?|>(...)!!" style="filled" fillcolor=yellow];
|
||||
88 [label="Variable declaration: lval x: R|kotlin/String|"];
|
||||
89 [label="Exit block"];
|
||||
}
|
||||
90 [label="Exit function test_3" style="filled" fillcolor=red];
|
||||
}
|
||||
73 -> {74};
|
||||
74 -> {75};
|
||||
75 -> {76};
|
||||
76 -> {77};
|
||||
76 -> {77 84};
|
||||
76 -> {85} [style=dotted];
|
||||
76 -> {77} [style=dashed];
|
||||
77 -> {78};
|
||||
78 -> {79};
|
||||
79 -> {80};
|
||||
80 -> {81};
|
||||
81 -> {82};
|
||||
82 -> {83};
|
||||
83 -> {85};
|
||||
84 -> {86};
|
||||
85 -> {86} [color=green];
|
||||
85 -> {87} [color=red];
|
||||
86 -> {87};
|
||||
87 -> {88};
|
||||
88 -> {89};
|
||||
89 -> {90};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user