FIR: Fix rendered fir and DFA graph test data after safe-calls refactoring

^KT-38444 In Progress
This commit is contained in:
Denis Zharkov
2020-06-01 16:05:17 +03:00
parent 409e90e7de
commit 723b275d99
30 changed files with 116 additions and 114 deletions
@@ -62,7 +62,7 @@ digraph initBlockAndInPlaceLambda_kt {
}
26 [label="Call arguments union" style="filled" fillcolor=yellow];
24 [label="Postponed exit from lambda"];
25 [label="Function call: R|<local>/a|.R|/A.b|?.R|kotlin/let|<R|B|, R|C|>(...)"];
25 [label="Function call: $subj$.R|kotlin/let|<R|B|, R|C|>(...)"];
22 [label="Exit safe call"];
27 [label="Variable declaration: lval c: R|C?|"];
28 [label="Exit block"];
@@ -12,10 +12,10 @@ FILE: initBlockAndInPlaceLambda.kt
}
init {
lval c: R|C?| = R|<local>/a|.R|/A.b|?.R|kotlin/let|<R|B|, R|C|>(<L> = let@fun <anonymous>(it: R|B|): R|C| <kind=EXACTLY_ONCE> {
lval c: R|C?| = R|<local>/a|.R|/A.b|?.{ $subj$.R|kotlin/let|<R|B|, R|C|>(<L> = let@fun <anonymous>(it: R|B|): R|C| <kind=EXACTLY_ONCE> {
^ R|/C.C|(R|<local>/a|, R|<local>/it|)
}
)
) }
}
}
@@ -62,10 +62,10 @@ digraph safeCalls_kt {
16 [label="Enter function test_1" style="filled" fillcolor=red];
18 [label="Access variable R|<local>/x|"];
19 [label="Enter safe call"];
21 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
21 [label="Function call: $subj$.R|/A.foo|()"];
20 [label="Exit safe call"];
22 [label="Enter safe call"];
24 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
24 [label="Function call: $subj$.R|/A.bar|()"];
23 [label="Exit safe call"];
17 [label="Exit function test_1" style="filled" fillcolor=red];
}
@@ -14,8 +14,8 @@ FILE: safeCalls.kt
}
public final fun test_1(x: R|A?|): R|kotlin/Unit| {
R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()
R|<local>/x|?.{ $subj$.R|/A.foo|() }?.{ $subj$.R|/A.bar|() }
}
public final fun test_2(x: R|B?|): R|kotlin/Unit| {
R|<local>/x|?.R|/B.foo|?.R|/B.bar|
R|<local>/x|?.{ $subj$.R|/B.foo| }?.{ $subj$.R|/B.bar| }
}