[FIR] Add cfg for delegating constructor calls

This commit is contained in:
Dmitriy Novozhilov
2020-03-11 17:11:49 +03:00
parent 83257d00b9
commit e90d86e1b4
27 changed files with 2506 additions and 2283 deletions
@@ -576,8 +576,8 @@ abstract class FirDataFlowAnalyzer<FLOW : Flow>(
exitSafeCall(qualifiedAccessExpression)
}
fun enterFunctionCall(functionCall: FirFunctionCall) {
graphBuilder.enterFunctionCall(functionCall)
fun enterCall(functionCall: FirCall) {
graphBuilder.enterCall(functionCall)
}
fun exitFunctionCall(functionCall: FirFunctionCall, callCompleted: Boolean) {
@@ -593,6 +593,13 @@ abstract class FirDataFlowAnalyzer<FLOW : Flow>(
}
}
fun exitDelegatedConstructorCall(call: FirDelegatedConstructorCall, callCompleted: Boolean) {
val (callNode, unionNode) = graphBuilder.exitDelegatedConstructorCall(call, callCompleted)
unionNode?.let { unionFlowFromArguments(it) }
callNode.mergeIncomingFlow()
}
private fun unionFlowFromArguments(node: UnionFunctionCallArgumentsNode) {
node.flow = logicSystem.unionFlow(node.previousNodes.map { it.flow }).also {
logicSystem.updateAllReceivers(it)
@@ -208,6 +208,13 @@ class FunctionCallNode(
level: Int, id: Int
) : CFGNode<FirFunctionCall>(owner, level, id)
class DelegatedConstructorCallNode(
owner: ControlFlowGraph,
override val fir: FirDelegatedConstructorCall,
level: Int,
id: Int
) : CFGNode<FirDelegatedConstructorCall>(owner, level, id)
class ThrowExceptionNode(
owner: ControlFlowGraph,
override val fir: FirThrowExpression,
@@ -610,7 +610,7 @@ class ControlFlowGraphBuilder {
return node
}
fun enterFunctionCall(functionCall: FirFunctionCall) {
fun enterCall(call: FirCall) {
levelCounter++
}
@@ -627,6 +627,14 @@ class ControlFlowGraphBuilder {
return node to unionNode
}
fun exitDelegatedConstructorCall(call: FirDelegatedConstructorCall, callCompleted: Boolean): Pair<DelegatedConstructorCallNode, UnionFunctionCallArgumentsNode?> {
levelCounter--
val node = createDelegatedConstructorCallNode(call)
val (kind, unionNode) = processUnionOfArguments(node, callCompleted)
addNewSimpleNode(node, preferredKind = kind)
return node to unionNode
}
private fun processUnionOfArguments(
node: CFGNode<*>,
callCompleted: Boolean
@@ -111,6 +111,9 @@ fun ControlFlowGraphBuilder.createLoopBlockExitNode(fir: FirLoop): LoopBlockExit
fun ControlFlowGraphBuilder.createFunctionCallNode(fir: FirFunctionCall): FunctionCallNode =
FunctionCallNode(graph, fir, levelCounter, createId())
fun ControlFlowGraphBuilder.createDelegatedConstructorCallNode(fir: FirDelegatedConstructorCall): DelegatedConstructorCallNode =
DelegatedConstructorCallNode(graph, fir, levelCounter, createId())
fun ControlFlowGraphBuilder.createVariableAssignmentNode(fir: FirVariableAssignment): VariableAssignmentNode =
VariableAssignmentNode(graph, fir, levelCounter, createId())
@@ -184,6 +184,7 @@ private fun CFGNode<*>.render(): String =
is VariableAssignmentNode -> "Assignmenet: ${fir.lValue.render(CfgRenderMode)}"
is FunctionCallNode -> "Function call: ${fir.render(CfgRenderMode)}"
is DelegatedConstructorCallNode -> "Delegated constructor call: ${fir.render(CfgRenderMode)}"
is ThrowExceptionNode -> "Throw: ${fir.render(CfgRenderMode)}"
is TryExpressionEnterNode -> "Try expression enter"
@@ -153,7 +153,7 @@ class FirExpressionsResolveTransformer(transformer: FirBodyResolveTransformer) :
storeTypeFromCallee(functionCall)
}
if (functionCall.calleeReference !is FirSimpleNamedReference) return functionCall.compose()
dataFlowAnalyzer.enterFunctionCall(functionCall)
dataFlowAnalyzer.enterCall(functionCall)
functionCall.annotations.forEach { it.accept(this, data) }
functionCall.transform<FirFunctionCall, Nothing?>(InvocationKindTransformer, null)
functionCall.transformTypeArguments(transformer, ResolutionMode.ContextIndependent)
@@ -574,37 +574,49 @@ class FirExpressionsResolveTransformer(transformer: FirBodyResolveTransformer) :
data: ResolutionMode,
): CompositeTransformResult<FirStatement> {
if (transformer.implicitTypeOnly) return delegatedConstructorCall.compose()
delegatedConstructorCall.transformChildren(transformer, ResolutionMode.ContextDependent)
val typeArguments: List<FirTypeProjection>
val symbol: FirClassSymbol<*> = when (val reference = delegatedConstructorCall.calleeReference) {
is FirThisReference -> {
typeArguments = emptyList()
if (reference.boundSymbol == null) {
implicitReceiverStack.lastDispatchReceiver()?.boundSymbol?.also {
reference.replaceBoundSymbol(it)
} ?: return delegatedConstructorCall.compose()
} else {
reference.boundSymbol!! as FirClassSymbol<*>
dataFlowAnalyzer.enterCall(delegatedConstructorCall)
var callCompleted = true
var result = delegatedConstructorCall
try {
delegatedConstructorCall.transformChildren(transformer, ResolutionMode.ContextDependent)
val typeArguments: List<FirTypeProjection>
val symbol: FirClassSymbol<*> = when (val reference = delegatedConstructorCall.calleeReference) {
is FirThisReference -> {
typeArguments = emptyList()
if (reference.boundSymbol == null) {
implicitReceiverStack.lastDispatchReceiver()?.boundSymbol?.also {
reference.replaceBoundSymbol(it)
} ?: return delegatedConstructorCall.compose()
} else {
reference.boundSymbol!! as FirClassSymbol<*>
}
}
is FirSuperReference -> {
// TODO: unresolved supertype
val supertype = reference.superTypeRef.coneTypeSafe<ConeClassLikeType>() ?: return delegatedConstructorCall.compose()
typeArguments = supertype.typeArguments.takeIf { it.isNotEmpty() }?.map { it.toFirTypeProjection() } ?: emptyList()
val expandedSupertype = supertype.fullyExpandedType(session)
val lookupTag = expandedSupertype.lookupTag
if (lookupTag is ConeClassLookupTagWithFixedSymbol) {
lookupTag.symbol
} else {
// TODO: support locals
symbolProvider.getSymbolByLookupTag(lookupTag) ?: return delegatedConstructorCall.compose()
} as FirClassSymbol<*>
}
else -> return delegatedConstructorCall.compose()
}
is FirSuperReference -> {
// TODO: unresolved supertype
val supertype = reference.superTypeRef.coneTypeSafe<ConeClassLikeType>() ?: return delegatedConstructorCall.compose()
typeArguments = supertype.typeArguments.takeIf { it.isNotEmpty() }?.map { it.toFirTypeProjection() } ?: emptyList()
val expandedSupertype = supertype.fullyExpandedType(session)
val lookupTag = expandedSupertype.lookupTag
if (lookupTag is ConeClassLookupTagWithFixedSymbol) {
lookupTag.symbol
} else {
// TODO: support locals
symbolProvider.getSymbolByLookupTag(lookupTag) ?: return delegatedConstructorCall.compose()
} as FirClassSymbol<*>
}
else -> return delegatedConstructorCall.compose()
val resolvedCall = callResolver.resolveDelegatingConstructorCall(delegatedConstructorCall, symbol, typeArguments)
?: return delegatedConstructorCall.compose()
val completionResult = callCompleter.completeCall(resolvedCall, noExpectedType)
result = completionResult.result
callCompleted = completionResult.callCompleted
return result.compose()
} finally {
dataFlowAnalyzer.exitDelegatedConstructorCall(result, callCompleted)
}
val result = callResolver.resolveDelegatingConstructorCall(delegatedConstructorCall, symbol, typeArguments)
?: return delegatedConstructorCall.compose()
return callCompleter.completeCall(result, noExpectedType).result.compose()
}
// ------------------------------------------------------------------------------------------------
+8 -4
View File
@@ -6,17 +6,21 @@ digraph initBlock_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
5 [label="Exit function <init>" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
}
@@ -22,9 +22,11 @@ digraph initBlockAndInPlaceLambda_kt {
subgraph cluster_2 {
color=red
4 [label="Enter function <init>" style="filled" fillcolor=red];
5 [label="Exit function <init>" style="filled" fillcolor=red];
5 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
6 [label="Exit function <init>" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
}
@@ -0,0 +1,84 @@
digraph postponedLambdaInConstructor_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Access variable R|<local>/s|"];
5 [label="Postponed enter to lambda"];
subgraph cluster_2 {
color=blue
6 [label="Enter function anonymousFunction"];
7 [label="Postponed enter to lambda"];
8 [label="Postponed exit from lambda"];
9 [label="Exit function anonymousFunction"];
}
10 [label="Postponed exit from lambda"];
11 [label="Function call: R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(...)"];
12 [label="Delegated constructor call: super<R|A|>(...)"];
13 [label="Exit function <init>" style="filled" fillcolor=red];
}
3 -> {4};
4 -> {5};
5 -> {6};
5 -> {10} [color=red];
6 -> {7};
7 -> {8 8} [color=green];
8 -> {9};
9 -> {10} [color=green];
10 -> {11};
11 -> {12};
12 -> {13};
subgraph cluster_3 {
color=red
14 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
15 [label="Access variable R|<local>/it|"];
16 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
14 -> {15};
15 -> {16};
subgraph cluster_4 {
color=red
17 [label="Enter function getter" style="filled" fillcolor=red];
18 [label="Exit function getter" style="filled" fillcolor=red];
}
17 -> {18};
subgraph cluster_5 {
color=red
19 [label="Enter property" style="filled" fillcolor=red];
20 [label="Access variable R|<local>/s|"];
21 [label="Exit property" style="filled" fillcolor=red];
}
19 -> {20};
20 -> {21};
subgraph cluster_6 {
color=red
22 [label="Enter function foo" style="filled" fillcolor=red];
23 [label="Function call: this@R|/B|.R|/B.foo|()"];
24 [label="Exit function foo" style="filled" fillcolor=red];
}
22 -> {23};
23 -> {24};
}
@@ -0,0 +1,9 @@
// !DUMP_CFG
abstract class A(func: () -> String)
class B(val s: String) : A(s.let { { it } }) {
fun foo() {
foo()
}
}
@@ -0,0 +1,26 @@
FILE: postponedLambdaInConstructor.kt
public abstract class A : R|kotlin/Any| {
public constructor(func: R|() -> kotlin/String|): R|A| {
super<R|kotlin/Any|>()
}
}
public final class B : R|A| {
public constructor(s: R|kotlin/String|): R|B| {
super<R|A|>(R|<local>/s|.R|kotlin/let|<R|kotlin/String|, R|() -> kotlin/String|>(<L> = let@fun <anonymous>(it: R|kotlin/String|): R|() -> kotlin/String| <kind=EXACTLY_ONCE> {
^ let@fun <anonymous>(): R|kotlin/String| {
^ R|<local>/it|
}
}
))
}
public final val s: R|kotlin/String| = R|<local>/s|
public get(): R|kotlin/String|
public final fun foo(): R|kotlin/Unit| {
this@R|/B|.R|/B.foo|()
}
}
@@ -94,126 +94,130 @@ digraph propertiesAndInitBlocks_kt {
subgraph cluster_7 {
color=red
29 [label="Enter function <init>" style="filled" fillcolor=red];
30 [label="Exit function <init>" style="filled" fillcolor=red];
30 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
31 [label="Exit function <init>" style="filled" fillcolor=red];
}
29 -> {30};
30 -> {31};
subgraph cluster_8 {
color=red
31 [label="Enter function getter" style="filled" fillcolor=red];
32 [label="Exit function getter" style="filled" fillcolor=red];
32 [label="Enter function getter" style="filled" fillcolor=red];
33 [label="Exit function getter" style="filled" fillcolor=red];
}
31 -> {32};
32 -> {33};
subgraph cluster_9 {
color=red
33 [label="Enter function <init>" style="filled" fillcolor=red];
34 [label="Exit function <init>" style="filled" fillcolor=red];
34 [label="Enter function <init>" style="filled" fillcolor=red];
35 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
36 [label="Exit function <init>" style="filled" fillcolor=red];
}
33 -> {34};
34 -> {35};
35 -> {36};
subgraph cluster_10 {
color=red
35 [label="Enter property" style="filled" fillcolor=red];
36 [label="Postponed enter to lambda"];
37 [label="Enter property" style="filled" fillcolor=red];
38 [label="Postponed enter to lambda"];
subgraph cluster_11 {
color=blue
37 [label="Enter function anonymousFunction"];
38 [label="Function call: R|java/lang/Exception.Exception|()"];
39 [label="Throw: throw R|java/lang/Exception.Exception|()"];
40 [label="Stub" style="filled" fillcolor=gray];
41 [label="Exit function anonymousFunction"];
39 [label="Enter function anonymousFunction"];
40 [label="Function call: R|java/lang/Exception.Exception|()"];
41 [label="Throw: throw R|java/lang/Exception.Exception|()"];
42 [label="Stub" style="filled" fillcolor=gray];
43 [label="Exit function anonymousFunction"];
}
42 [label="Postponed exit from lambda"];
43 [label="Function call: R|/run|(...)"];
44 [label="Exit property" style="filled" fillcolor=red];
44 [label="Postponed exit from lambda"];
45 [label="Function call: R|/run|(...)"];
46 [label="Exit property" style="filled" fillcolor=red];
}
35 -> {36};
36 -> {37};
36 -> {42} [color=red];
37 -> {41 38};
37 -> {38};
38 -> {39};
39 -> {44};
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
41 -> {37};
41 -> {42} [color=green];
42 -> {43};
43 -> {44};
38 -> {44} [color=red];
39 -> {43 40};
40 -> {41};
41 -> {46};
41 -> {42} [style=dotted];
42 -> {43} [style=dotted];
43 -> {39};
43 -> {44} [color=green];
44 -> {45};
45 -> {46};
subgraph cluster_12 {
color=red
45 [label="Enter function getter" style="filled" fillcolor=red];
46 [label="Exit function getter" style="filled" fillcolor=red];
}
45 -> {46};
subgraph cluster_13 {
color=red
47 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
48 [label="Try expression enter"];
subgraph cluster_15 {
color=blue
49 [label="Try main block enter"];
subgraph cluster_16 {
color=blue
50 [label="Enter block"];
51 [label="Const: Int(1)"];
52 [label="Exit block"];
}
53 [label="Try main block exit"];
}
subgraph cluster_17 {
color=blue
54 [label="Enter finally"];
subgraph cluster_18 {
color=blue
55 [label="Enter block"];
56 [label="Const: IntegerLiteral(0)"];
57 [label="Exit block"];
}
58 [label="Exit finally"];
}
subgraph cluster_19 {
color=blue
59 [label="Catch enter"];
subgraph cluster_20 {
color=blue
60 [label="Enter block"];
61 [label="Const: Int(2)"];
62 [label="Exit block"];
}
63 [label="Catch exit"];
}
64 [label="Try expression exit"];
}
65 [label="Exit property" style="filled" fillcolor=red];
47 [label="Enter function getter" style="filled" fillcolor=red];
48 [label="Exit function getter" style="filled" fillcolor=red];
}
47 -> {48};
48 -> {49};
49 -> {65 59 54 50};
subgraph cluster_13 {
color=red
49 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
50 [label="Try expression enter"];
subgraph cluster_15 {
color=blue
51 [label="Try main block enter"];
subgraph cluster_16 {
color=blue
52 [label="Enter block"];
53 [label="Const: Int(1)"];
54 [label="Exit block"];
}
55 [label="Try main block exit"];
}
subgraph cluster_17 {
color=blue
56 [label="Enter finally"];
subgraph cluster_18 {
color=blue
57 [label="Enter block"];
58 [label="Const: IntegerLiteral(0)"];
59 [label="Exit block"];
}
60 [label="Exit finally"];
}
subgraph cluster_19 {
color=blue
61 [label="Catch enter"];
subgraph cluster_20 {
color=blue
62 [label="Enter block"];
63 [label="Const: Int(2)"];
64 [label="Exit block"];
}
65 [label="Catch exit"];
}
66 [label="Try expression exit"];
}
67 [label="Exit property" style="filled" fillcolor=red];
}
49 -> {50};
50 -> {51};
51 -> {52};
51 -> {67 61 56 52};
52 -> {53};
53 -> {64};
53 -> {54};
54 -> {55};
55 -> {56};
55 -> {66};
56 -> {57};
57 -> {58};
58 -> {64};
59 -> {65 60};
60 -> {61};
61 -> {62};
58 -> {59};
59 -> {60};
60 -> {66};
61 -> {67 62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
}
@@ -6,150 +6,154 @@ digraph returnValuesFromLambda_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
5 [label="Exit function <init>" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
subgraph cluster_2 {
color=red
4 [label="Enter function test_1" style="filled" fillcolor=red];
5 [label="Postponed enter to lambda"];
6 [label="Enter function test_1" style="filled" fillcolor=red];
7 [label="Postponed enter to lambda"];
subgraph cluster_3 {
color=blue
6 [label="Enter function anonymousFunction"];
8 [label="Enter function anonymousFunction"];
subgraph cluster_4 {
color=blue
7 [label="Enter when"];
9 [label="Enter when"];
subgraph cluster_5 {
color=blue
8 [label="Enter when branch condition "];
9 [label="Access variable R|<local>/b|"];
10 [label="Exit when branch condition"];
10 [label="Enter when branch condition "];
11 [label="Access variable R|<local>/b|"];
12 [label="Exit when branch condition"];
}
11 [label="Synthetic else branch"];
12 [label="Enter when branch result"];
13 [label="Synthetic else branch"];
14 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
13 [label="Enter block"];
14 [label="Function call: R|/B.B|()"];
15 [label="Jump: ^@run R|/B.B|()"];
16 [label="Stub" style="filled" fillcolor=gray];
17 [label="Exit block" style="filled" fillcolor=gray];
15 [label="Enter block"];
16 [label="Function call: R|/B.B|()"];
17 [label="Jump: ^@run R|/B.B|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit block" style="filled" fillcolor=gray];
}
18 [label="Exit when branch result" style="filled" fillcolor=gray];
19 [label="Exit when"];
20 [label="Exit when branch result" style="filled" fillcolor=gray];
21 [label="Exit when"];
}
20 [label="Function call: R|/C.C|()"];
21 [label="Exit function anonymousFunction"];
22 [label="Function call: R|/C.C|()"];
23 [label="Exit function anonymousFunction"];
}
22 [label="Call arguments union" style="filled" fillcolor=yellow];
23 [label="Postponed exit from lambda"];
24 [label="Function call: R|kotlin/run|<R|A|>(...)"];
25 [label="Variable declaration: lval x: R|A|"];
26 [label="Exit function test_1" style="filled" fillcolor=red];
24 [label="Call arguments union" style="filled" fillcolor=yellow];
25 [label="Postponed exit from lambda"];
26 [label="Function call: R|kotlin/run|<R|A|>(...)"];
27 [label="Variable declaration: lval x: R|A|"];
28 [label="Exit function test_1" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
5 -> {23} [color=red];
6 -> {7};
7 -> {8};
7 -> {25} [color=red];
8 -> {9};
9 -> {10};
10 -> {12 11};
11 -> {19};
12 -> {13};
13 -> {14};
10 -> {11};
11 -> {12};
12 -> {14 13};
13 -> {21};
14 -> {15};
15 -> {21};
15 -> {16} [style=dotted];
16 -> {17} [style=dotted];
15 -> {16};
16 -> {17};
17 -> {23};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
19 -> {20};
20 -> {21};
21 -> {23} [color=green];
21 -> {22} [color=red];
22 -> {24} [color=red];
23 -> {24} [color=green];
24 -> {25};
25 -> {26};
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22};
22 -> {23};
23 -> {25} [color=green];
23 -> {24} [color=red];
24 -> {26} [color=red];
25 -> {26} [color=green];
26 -> {27};
27 -> {28};
subgraph cluster_7 {
color=red
27 [label="Enter function test_2" style="filled" fillcolor=red];
28 [label="Postponed enter to lambda"];
29 [label="Enter function test_2" style="filled" fillcolor=red];
30 [label="Postponed enter to lambda"];
subgraph cluster_8 {
color=blue
29 [label="Enter function anonymousFunction"];
30 [label="Function call: R|/C.C|()"];
31 [label="Jump: ^@run R|/C.C|()"];
32 [label="Stub" style="filled" fillcolor=gray];
33 [label="Exit function anonymousFunction"];
31 [label="Enter function anonymousFunction"];
32 [label="Function call: R|/C.C|()"];
33 [label="Jump: ^@run R|/C.C|()"];
34 [label="Stub" style="filled" fillcolor=gray];
35 [label="Exit function anonymousFunction"];
}
34 [label="Call arguments union" style="filled" fillcolor=yellow];
35 [label="Postponed exit from lambda"];
36 [label="Function call: R|kotlin/run|<R|C|>(...)"];
37 [label="Variable declaration: lval x: R|C|"];
38 [label="Exit function test_2" style="filled" fillcolor=red];
36 [label="Call arguments union" style="filled" fillcolor=yellow];
37 [label="Postponed exit from lambda"];
38 [label="Function call: R|kotlin/run|<R|C|>(...)"];
39 [label="Variable declaration: lval x: R|C|"];
40 [label="Exit function test_2" style="filled" fillcolor=red];
}
27 -> {28};
28 -> {29};
28 -> {35} [color=red];
29 -> {30};
30 -> {31};
31 -> {33};
31 -> {32} [style=dotted];
32 -> {33} [style=dotted];
33 -> {35} [color=green];
33 -> {34} [color=red];
34 -> {36} [color=red];
35 -> {36} [color=green];
36 -> {37};
37 -> {38};
30 -> {37} [color=red];
31 -> {32};
32 -> {33};
33 -> {35};
33 -> {34} [style=dotted];
34 -> {35} [style=dotted];
35 -> {37} [color=green];
35 -> {36} [color=red];
36 -> {38} [color=red];
37 -> {38} [color=green];
38 -> {39};
39 -> {40};
subgraph cluster_9 {
color=red
39 [label="Enter function test_3" style="filled" fillcolor=red];
40 [label="Postponed enter to lambda"];
41 [label="Enter function test_3" style="filled" fillcolor=red];
42 [label="Postponed enter to lambda"];
subgraph cluster_10 {
color=blue
41 [label="Enter function anonymousFunction"];
42 [label="Jump: ^test_3 Unit"];
43 [label="Stub" style="filled" fillcolor=gray];
44 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
43 [label="Enter function anonymousFunction"];
44 [label="Jump: ^test_3 Unit"];
45 [label="Stub" style="filled" fillcolor=gray];
46 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
45 [label="Call arguments union" style="filled" fillcolor=gray];
46 [label="Postponed exit from lambda"];
47 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
48 [label="Stub" style="filled" fillcolor=gray];
49 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray];
50 [label="Exit function test_3" style="filled" fillcolor=red];
47 [label="Call arguments union" style="filled" fillcolor=gray];
48 [label="Postponed exit from lambda"];
49 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(...)" style="filled" fillcolor=gray];
50 [label="Stub" style="filled" fillcolor=gray];
51 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray];
52 [label="Exit function test_3" style="filled" fillcolor=red];
}
39 -> {40};
40 -> {41};
40 -> {46} [color=red];
41 -> {42};
42 -> {50};
42 -> {43} [style=dotted];
43 -> {44} [style=dotted];
42 -> {43};
42 -> {48} [color=red];
43 -> {44};
44 -> {52};
44 -> {45} [style=dotted];
44 -> {46} [color=green];
45 -> {47} [style=dotted];
46 -> {47} [color=green];
47 -> {50 48} [style=dotted];
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
45 -> {46} [style=dotted];
46 -> {47} [style=dotted];
46 -> {48} [color=green];
47 -> {49} [style=dotted];
48 -> {49} [color=green];
49 -> {52 50} [style=dotted];
50 -> {51} [style=dotted];
51 -> {52} [style=dotted];
}
@@ -6,93 +6,95 @@ digraph exhaustiveWhenAndDNNType_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Enum<SomeEnum>|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function values" style="filled" fillcolor=red];
3 [label="Exit function values" style="filled" fillcolor=red];
3 [label="Enter function values" style="filled" fillcolor=red];
4 [label="Exit function values" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
subgraph cluster_2 {
color=red
4 [label="Enter function valueOf" style="filled" fillcolor=red];
5 [label="Exit function valueOf" style="filled" fillcolor=red];
5 [label="Enter function valueOf" style="filled" fillcolor=red];
6 [label="Exit function valueOf" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
subgraph cluster_3 {
color=red
6 [label="Enter function <init>" style="filled" fillcolor=red];
7 [label="Exit function <init>" style="filled" fillcolor=red];
7 [label="Enter function <init>" style="filled" fillcolor=red];
8 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
9 [label="Exit function <init>" style="filled" fillcolor=red];
}
6 -> {7};
7 -> {8};
8 -> {9};
subgraph cluster_4 {
color=red
8 [label="Enter function takeB" style="filled" fillcolor=red];
9 [label="Exit function takeB" style="filled" fillcolor=red];
}
8 -> {9};
subgraph cluster_5 {
color=red
10 [label="Enter function test_1" style="filled" fillcolor=red];
11 [label="Access variable R|/SomeEnum.A1|"];
12 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_6 {
color=blue
13 [label="Enter when"];
14 [label="Access variable R|<local>/flag|"];
15 [label="Check not null: R|<local>/flag|!!"];
subgraph cluster_7 {
color=blue
16 [label="Enter when branch condition "];
17 [label="Access variable R|/SomeEnum.A1|"];
18 [label="Operator =="];
19 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
20 [label="Enter when branch condition "];
21 [label="Access variable R|/SomeEnum.A2|"];
22 [label="Operator =="];
23 [label="Exit when branch condition"];
}
24 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
25 [label="Enter block"];
26 [label="Function call: R|/B.B|()"];
27 [label="Exit block"];
}
28 [label="Exit when branch result"];
29 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
30 [label="Enter block"];
31 [label="Function call: R|/B.B|()"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
}
35 [label="Variable declaration: lval b: R|B|"];
36 [label="Access variable R|<local>/b|"];
37 [label="Function call: R|/takeB|(...)"];
38 [label="Exit function test_1" style="filled" fillcolor=red];
10 [label="Enter function takeB" style="filled" fillcolor=red];
11 [label="Exit function takeB" style="filled" fillcolor=red];
}
10 -> {11};
11 -> {12};
subgraph cluster_5 {
color=red
12 [label="Enter function test_1" style="filled" fillcolor=red];
13 [label="Access variable R|/SomeEnum.A1|"];
14 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_6 {
color=blue
15 [label="Enter when"];
16 [label="Access variable R|<local>/flag|"];
17 [label="Check not null: R|<local>/flag|!!"];
subgraph cluster_7 {
color=blue
18 [label="Enter when branch condition "];
19 [label="Access variable R|/SomeEnum.A1|"];
20 [label="Operator =="];
21 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
22 [label="Enter when branch condition "];
23 [label="Access variable R|/SomeEnum.A2|"];
24 [label="Operator =="];
25 [label="Exit when branch condition"];
}
26 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
27 [label="Enter block"];
28 [label="Function call: R|/B.B|()"];
29 [label="Exit block"];
}
30 [label="Exit when branch result"];
31 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
32 [label="Enter block"];
33 [label="Function call: R|/B.B|()"];
34 [label="Exit block"];
}
35 [label="Exit when branch result"];
36 [label="Exit when"];
}
37 [label="Variable declaration: lval b: R|B|"];
38 [label="Access variable R|<local>/b|"];
39 [label="Function call: R|/takeB|(...)"];
40 [label="Exit function test_1" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14};
14 -> {15};
@@ -100,18 +102,18 @@ digraph exhaustiveWhenAndDNNType_kt {
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {29 20};
19 -> {20};
20 -> {21};
21 -> {22};
21 -> {31 22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {34};
28 -> {29};
29 -> {30};
30 -> {31};
30 -> {36};
31 -> {32};
32 -> {33};
33 -> {34};
@@ -119,57 +121,57 @@ digraph exhaustiveWhenAndDNNType_kt {
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
subgraph cluster_11 {
color=red
39 [label="Enter function test_2" style="filled" fillcolor=red];
40 [label="Access variable R|/SomeEnum.A1|"];
41 [label="Variable declaration: lval flag: R|SomeEnum|"];
41 [label="Enter function test_2" style="filled" fillcolor=red];
42 [label="Access variable R|/SomeEnum.A1|"];
43 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_12 {
color=blue
42 [label="Enter when"];
43 [label="Access variable R|<local>/flag|"];
44 [label="Check not null: R|<local>/flag|!!"];
44 [label="Enter when"];
45 [label="Access variable R|<local>/flag|"];
46 [label="Check not null: R|<local>/flag|!!"];
subgraph cluster_13 {
color=blue
45 [label="Enter when branch condition "];
46 [label="Access variable R|/SomeEnum.A1|"];
47 [label="Operator =="];
48 [label="Exit when branch condition"];
47 [label="Enter when branch condition "];
48 [label="Access variable R|/SomeEnum.A1|"];
49 [label="Operator =="];
50 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
49 [label="Enter when branch condition "];
50 [label="Access variable R|/SomeEnum.A2|"];
51 [label="Operator =="];
52 [label="Exit when branch condition"];
51 [label="Enter when branch condition "];
52 [label="Access variable R|/SomeEnum.A2|"];
53 [label="Operator =="];
54 [label="Exit when branch condition"];
}
53 [label="Enter when branch result"];
55 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
54 [label="Enter block"];
55 [label="Function call: R|/B.B|()"];
56 [label="Exit block"];
56 [label="Enter block"];
57 [label="Function call: R|/B.B|()"];
58 [label="Exit block"];
}
57 [label="Exit when branch result"];
58 [label="Enter when branch result"];
59 [label="Exit when branch result"];
60 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
59 [label="Enter block"];
60 [label="Function call: R|/B.B|()"];
61 [label="Exit block"];
61 [label="Enter block"];
62 [label="Function call: R|/B.B|()"];
63 [label="Exit block"];
}
62 [label="Exit when branch result"];
63 [label="Exit when"];
64 [label="Exit when branch result"];
65 [label="Exit when"];
}
64 [label="Variable declaration: lval b: R|B|"];
65 [label="Access variable R|<local>/b|"];
66 [label="Function call: R|/takeB|(...)"];
67 [label="Exit function test_2" style="filled" fillcolor=red];
66 [label="Variable declaration: lval b: R|B|"];
67 [label="Access variable R|<local>/b|"];
68 [label="Function call: R|/takeB|(...)"];
69 [label="Exit function test_2" style="filled" fillcolor=red];
}
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
@@ -177,18 +179,18 @@ digraph exhaustiveWhenAndDNNType_kt {
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {58 49};
48 -> {49};
49 -> {50};
50 -> {51};
50 -> {60 51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {63};
57 -> {58};
58 -> {59};
59 -> {60};
59 -> {65};
60 -> {61};
61 -> {62};
62 -> {63};
@@ -196,74 +198,74 @@ digraph exhaustiveWhenAndDNNType_kt {
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
subgraph cluster_17 {
color=red
68 [label="Enter function test_3" style="filled" fillcolor=red];
69 [label="Access variable R|/SomeEnum.A1|"];
70 [label="Variable declaration: lval flag: R|SomeEnum|"];
70 [label="Enter function test_3" style="filled" fillcolor=red];
71 [label="Access variable R|/SomeEnum.A1|"];
72 [label="Variable declaration: lval flag: R|SomeEnum|"];
subgraph cluster_18 {
color=blue
71 [label="Enter when"];
72 [label="Access variable R|<local>/flag|"];
73 [label="Enter when"];
74 [label="Access variable R|<local>/flag|"];
subgraph cluster_19 {
color=blue
73 [label="Enter when branch condition "];
74 [label="Access variable R|/SomeEnum.A1|"];
75 [label="Operator =="];
76 [label="Exit when branch condition"];
75 [label="Enter when branch condition "];
76 [label="Access variable R|/SomeEnum.A1|"];
77 [label="Operator =="];
78 [label="Exit when branch condition"];
}
subgraph cluster_20 {
color=blue
77 [label="Enter when branch condition "];
78 [label="Access variable R|/SomeEnum.A2|"];
79 [label="Operator =="];
80 [label="Exit when branch condition"];
79 [label="Enter when branch condition "];
80 [label="Access variable R|/SomeEnum.A2|"];
81 [label="Operator =="];
82 [label="Exit when branch condition"];
}
81 [label="Enter when branch result"];
83 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
82 [label="Enter block"];
83 [label="Function call: R|/B.B|()"];
84 [label="Exit block"];
84 [label="Enter block"];
85 [label="Function call: R|/B.B|()"];
86 [label="Exit block"];
}
85 [label="Exit when branch result"];
86 [label="Enter when branch result"];
87 [label="Exit when branch result"];
88 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
87 [label="Enter block"];
88 [label="Function call: R|/B.B|()"];
89 [label="Exit block"];
89 [label="Enter block"];
90 [label="Function call: R|/B.B|()"];
91 [label="Exit block"];
}
90 [label="Exit when branch result"];
91 [label="Exit when"];
92 [label="Exit when branch result"];
93 [label="Exit when"];
}
92 [label="Variable declaration: lval b: R|B|"];
93 [label="Access variable R|<local>/b|"];
94 [label="Function call: R|/takeB|(...)"];
95 [label="Exit function test_3" style="filled" fillcolor=red];
94 [label="Variable declaration: lval b: R|B|"];
95 [label="Access variable R|<local>/b|"];
96 [label="Function call: R|/takeB|(...)"];
97 [label="Exit function test_3" style="filled" fillcolor=red];
}
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {86 77};
76 -> {77};
77 -> {78};
78 -> {79};
78 -> {88 79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {91};
85 -> {86};
86 -> {87};
87 -> {88};
87 -> {93};
88 -> {89};
89 -> {90};
90 -> {91};
@@ -271,5 +273,7 @@ digraph exhaustiveWhenAndDNNType_kt {
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
}
@@ -281,91 +281,92 @@ digraph boundSmartcasts_kt {
subgraph cluster_21 {
color=red
103 [label="Enter function <init>" style="filled" fillcolor=red];
104 [label="Exit function <init>" style="filled" fillcolor=red];
104 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
105 [label="Exit function <init>" style="filled" fillcolor=red];
}
103 -> {104};
104 -> {105};
subgraph cluster_22 {
color=red
105 [label="Enter function getter" style="filled" fillcolor=red];
106 [label="Exit function getter" style="filled" fillcolor=red];
106 [label="Enter function getter" style="filled" fillcolor=red];
107 [label="Exit function getter" style="filled" fillcolor=red];
}
105 -> {106};
106 -> {107};
subgraph cluster_23 {
color=red
107 [label="Enter property" style="filled" fillcolor=red];
108 [label="Access variable R|<local>/any|"];
109 [label="Exit property" style="filled" fillcolor=red];
108 [label="Enter property" style="filled" fillcolor=red];
109 [label="Access variable R|<local>/any|"];
110 [label="Exit property" style="filled" fillcolor=red];
}
107 -> {108};
108 -> {109};
109 -> {110};
subgraph cluster_24 {
color=red
110 [label="Enter function baz" style="filled" fillcolor=red];
111 [label="Exit function baz" style="filled" fillcolor=red];
111 [label="Enter function baz" style="filled" fillcolor=red];
112 [label="Exit function baz" style="filled" fillcolor=red];
}
110 -> {111};
111 -> {112};
subgraph cluster_25 {
color=red
112 [label="Enter function test_5" style="filled" fillcolor=red];
113 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_26 {
color=blue
113 [label="Enter when"];
114 [label="Access variable R|<local>/d|"];
115 [label="Access variable R|/D.any|"];
116 [label="Variable declaration: lval <elvis>: R|kotlin/Any?|"];
114 [label="Enter when"];
115 [label="Access variable R|<local>/d|"];
116 [label="Access variable R|/D.any|"];
117 [label="Variable declaration: lval <elvis>: R|kotlin/Any?|"];
subgraph cluster_27 {
color=blue
117 [label="Enter when branch condition "];
118 [label="Const: Null(null)"];
119 [label="Operator =="];
120 [label="Exit when branch condition"];
118 [label="Enter when branch condition "];
119 [label="Const: Null(null)"];
120 [label="Operator =="];
121 [label="Exit when branch condition"];
}
subgraph cluster_28 {
color=blue
121 [label="Enter when branch condition else"];
122 [label="Exit when branch condition"];
122 [label="Enter when branch condition else"];
123 [label="Exit when branch condition"];
}
123 [label="Enter when branch result"];
124 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
124 [label="Enter block"];
125 [label="Access variable R|<local>/<elvis>|"];
126 [label="Exit block"];
125 [label="Enter block"];
126 [label="Access variable R|<local>/<elvis>|"];
127 [label="Exit block"];
}
127 [label="Exit when branch result"];
128 [label="Enter when branch result"];
128 [label="Exit when branch result"];
129 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
129 [label="Enter block"];
130 [label="Jump: ^test_5 Unit"];
131 [label="Stub" style="filled" fillcolor=gray];
132 [label="Exit block" style="filled" fillcolor=gray];
130 [label="Enter block"];
131 [label="Jump: ^test_5 Unit"];
132 [label="Stub" style="filled" fillcolor=gray];
133 [label="Exit block" style="filled" fillcolor=gray];
}
133 [label="Exit when branch result" style="filled" fillcolor=gray];
134 [label="Exit when"];
134 [label="Exit when branch result" style="filled" fillcolor=gray];
135 [label="Exit when"];
}
135 [label="Variable declaration: lval a: R|kotlin/Any|"];
136 [label="Access variable R|<local>/a|"];
137 [label="Function call: R|<local>/a|.R|/baz|()"];
138 [label="Access variable R|<local>/d|"];
139 [label="Access variable R|/D.any|"];
140 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
141 [label="Access variable R|<local>/a|"];
142 [label="Type operator: (R|<local>/a| as R|A|)"];
143 [label="Access variable R|<local>/a|"];
144 [label="Function call: R|<local>/a|.R|/A.foo|()"];
145 [label="Exit function test_5" style="filled" fillcolor=red];
136 [label="Variable declaration: lval a: R|kotlin/Any|"];
137 [label="Access variable R|<local>/a|"];
138 [label="Function call: R|<local>/a|.R|/baz|()"];
139 [label="Access variable R|<local>/d|"];
140 [label="Access variable R|/D.any|"];
141 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
142 [label="Access variable R|<local>/a|"];
143 [label="Type operator: (R|<local>/a| as R|A|)"];
144 [label="Access variable R|<local>/a|"];
145 [label="Function call: R|<local>/a|.R|/A.foo|()"];
146 [label="Exit function test_5" style="filled" fillcolor=red];
}
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
@@ -373,22 +374,22 @@ digraph boundSmartcasts_kt {
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {128 121};
121 -> {122};
120 -> {121};
121 -> {129 122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {134};
128 -> {129};
127 -> {128};
128 -> {135};
129 -> {130};
130 -> {145};
130 -> {131} [style=dotted];
130 -> {131};
131 -> {146};
131 -> {132} [style=dotted];
132 -> {133} [style=dotted];
133 -> {134} [style=dotted];
134 -> {135};
134 -> {135} [style=dotted];
135 -> {136};
136 -> {137};
137 -> {138};
@@ -399,27 +400,27 @@ digraph boundSmartcasts_kt {
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
subgraph cluster_31 {
color=red
146 [label="Enter function test_6" style="filled" fillcolor=red];
147 [label="Access variable R|<local>/d1|"];
148 [label="Access variable R|/D.any|"];
149 [label="Variable declaration: lval a: R|kotlin/Any?|"];
150 [label="Access variable R|<local>/a|"];
151 [label="Type operator: (R|<local>/a| as R|A|)"];
152 [label="Access variable R|<local>/a|"];
153 [label="Function call: R|<local>/a|.R|/A.foo|()"];
154 [label="Access variable R|<local>/d1|"];
155 [label="Access variable R|/D.any|"];
156 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
157 [label="Access variable R|<local>/d1|"];
158 [label="Access variable R|/D.any|"];
159 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
160 [label="Exit function test_6" style="filled" fillcolor=red];
147 [label="Enter function test_6" style="filled" fillcolor=red];
148 [label="Access variable R|<local>/d1|"];
149 [label="Access variable R|/D.any|"];
150 [label="Variable declaration: lval a: R|kotlin/Any?|"];
151 [label="Access variable R|<local>/a|"];
152 [label="Type operator: (R|<local>/a| as R|A|)"];
153 [label="Access variable R|<local>/a|"];
154 [label="Function call: R|<local>/a|.R|/A.foo|()"];
155 [label="Access variable R|<local>/d1|"];
156 [label="Access variable R|/D.any|"];
157 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
158 [label="Access variable R|<local>/d1|"];
159 [label="Access variable R|/D.any|"];
160 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
161 [label="Exit function test_6" style="filled" fillcolor=red];
}
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
@@ -433,39 +434,39 @@ digraph boundSmartcasts_kt {
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
subgraph cluster_32 {
color=red
161 [label="Enter function test_7" style="filled" fillcolor=red];
162 [label="Access variable R|<local>/d1|"];
163 [label="Enter safe call"];
164 [label="Access variable R|/D.any|"];
165 [label="Exit safe call"];
166 [label="Variable declaration: lval a: R|kotlin/Any?|"];
167 [label="Access variable R|<local>/d2|"];
168 [label="Enter safe call"];
169 [label="Access variable R|/D.any|"];
170 [label="Exit safe call"];
171 [label="Variable declaration: lval b: R|kotlin/Any?|"];
172 [label="Access variable R|<local>/a|"];
173 [label="Type operator: (R|<local>/a| as R|A|)"];
174 [label="Access variable R|<local>/a|"];
175 [label="Function call: R|<local>/a|.R|/A.foo|()"];
176 [label="Access variable R|<local>/b|"];
177 [label="Type operator: (R|<local>/b| as R|B|)"];
178 [label="Access variable R|<local>/b|"];
179 [label="Function call: R|<local>/b|.R|/B.bar|()"];
180 [label="Exit function test_7" style="filled" fillcolor=red];
162 [label="Enter function test_7" style="filled" fillcolor=red];
163 [label="Access variable R|<local>/d1|"];
164 [label="Enter safe call"];
165 [label="Access variable R|/D.any|"];
166 [label="Exit safe call"];
167 [label="Variable declaration: lval a: R|kotlin/Any?|"];
168 [label="Access variable R|<local>/d2|"];
169 [label="Enter safe call"];
170 [label="Access variable R|/D.any|"];
171 [label="Exit safe call"];
172 [label="Variable declaration: lval b: R|kotlin/Any?|"];
173 [label="Access variable R|<local>/a|"];
174 [label="Type operator: (R|<local>/a| as R|A|)"];
175 [label="Access variable R|<local>/a|"];
176 [label="Function call: R|<local>/a|.R|/A.foo|()"];
177 [label="Access variable R|<local>/b|"];
178 [label="Type operator: (R|<local>/b| as R|B|)"];
179 [label="Access variable R|<local>/b|"];
180 [label="Function call: R|<local>/b|.R|/B.bar|()"];
181 [label="Exit function test_7" style="filled" fillcolor=red];
}
161 -> {162};
162 -> {163 165};
163 -> {164};
162 -> {163};
163 -> {164 166};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168 170};
168 -> {169};
167 -> {168};
168 -> {169 171};
169 -> {170};
170 -> {171};
171 -> {172};
@@ -477,5 +478,6 @@ digraph boundSmartcasts_kt {
177 -> {178};
178 -> {179};
179 -> {180};
180 -> {181};
}
File diff suppressed because it is too large Load Diff
@@ -6,95 +6,99 @@ digraph functionCallBound_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Exit function <init>" style="filled" fillcolor=red];
3 [label="Enter function <init>" style="filled" fillcolor=red];
4 [label="Delegated constructor call: super<R|Base|>()"];
5 [label="Exit function <init>" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
subgraph cluster_2 {
color=red
4 [label="Enter function getter" style="filled" fillcolor=red];
5 [label="Exit function getter" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
color=red
6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Access variable R|<local>/data|"];
8 [label="Exit property" style="filled" fillcolor=red];
6 [label="Enter function getter" style="filled" fillcolor=red];
7 [label="Exit function getter" style="filled" fillcolor=red];
}
6 -> {7};
7 -> {8};
subgraph cluster_3 {
color=red
8 [label="Enter property" style="filled" fillcolor=red];
9 [label="Access variable R|<local>/data|"];
10 [label="Exit property" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
subgraph cluster_4 {
color=red
9 [label="Enter function isOk" style="filled" fillcolor=red];
10 [label="Const: Boolean(true)"];
11 [label="Jump: ^isOk Boolean(true)"];
12 [label="Stub" style="filled" fillcolor=gray];
13 [label="Exit function isOk" style="filled" fillcolor=red];
11 [label="Enter function isOk" style="filled" fillcolor=red];
12 [label="Const: Boolean(true)"];
13 [label="Jump: ^isOk Boolean(true)"];
14 [label="Stub" style="filled" fillcolor=gray];
15 [label="Exit function isOk" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
11 -> {13};
11 -> {12} [style=dotted];
12 -> {13} [style=dotted];
11 -> {12};
12 -> {13};
13 -> {15};
13 -> {14} [style=dotted];
14 -> {15} [style=dotted];
subgraph cluster_5 {
color=red
14 [label="Enter function check" style="filled" fillcolor=red];
16 [label="Enter function check" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
15 [label="Enter when"];
17 [label="Enter when"];
subgraph cluster_7 {
color=blue
16 [label="Enter when branch condition "];
17 [label="Access variable R|<local>/base|"];
18 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
19 [label="Enter safe call"];
20 [label="Function call: (R|<local>/base| as? R|Sub|)?.R|/isOk|()"];
21 [label="Exit safe call"];
22 [label="Const: Boolean(true)"];
23 [label="Operator =="];
24 [label="Exit when branch condition"];
18 [label="Enter when branch condition "];
19 [label="Access variable R|<local>/base|"];
20 [label="Type operator: (R|<local>/base| as? R|Sub|)"];
21 [label="Enter safe call"];
22 [label="Function call: (R|<local>/base| as? R|Sub|)?.R|/isOk|()"];
23 [label="Exit safe call"];
24 [label="Const: Boolean(true)"];
25 [label="Operator =="];
26 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
25 [label="Enter when branch condition else"];
26 [label="Exit when branch condition"];
27 [label="Enter when branch condition else"];
28 [label="Exit when branch condition"];
}
27 [label="Enter when branch result"];
29 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
28 [label="Enter block"];
29 [label="Access variable R|<local>/base|"];
30 [label="Exit block"];
30 [label="Enter block"];
31 [label="Access variable R|<local>/base|"];
32 [label="Exit block"];
}
31 [label="Exit when branch result"];
32 [label="Enter when branch result"];
33 [label="Exit when branch result"];
34 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
33 [label="Enter block"];
34 [label="Access variable R|<local>/base|"];
35 [label="Access variable R|/Sub.data|"];
36 [label="Exit block"];
35 [label="Enter block"];
36 [label="Access variable R|<local>/base|"];
37 [label="Access variable R|/Sub.data|"];
38 [label="Exit block"];
}
37 [label="Exit when branch result"];
38 [label="Exit when"];
39 [label="Exit when branch result"];
40 [label="Exit when"];
}
39 [label="Jump: ^check when () {
41 [label="Jump: ^check when () {
==((R|<local>/base| as? R|Sub|)?.R|/isOk|(), Boolean(true)) -> {
R|<local>/base|.R|/Sub.data|
}
@@ -103,37 +107,37 @@ digraph functionCallBound_kt {
}
}
"];
40 [label="Stub" style="filled" fillcolor=gray];
41 [label="Exit function check" style="filled" fillcolor=red];
42 [label="Stub" style="filled" fillcolor=gray];
43 [label="Exit function check" style="filled" fillcolor=red];
}
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19 21};
18 -> {19};
19 -> {20};
20 -> {21};
20 -> {21 23};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {32 25};
24 -> {25};
25 -> {26};
26 -> {27};
26 -> {34 27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {38};
31 -> {32};
32 -> {33};
33 -> {34};
33 -> {40};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {41};
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
39 -> {40};
40 -> {41};
41 -> {43};
41 -> {42} [style=dotted];
42 -> {43} [style=dotted];
}
File diff suppressed because it is too large Load Diff
@@ -6,106 +6,108 @@ digraph implicitReceivers_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
3 [label="Enter function foo" style="filled" fillcolor=red];
4 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
subgraph cluster_2 {
color=red
4 [label="Enter function <init>" style="filled" fillcolor=red];
5 [label="Exit function <init>" style="filled" fillcolor=red];
5 [label="Enter function <init>" style="filled" fillcolor=red];
6 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
7 [label="Exit function <init>" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
6 -> {7};
subgraph cluster_3 {
color=red
6 [label="Enter function bar" style="filled" fillcolor=red];
7 [label="Exit function bar" style="filled" fillcolor=red];
}
6 -> {7};
subgraph cluster_4 {
color=red
8 [label="Enter function with" style="filled" fillcolor=red];
9 [label="Exit function with" style="filled" fillcolor=red];
8 [label="Enter function bar" style="filled" fillcolor=red];
9 [label="Exit function bar" style="filled" fillcolor=red];
}
8 -> {9};
subgraph cluster_5 {
subgraph cluster_4 {
color=red
10 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
11 [label="Enter when"];
subgraph cluster_7 {
color=blue
12 [label="Enter when branch condition "];
13 [label="Access variable this@R|/test_1|"];
14 [label="Type operator: (this@R|/test_1| is R|A|)"];
15 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
16 [label="Enter when branch condition else"];
17 [label="Exit when branch condition"];
}
18 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
19 [label="Enter block"];
20 [label="Access variable this@R|/test_1|"];
21 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
22 [label="Function call: <Unresolved name: foo>#()"];
23 [label="Exit block"];
}
24 [label="Exit when branch result"];
25 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
26 [label="Enter block"];
27 [label="Access variable this@R|/test_1|"];
28 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
29 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
30 [label="Exit block"];
}
31 [label="Exit when branch result"];
32 [label="Exit when"];
}
33 [label="Access variable this@R|/test_1|"];
34 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
35 [label="Function call: <Unresolved name: foo>#()"];
36 [label="Exit function test_1" style="filled" fillcolor=red];
10 [label="Enter function with" style="filled" fillcolor=red];
11 [label="Exit function with" style="filled" fillcolor=red];
}
10 -> {11};
11 -> {12};
subgraph cluster_5 {
color=red
12 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
13 [label="Enter when"];
subgraph cluster_7 {
color=blue
14 [label="Enter when branch condition "];
15 [label="Access variable this@R|/test_1|"];
16 [label="Type operator: (this@R|/test_1| is R|A|)"];
17 [label="Exit when branch condition"];
}
subgraph cluster_8 {
color=blue
18 [label="Enter when branch condition else"];
19 [label="Exit when branch condition"];
}
20 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
21 [label="Enter block"];
22 [label="Access variable this@R|/test_1|"];
23 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
24 [label="Function call: <Unresolved name: foo>#()"];
25 [label="Exit block"];
}
26 [label="Exit when branch result"];
27 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
28 [label="Enter block"];
29 [label="Access variable this@R|/test_1|"];
30 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
31 [label="Function call: this@R|/test_1|.R|/A.foo|()"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
}
35 [label="Access variable this@R|/test_1|"];
36 [label="Function call: this@R|/test_1|.<Unresolved name: foo>#()"];
37 [label="Function call: <Unresolved name: foo>#()"];
38 [label="Exit function test_1" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {25 16};
15 -> {16};
16 -> {17};
17 -> {18};
17 -> {27 18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {32};
24 -> {25};
25 -> {26};
26 -> {27};
26 -> {34};
27 -> {28};
28 -> {29};
29 -> {30};
@@ -115,70 +117,70 @@ digraph implicitReceivers_kt {
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
subgraph cluster_11 {
color=red
37 [label="Enter function test_2" style="filled" fillcolor=red];
39 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
38 [label="Enter when"];
40 [label="Enter when"];
subgraph cluster_13 {
color=blue
39 [label="Enter when branch condition "];
40 [label="Access variable this@R|/test_2|"];
41 [label="Type operator: (this@R|/test_2| !is R|A|)"];
42 [label="Exit when branch condition"];
41 [label="Enter when branch condition "];
42 [label="Access variable this@R|/test_2|"];
43 [label="Type operator: (this@R|/test_2| !is R|A|)"];
44 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
43 [label="Enter when branch condition else"];
44 [label="Exit when branch condition"];
45 [label="Enter when branch condition else"];
46 [label="Exit when branch condition"];
}
45 [label="Enter when branch result"];
47 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
46 [label="Enter block"];
47 [label="Access variable this@R|/test_2|"];
48 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
49 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
50 [label="Exit block"];
48 [label="Enter block"];
49 [label="Access variable this@R|/test_2|"];
50 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
51 [label="Function call: this@R|/test_2|.R|/A.foo|()"];
52 [label="Exit block"];
}
51 [label="Exit when branch result"];
52 [label="Enter when branch result"];
53 [label="Exit when branch result"];
54 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
53 [label="Enter block"];
54 [label="Access variable this@R|/test_2|"];
55 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
56 [label="Function call: <Unresolved name: foo>#()"];
57 [label="Exit block"];
55 [label="Enter block"];
56 [label="Access variable this@R|/test_2|"];
57 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
58 [label="Function call: <Unresolved name: foo>#()"];
59 [label="Exit block"];
}
58 [label="Exit when branch result"];
59 [label="Exit when"];
60 [label="Exit when branch result"];
61 [label="Exit when"];
}
60 [label="Access variable this@R|/test_2|"];
61 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
62 [label="Function call: <Unresolved name: foo>#()"];
63 [label="Exit function test_2" style="filled" fillcolor=red];
62 [label="Access variable this@R|/test_2|"];
63 [label="Function call: this@R|/test_2|.<Unresolved name: foo>#()"];
64 [label="Function call: <Unresolved name: foo>#()"];
65 [label="Exit function test_2" style="filled" fillcolor=red];
}
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {52 43};
42 -> {43};
43 -> {44};
44 -> {45};
44 -> {54 45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {59};
51 -> {52};
52 -> {53};
53 -> {54};
53 -> {61};
54 -> {55};
55 -> {56};
56 -> {57};
@@ -188,197 +190,197 @@ digraph implicitReceivers_kt {
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
subgraph cluster_17 {
color=red
64 [label="Enter function test_3" style="filled" fillcolor=red];
65 [label="Access variable R|<local>/a|"];
66 [label="Postponed enter to lambda"];
66 [label="Enter function test_3" style="filled" fillcolor=red];
67 [label="Access variable R|<local>/a|"];
68 [label="Postponed enter to lambda"];
subgraph cluster_18 {
color=blue
67 [label="Enter function anonymousFunction"];
68 [label="Access variable R|<local>/b|"];
69 [label="Postponed enter to lambda"];
69 [label="Enter function anonymousFunction"];
70 [label="Access variable R|<local>/b|"];
71 [label="Postponed enter to lambda"];
subgraph cluster_19 {
color=blue
70 [label="Enter function anonymousFunction"];
71 [label="Access variable R|<local>/c|"];
72 [label="Postponed enter to lambda"];
72 [label="Enter function anonymousFunction"];
73 [label="Access variable R|<local>/c|"];
74 [label="Postponed enter to lambda"];
subgraph cluster_20 {
color=blue
73 [label="Enter function anonymousFunction"];
74 [label="Access variable this@R|special/anonymous|"];
75 [label="Type operator: (this@R|special/anonymous| as R|A|)"];
75 [label="Enter function anonymousFunction"];
76 [label="Access variable this@R|special/anonymous|"];
77 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
78 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
79 [label="Exit function anonymousFunction"];
77 [label="Type operator: (this@R|special/anonymous| as R|A|)"];
78 [label="Access variable this@R|special/anonymous|"];
79 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
80 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
81 [label="Exit function anonymousFunction"];
}
80 [label="Call arguments union" style="filled" fillcolor=yellow];
81 [label="Postponed exit from lambda"];
82 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
83 [label="Access variable this@R|special/anonymous|"];
84 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
85 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
86 [label="Exit function anonymousFunction"];
82 [label="Call arguments union" style="filled" fillcolor=yellow];
83 [label="Postponed exit from lambda"];
84 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
85 [label="Access variable this@R|special/anonymous|"];
86 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
87 [label="Function call: this@R|special/anonymous|.R|/A.foo|()"];
88 [label="Exit function anonymousFunction"];
}
87 [label="Call arguments union" style="filled" fillcolor=yellow];
88 [label="Postponed exit from lambda"];
89 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
90 [label="Exit function anonymousFunction"];
89 [label="Call arguments union" style="filled" fillcolor=yellow];
90 [label="Postponed exit from lambda"];
91 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
92 [label="Exit function anonymousFunction"];
}
91 [label="Call arguments union" style="filled" fillcolor=yellow];
92 [label="Postponed exit from lambda"];
93 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
94 [label="Exit function test_3" style="filled" fillcolor=red];
93 [label="Call arguments union" style="filled" fillcolor=yellow];
94 [label="Postponed exit from lambda"];
95 [label="Function call: R|kotlin/with|<R|kotlin/Any|, R|kotlin/Unit|>(...)"];
96 [label="Exit function test_3" style="filled" fillcolor=red];
}
64 -> {65};
65 -> {66};
66 -> {67};
66 -> {92} [color=red];
67 -> {68};
68 -> {69};
68 -> {94} [color=red];
69 -> {70};
69 -> {88} [color=red];
70 -> {71};
71 -> {72};
71 -> {90} [color=red];
72 -> {73};
72 -> {81} [color=red];
73 -> {74};
74 -> {75};
74 -> {83} [color=red];
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {81} [color=green];
79 -> {80} [color=red];
80 -> {82} [color=red];
81 -> {82} [color=green];
82 -> {83};
83 -> {84};
79 -> {80};
80 -> {81};
81 -> {83} [color=green];
81 -> {82} [color=red];
82 -> {84} [color=red];
83 -> {84} [color=green];
84 -> {85};
85 -> {86};
86 -> {88} [color=green];
86 -> {87} [color=red];
87 -> {89} [color=red];
88 -> {89} [color=green];
89 -> {90};
90 -> {92} [color=green];
90 -> {91} [color=red];
91 -> {93} [color=red];
92 -> {93} [color=green];
93 -> {94};
86 -> {87};
87 -> {88};
88 -> {90} [color=green];
88 -> {89} [color=red];
89 -> {91} [color=red];
90 -> {91} [color=green];
91 -> {92};
92 -> {94} [color=green];
92 -> {93} [color=red];
93 -> {95} [color=red];
94 -> {95} [color=green];
95 -> {96};
subgraph cluster_21 {
color=red
95 [label="Enter function test_4" style="filled" fillcolor=red];
97 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_22 {
color=blue
96 [label="Enter when"];
98 [label="Enter when"];
subgraph cluster_23 {
color=blue
97 [label="Enter when branch condition "];
98 [label="Access variable this@R|/test_4|"];
99 [label="Type operator: (this@R|/test_4| !is R|A|)"];
100 [label="Exit when branch condition"];
99 [label="Enter when branch condition "];
100 [label="Access variable this@R|/test_4|"];
101 [label="Type operator: (this@R|/test_4| !is R|A|)"];
102 [label="Exit when branch condition"];
}
subgraph cluster_24 {
color=blue
101 [label="Enter when branch condition else"];
102 [label="Exit when branch condition"];
103 [label="Enter when branch condition else"];
104 [label="Exit when branch condition"];
}
103 [label="Enter when branch result"];
105 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
104 [label="Enter block"];
106 [label="Enter block"];
subgraph cluster_26 {
color=blue
105 [label="Enter when"];
107 [label="Enter when"];
subgraph cluster_27 {
color=blue
106 [label="Enter when branch condition "];
107 [label="Access variable this@R|/test_4|"];
108 [label="Type operator: (this@R|/test_4| !is R|B|)"];
109 [label="Exit when branch condition"];
108 [label="Enter when branch condition "];
109 [label="Access variable this@R|/test_4|"];
110 [label="Type operator: (this@R|/test_4| !is R|B|)"];
111 [label="Exit when branch condition"];
}
subgraph cluster_28 {
color=blue
110 [label="Enter when branch condition else"];
111 [label="Exit when branch condition"];
112 [label="Enter when branch condition else"];
113 [label="Exit when branch condition"];
}
112 [label="Enter when branch result"];
114 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
113 [label="Enter block"];
114 [label="Access variable this@R|/test_4|"];
115 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
116 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
117 [label="Access variable this@R|/test_4|"];
118 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
119 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
120 [label="Exit block"];
115 [label="Enter block"];
116 [label="Access variable this@R|/test_4|"];
117 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
118 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
119 [label="Access variable this@R|/test_4|"];
120 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
121 [label="Function call: this@R|/test_4|.R|/B.bar|()"];
122 [label="Exit block"];
}
121 [label="Exit when branch result"];
122 [label="Enter when branch result"];
123 [label="Exit when branch result"];
124 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
123 [label="Enter block"];
124 [label="Access variable this@R|/test_4|"];
125 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
126 [label="Function call: <Unresolved name: bar>#()"];
127 [label="Access variable this@R|/test_4|"];
128 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
129 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
130 [label="Exit block"];
125 [label="Enter block"];
126 [label="Access variable this@R|/test_4|"];
127 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
128 [label="Function call: <Unresolved name: bar>#()"];
129 [label="Access variable this@R|/test_4|"];
130 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
131 [label="Function call: this@R|/test_4|.R|/A.foo|()"];
132 [label="Exit block"];
}
131 [label="Exit when branch result"];
132 [label="Exit when"];
133 [label="Exit when branch result"];
134 [label="Exit when"];
}
133 [label="Exit block"];
135 [label="Exit block"];
}
134 [label="Exit when branch result"];
135 [label="Enter when branch result"];
136 [label="Exit when branch result"];
137 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
136 [label="Enter block"];
137 [label="Access variable this@R|/test_4|"];
138 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
139 [label="Function call: <Unresolved name: foo>#()"];
140 [label="Access variable this@R|/test_4|"];
141 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
142 [label="Function call: <Unresolved name: bar>#()"];
143 [label="Exit block"];
138 [label="Enter block"];
139 [label="Access variable this@R|/test_4|"];
140 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
141 [label="Function call: <Unresolved name: foo>#()"];
142 [label="Access variable this@R|/test_4|"];
143 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
144 [label="Function call: <Unresolved name: bar>#()"];
145 [label="Exit block"];
}
144 [label="Exit when branch result"];
145 [label="Exit when"];
146 [label="Exit when branch result"];
147 [label="Exit when"];
}
146 [label="Access variable this@R|/test_4|"];
147 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
148 [label="Function call: <Unresolved name: foo>#()"];
149 [label="Access variable this@R|/test_4|"];
150 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
151 [label="Function call: <Unresolved name: bar>#()"];
152 [label="Exit function test_4" style="filled" fillcolor=red];
148 [label="Access variable this@R|/test_4|"];
149 [label="Function call: this@R|/test_4|.<Unresolved name: foo>#()"];
150 [label="Function call: <Unresolved name: foo>#()"];
151 [label="Access variable this@R|/test_4|"];
152 [label="Function call: this@R|/test_4|.<Unresolved name: bar>#()"];
153 [label="Function call: <Unresolved name: bar>#()"];
154 [label="Exit function test_4" style="filled" fillcolor=red];
}
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {135 101};
100 -> {101};
101 -> {102};
102 -> {103};
102 -> {137 103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {122 110};
109 -> {110};
110 -> {111};
111 -> {112};
111 -> {124 112};
112 -> {113};
113 -> {114};
114 -> {115};
@@ -388,9 +390,9 @@ digraph implicitReceivers_kt {
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {132};
121 -> {122};
122 -> {123};
123 -> {124};
123 -> {134};
124 -> {125};
125 -> {126};
126 -> {127};
@@ -401,9 +403,9 @@ digraph implicitReceivers_kt {
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {145};
134 -> {135};
135 -> {136};
136 -> {137};
136 -> {147};
137 -> {138};
138 -> {139};
139 -> {140};
@@ -419,59 +421,61 @@ digraph implicitReceivers_kt {
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {154};
subgraph cluster_32 {
color=red
153 [label="Enter function test_5" style="filled" fillcolor=red];
155 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_33 {
color=blue
154 [label="Enter when"];
156 [label="Enter when"];
subgraph cluster_34 {
color=blue
155 [label="Enter when branch condition "];
156 [label="Access variable this@R|/test_5|"];
157 [label="Type operator: (this@R|/test_5| is R|kotlin/collections/List<*>|)"];
158 [label="Exit when branch condition"];
157 [label="Enter when branch condition "];
158 [label="Access variable this@R|/test_5|"];
159 [label="Type operator: (this@R|/test_5| is R|kotlin/collections/List<*>|)"];
160 [label="Exit when branch condition"];
}
subgraph cluster_35 {
color=blue
159 [label="Enter when branch condition "];
160 [label="Access variable this@R|/test_5|"];
161 [label="Type operator: (this@R|/test_5| is R|kotlin/String|)"];
162 [label="Exit when branch condition"];
161 [label="Enter when branch condition "];
162 [label="Access variable this@R|/test_5|"];
163 [label="Type operator: (this@R|/test_5| is R|kotlin/String|)"];
164 [label="Exit when branch condition"];
}
subgraph cluster_36 {
color=blue
163 [label="Enter when branch condition else"];
164 [label="Exit when branch condition"];
165 [label="Enter when branch condition else"];
166 [label="Exit when branch condition"];
}
165 [label="Enter when branch result"];
167 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
166 [label="Enter block"];
167 [label="Const: Int(0)"];
168 [label="Exit block"];
168 [label="Enter block"];
169 [label="Const: Int(0)"];
170 [label="Exit block"];
}
169 [label="Exit when branch result"];
170 [label="Enter when branch result"];
171 [label="Exit when branch result"];
172 [label="Enter when branch result"];
subgraph cluster_38 {
color=blue
171 [label="Enter block"];
172 [label="Access variable R|kotlin/String.length|"];
173 [label="Exit block"];
173 [label="Enter block"];
174 [label="Access variable R|kotlin/String.length|"];
175 [label="Exit block"];
}
174 [label="Exit when branch result"];
175 [label="Enter when branch result"];
176 [label="Exit when branch result"];
177 [label="Enter when branch result"];
subgraph cluster_39 {
color=blue
176 [label="Enter block"];
177 [label="Access variable R|kotlin/collections/List.size|"];
178 [label="Exit block"];
178 [label="Enter block"];
179 [label="Access variable R|kotlin/collections/List.size|"];
180 [label="Exit block"];
}
179 [label="Exit when branch result"];
180 [label="Exit when"];
181 [label="Exit when branch result"];
182 [label="Exit when"];
}
181 [label="Jump: ^test_5 when () {
183 [label="Jump: ^test_5 when () {
(this@R|/test_5| is R|kotlin/collections/List<*>|) -> {
this@R|/test_5|.R|kotlin/collections/List.size|
}
@@ -483,60 +487,60 @@ digraph implicitReceivers_kt {
}
}
"];
182 [label="Stub" style="filled" fillcolor=gray];
183 [label="Exit function test_5" style="filled" fillcolor=red];
184 [label="Stub" style="filled" fillcolor=gray];
185 [label="Exit function test_5" style="filled" fillcolor=red];
}
153 -> {154};
154 -> {155};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {175 159};
158 -> {159};
159 -> {160};
160 -> {161};
160 -> {177 161};
161 -> {162};
162 -> {170 163};
162 -> {163};
163 -> {164};
164 -> {165};
164 -> {172 165};
165 -> {166};
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {180};
169 -> {170};
170 -> {171};
171 -> {172};
171 -> {182};
172 -> {173};
173 -> {174};
174 -> {180};
174 -> {175};
175 -> {176};
176 -> {177};
176 -> {182};
177 -> {178};
178 -> {179};
179 -> {180};
180 -> {181};
181 -> {183};
181 -> {182} [style=dotted];
182 -> {183} [style=dotted];
181 -> {182};
182 -> {183};
183 -> {185};
183 -> {184} [style=dotted];
184 -> {185} [style=dotted];
subgraph cluster_40 {
color=red
184 [label="Enter function test_6" style="filled" fillcolor=red];
185 [label="Access variable this@R|/test_6|"];
186 [label="Type operator: (this@R|/test_6| as R|kotlin/collections/List<*>|)"];
187 [label="Access variable R|kotlin/collections/List.size|"];
188 [label="Access variable this@R|/test_6|"];
189 [label="Type operator: (this@R|/test_6| as R|kotlin/String|)"];
190 [label="Access variable R|kotlin/String.length|"];
191 [label="Exit function test_6" style="filled" fillcolor=red];
186 [label="Enter function test_6" style="filled" fillcolor=red];
187 [label="Access variable this@R|/test_6|"];
188 [label="Type operator: (this@R|/test_6| as R|kotlin/collections/List<*>|)"];
189 [label="Access variable R|kotlin/collections/List.size|"];
190 [label="Access variable this@R|/test_6|"];
191 [label="Type operator: (this@R|/test_6| as R|kotlin/String|)"];
192 [label="Access variable R|kotlin/String.length|"];
193 [label="Exit function test_6" style="filled" fillcolor=red];
}
184 -> {185};
185 -> {186};
186 -> {187};
187 -> {188};
188 -> {189};
189 -> {190};
190 -> {191};
191 -> {192};
192 -> {193};
}
@@ -6,89 +6,90 @@ digraph assignSafeCall_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Const: Int(1)"];
4 [label="Jump: ^foo Int(1)"];
5 [label="Stub" style="filled" fillcolor=gray];
6 [label="Exit function foo" style="filled" fillcolor=red];
3 [label="Enter function foo" style="filled" fillcolor=red];
4 [label="Const: Int(1)"];
5 [label="Jump: ^foo Int(1)"];
6 [label="Stub" style="filled" fillcolor=gray];
7 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {6};
4 -> {5} [style=dotted];
4 -> {5};
5 -> {7};
5 -> {6} [style=dotted];
6 -> {7} [style=dotted];
subgraph cluster_2 {
color=red
7 [label="Enter function getter" style="filled" fillcolor=red];
8 [label="Exit function getter" style="filled" fillcolor=red];
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red];
}
7 -> {8};
8 -> {9};
subgraph cluster_3 {
color=red
9 [label="Enter property" style="filled" fillcolor=red];
10 [label="Const: Int(1)"];
11 [label="Exit property" style="filled" fillcolor=red];
10 [label="Enter property" style="filled" fillcolor=red];
11 [label="Const: Int(1)"];
12 [label="Exit property" style="filled" fillcolor=red];
}
9 -> {10};
10 -> {11};
11 -> {12};
subgraph cluster_4 {
color=red
12 [label="Enter function bar" style="filled" fillcolor=red];
13 [label="Exit function bar" style="filled" fillcolor=red];
13 [label="Enter function bar" style="filled" fillcolor=red];
14 [label="Exit function bar" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14};
subgraph cluster_5 {
color=red
14 [label="Enter function test_1" style="filled" fillcolor=red];
15 [label="Access variable R|<local>/a|"];
16 [label="Enter safe call"];
17 [label="Access variable R|/A.x|"];
18 [label="Exit safe call"];
19 [label="Variable declaration: lval x: R|kotlin/Int?|"];
15 [label="Enter function test_1" style="filled" fillcolor=red];
16 [label="Access variable R|<local>/a|"];
17 [label="Enter safe call"];
18 [label="Access variable R|/A.x|"];
19 [label="Exit safe call"];
20 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_6 {
color=blue
20 [label="Enter when"];
21 [label="Enter when"];
subgraph cluster_7 {
color=blue
21 [label="Enter when branch condition "];
22 [label="Access variable R|<local>/x|"];
23 [label="Const: Null(null)"];
24 [label="Operator !="];
25 [label="Exit when branch condition"];
22 [label="Enter when branch condition "];
23 [label="Access variable R|<local>/x|"];
24 [label="Const: Null(null)"];
25 [label="Operator !="];
26 [label="Exit when branch condition"];
}
26 [label="Synthetic else branch"];
27 [label="Enter when branch result"];
27 [label="Synthetic else branch"];
28 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
28 [label="Enter block"];
29 [label="Access variable R|<local>/a|"];
30 [label="Function call: R|<local>/a|.R|/A.bar|()"];
31 [label="Exit block"];
29 [label="Enter block"];
30 [label="Access variable R|<local>/a|"];
31 [label="Function call: R|<local>/a|.R|/A.bar|()"];
32 [label="Exit block"];
}
32 [label="Exit when branch result"];
33 [label="Exit when"];
33 [label="Exit when branch result"];
34 [label="Exit when"];
}
34 [label="Exit function test_1" style="filled" fillcolor=red];
35 [label="Exit function test_1" style="filled" fillcolor=red];
}
14 -> {15};
15 -> {16 18};
16 -> {17};
15 -> {16};
16 -> {17 19};
17 -> {18};
18 -> {19};
19 -> {20};
@@ -97,53 +98,53 @@ digraph assignSafeCall_kt {
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {27 26};
26 -> {33};
27 -> {28};
25 -> {26};
26 -> {28 27};
27 -> {34};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
subgraph cluster_9 {
color=red
35 [label="Enter function test_2" style="filled" fillcolor=red];
36 [label="Access variable R|<local>/a|"];
37 [label="Enter safe call"];
38 [label="Function call: R|<local>/a|?.R|/A.foo|()"];
39 [label="Exit safe call"];
40 [label="Variable declaration: lval x: R|kotlin/Int?|"];
36 [label="Enter function test_2" style="filled" fillcolor=red];
37 [label="Access variable R|<local>/a|"];
38 [label="Enter safe call"];
39 [label="Function call: R|<local>/a|?.R|/A.foo|()"];
40 [label="Exit safe call"];
41 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_10 {
color=blue
41 [label="Enter when"];
42 [label="Enter when"];
subgraph cluster_11 {
color=blue
42 [label="Enter when branch condition "];
43 [label="Access variable R|<local>/x|"];
44 [label="Const: Null(null)"];
45 [label="Operator !="];
46 [label="Exit when branch condition"];
43 [label="Enter when branch condition "];
44 [label="Access variable R|<local>/x|"];
45 [label="Const: Null(null)"];
46 [label="Operator !="];
47 [label="Exit when branch condition"];
}
47 [label="Synthetic else branch"];
48 [label="Enter when branch result"];
48 [label="Synthetic else branch"];
49 [label="Enter when branch result"];
subgraph cluster_12 {
color=blue
49 [label="Enter block"];
50 [label="Access variable R|<local>/a|"];
51 [label="Function call: R|<local>/a|.R|/A.bar|()"];
52 [label="Exit block"];
50 [label="Enter block"];
51 [label="Access variable R|<local>/a|"];
52 [label="Function call: R|<local>/a|.R|/A.bar|()"];
53 [label="Exit block"];
}
53 [label="Exit when branch result"];
54 [label="Exit when"];
54 [label="Exit when branch result"];
55 [label="Exit when"];
}
55 [label="Exit function test_2" style="filled" fillcolor=red];
56 [label="Exit function test_2" style="filled" fillcolor=red];
}
35 -> {36};
36 -> {37 39};
37 -> {38};
36 -> {37};
37 -> {38 40};
38 -> {39};
39 -> {40};
40 -> {41};
@@ -152,65 +153,65 @@ digraph assignSafeCall_kt {
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {48 47};
47 -> {54};
48 -> {49};
46 -> {47};
47 -> {49 48};
48 -> {55};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
subgraph cluster_13 {
color=red
56 [label="Enter function test_3" style="filled" fillcolor=red];
57 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
57 [label="Enter when"];
58 [label="Access variable R|<local>/x|"];
59 [label="Type operator: (R|<local>/x| as? R|A|)"];
60 [label="Variable declaration: lval <elvis>: R|A?|"];
58 [label="Enter when"];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: (R|<local>/x| as? R|A|)"];
61 [label="Variable declaration: lval <elvis>: R|A?|"];
subgraph cluster_15 {
color=blue
61 [label="Enter when branch condition "];
62 [label="Const: Null(null)"];
63 [label="Operator =="];
64 [label="Exit when branch condition"];
62 [label="Enter when branch condition "];
63 [label="Const: Null(null)"];
64 [label="Operator =="];
65 [label="Exit when branch condition"];
}
subgraph cluster_16 {
color=blue
65 [label="Enter when branch condition else"];
66 [label="Exit when branch condition"];
66 [label="Enter when branch condition else"];
67 [label="Exit when branch condition"];
}
67 [label="Enter when branch result"];
68 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
68 [label="Enter block"];
69 [label="Access variable R|<local>/<elvis>|"];
70 [label="Exit block"];
69 [label="Enter block"];
70 [label="Access variable R|<local>/<elvis>|"];
71 [label="Exit block"];
}
71 [label="Exit when branch result"];
72 [label="Enter when branch result"];
72 [label="Exit when branch result"];
73 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
73 [label="Enter block"];
74 [label="Jump: ^test_3 Unit"];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
74 [label="Enter block"];
75 [label="Jump: ^test_3 Unit"];
76 [label="Stub" style="filled" fillcolor=gray];
77 [label="Exit block" style="filled" fillcolor=gray];
}
77 [label="Exit when branch result" style="filled" fillcolor=gray];
78 [label="Exit when"];
78 [label="Exit when branch result" style="filled" fillcolor=gray];
79 [label="Exit when"];
}
79 [label="Variable declaration: lval a: R|A|"];
80 [label="Access variable R|<local>/a|"];
81 [label="Function call: R|<local>/a|.R|/A.foo|()"];
82 [label="Access variable R|<local>/x|"];
83 [label="Function call: R|<local>/x|.R|/A.foo|()"];
84 [label="Exit function test_3" style="filled" fillcolor=red];
80 [label="Variable declaration: lval a: R|A|"];
81 [label="Access variable R|<local>/a|"];
82 [label="Function call: R|<local>/a|.R|/A.foo|()"];
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|/A.foo|()"];
85 [label="Exit function test_3" style="filled" fillcolor=red];
}
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
@@ -218,97 +219,97 @@ digraph assignSafeCall_kt {
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {72 65};
65 -> {66};
64 -> {65};
65 -> {73 66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {78};
72 -> {73};
71 -> {72};
72 -> {79};
73 -> {74};
74 -> {84};
74 -> {75} [style=dotted];
74 -> {75};
75 -> {85};
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79};
78 -> {79} [style=dotted];
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
subgraph cluster_19 {
color=red
85 [label="Enter function foo" style="filled" fillcolor=red];
86 [label="Exit function foo" style="filled" fillcolor=red];
86 [label="Enter function foo" style="filled" fillcolor=red];
87 [label="Exit function foo" style="filled" fillcolor=red];
}
85 -> {86};
86 -> {87};
subgraph cluster_20 {
color=red
87 [label="Enter function getter" style="filled" fillcolor=red];
88 [label="Exit function getter" style="filled" fillcolor=red];
88 [label="Enter function getter" style="filled" fillcolor=red];
89 [label="Exit function getter" style="filled" fillcolor=red];
}
87 -> {88};
88 -> {89};
subgraph cluster_21 {
color=red
89 [label="Enter property" style="filled" fillcolor=red];
90 [label="Exit property" style="filled" fillcolor=red];
90 [label="Enter property" style="filled" fillcolor=red];
91 [label="Exit property" style="filled" fillcolor=red];
}
89 -> {90};
90 -> {91};
subgraph cluster_22 {
color=red
91 [label="Enter function bar" style="filled" fillcolor=red];
92 [label="Exit function bar" style="filled" fillcolor=red];
92 [label="Enter function bar" style="filled" fillcolor=red];
93 [label="Exit function bar" style="filled" fillcolor=red];
}
91 -> {92};
92 -> {93};
subgraph cluster_23 {
color=red
93 [label="Enter function test_1" style="filled" fillcolor=red];
94 [label="Access variable R|<local>/a|"];
95 [label="Enter safe call"];
96 [label="Access variable R|/B.x|"];
97 [label="Exit safe call"];
98 [label="Variable declaration: lval x: R|kotlin/Int?|"];
94 [label="Enter function test_1" style="filled" fillcolor=red];
95 [label="Access variable R|<local>/a|"];
96 [label="Enter safe call"];
97 [label="Access variable R|/B.x|"];
98 [label="Exit safe call"];
99 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_24 {
color=blue
99 [label="Enter when"];
100 [label="Enter when"];
subgraph cluster_25 {
color=blue
100 [label="Enter when branch condition "];
101 [label="Access variable R|<local>/x|"];
102 [label="Const: Null(null)"];
103 [label="Operator !="];
104 [label="Exit when branch condition"];
101 [label="Enter when branch condition "];
102 [label="Access variable R|<local>/x|"];
103 [label="Const: Null(null)"];
104 [label="Operator !="];
105 [label="Exit when branch condition"];
}
105 [label="Synthetic else branch"];
106 [label="Enter when branch result"];
106 [label="Synthetic else branch"];
107 [label="Enter when branch result"];
subgraph cluster_26 {
color=blue
107 [label="Enter block"];
108 [label="Access variable R|<local>/a|"];
109 [label="Function call: R|<local>/a|.R|/B.bar|()"];
110 [label="Exit block"];
108 [label="Enter block"];
109 [label="Access variable R|<local>/a|"];
110 [label="Function call: R|<local>/a|.R|/B.bar|()"];
111 [label="Exit block"];
}
111 [label="Exit when branch result"];
112 [label="Exit when"];
112 [label="Exit when branch result"];
113 [label="Exit when"];
}
113 [label="Exit function test_1" style="filled" fillcolor=red];
114 [label="Exit function test_1" style="filled" fillcolor=red];
}
93 -> {94};
94 -> {95 97};
95 -> {96};
94 -> {95};
95 -> {96 98};
96 -> {97};
97 -> {98};
98 -> {99};
@@ -317,53 +318,53 @@ digraph assignSafeCall_kt {
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {106 105};
105 -> {112};
106 -> {107};
104 -> {105};
105 -> {107 106};
106 -> {113};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
subgraph cluster_27 {
color=red
114 [label="Enter function test_2" style="filled" fillcolor=red];
115 [label="Access variable R|<local>/a|"];
116 [label="Enter safe call"];
117 [label="Function call: R|<local>/a|?.R|/B.foo|()"];
118 [label="Exit safe call"];
119 [label="Variable declaration: lval x: R|kotlin/Int?|"];
115 [label="Enter function test_2" style="filled" fillcolor=red];
116 [label="Access variable R|<local>/a|"];
117 [label="Enter safe call"];
118 [label="Function call: R|<local>/a|?.R|/B.foo|()"];
119 [label="Exit safe call"];
120 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_28 {
color=blue
120 [label="Enter when"];
121 [label="Enter when"];
subgraph cluster_29 {
color=blue
121 [label="Enter when branch condition "];
122 [label="Access variable R|<local>/x|"];
123 [label="Const: Null(null)"];
124 [label="Operator !="];
125 [label="Exit when branch condition"];
122 [label="Enter when branch condition "];
123 [label="Access variable R|<local>/x|"];
124 [label="Const: Null(null)"];
125 [label="Operator !="];
126 [label="Exit when branch condition"];
}
126 [label="Synthetic else branch"];
127 [label="Enter when branch result"];
127 [label="Synthetic else branch"];
128 [label="Enter when branch result"];
subgraph cluster_30 {
color=blue
128 [label="Enter block"];
129 [label="Access variable R|<local>/a|"];
130 [label="Function call: R|<local>/a|.R|/B.bar|()"];
131 [label="Exit block"];
129 [label="Enter block"];
130 [label="Access variable R|<local>/a|"];
131 [label="Function call: R|<local>/a|.R|/B.bar|()"];
132 [label="Exit block"];
}
132 [label="Exit when branch result"];
133 [label="Exit when"];
133 [label="Exit when branch result"];
134 [label="Exit when"];
}
134 [label="Exit function test_2" style="filled" fillcolor=red];
135 [label="Exit function test_2" style="filled" fillcolor=red];
}
114 -> {115};
115 -> {116 118};
116 -> {117};
115 -> {116};
116 -> {117 119};
117 -> {118};
118 -> {119};
119 -> {120};
@@ -372,65 +373,65 @@ digraph assignSafeCall_kt {
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {127 126};
126 -> {133};
127 -> {128};
125 -> {126};
126 -> {128 127};
127 -> {134};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
134 -> {135};
subgraph cluster_31 {
color=red
135 [label="Enter function test_3" style="filled" fillcolor=red];
136 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_32 {
color=blue
136 [label="Enter when"];
137 [label="Access variable R|<local>/x|"];
138 [label="Type operator: (R|<local>/x| as? R|B|)"];
139 [label="Variable declaration: lval <elvis>: R|B?|"];
137 [label="Enter when"];
138 [label="Access variable R|<local>/x|"];
139 [label="Type operator: (R|<local>/x| as? R|B|)"];
140 [label="Variable declaration: lval <elvis>: R|B?|"];
subgraph cluster_33 {
color=blue
140 [label="Enter when branch condition "];
141 [label="Const: Null(null)"];
142 [label="Operator =="];
143 [label="Exit when branch condition"];
141 [label="Enter when branch condition "];
142 [label="Const: Null(null)"];
143 [label="Operator =="];
144 [label="Exit when branch condition"];
}
subgraph cluster_34 {
color=blue
144 [label="Enter when branch condition else"];
145 [label="Exit when branch condition"];
145 [label="Enter when branch condition else"];
146 [label="Exit when branch condition"];
}
146 [label="Enter when branch result"];
147 [label="Enter when branch result"];
subgraph cluster_35 {
color=blue
147 [label="Enter block"];
148 [label="Access variable R|<local>/<elvis>|"];
149 [label="Exit block"];
148 [label="Enter block"];
149 [label="Access variable R|<local>/<elvis>|"];
150 [label="Exit block"];
}
150 [label="Exit when branch result"];
151 [label="Enter when branch result"];
151 [label="Exit when branch result"];
152 [label="Enter when branch result"];
subgraph cluster_36 {
color=blue
152 [label="Enter block"];
153 [label="Jump: ^test_3 Unit"];
154 [label="Stub" style="filled" fillcolor=gray];
155 [label="Exit block" style="filled" fillcolor=gray];
153 [label="Enter block"];
154 [label="Jump: ^test_3 Unit"];
155 [label="Stub" style="filled" fillcolor=gray];
156 [label="Exit block" style="filled" fillcolor=gray];
}
156 [label="Exit when branch result" style="filled" fillcolor=gray];
157 [label="Exit when"];
157 [label="Exit when branch result" style="filled" fillcolor=gray];
158 [label="Exit when"];
}
158 [label="Variable declaration: lval a: R|B|"];
159 [label="Access variable R|<local>/a|"];
160 [label="Function call: R|<local>/a|.R|/B.foo|()"];
161 [label="Access variable R|<local>/x|"];
162 [label="Function call: R|<local>/x|.R|/B.foo|()"];
163 [label="Exit function test_3" style="filled" fillcolor=red];
159 [label="Variable declaration: lval a: R|B|"];
160 [label="Access variable R|<local>/a|"];
161 [label="Function call: R|<local>/a|.R|/B.foo|()"];
162 [label="Access variable R|<local>/x|"];
163 [label="Function call: R|<local>/x|.R|/B.foo|()"];
164 [label="Exit function test_3" style="filled" fillcolor=red];
}
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
@@ -438,26 +439,27 @@ digraph assignSafeCall_kt {
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {151 144};
144 -> {145};
143 -> {144};
144 -> {152 145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {157};
151 -> {152};
150 -> {151};
151 -> {158};
152 -> {153};
153 -> {163};
153 -> {154} [style=dotted];
153 -> {154};
154 -> {164};
154 -> {155} [style=dotted];
155 -> {156} [style=dotted];
156 -> {157} [style=dotted];
157 -> {158};
157 -> {158} [style=dotted];
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
162 -> {163};
163 -> {164};
}
@@ -31,25 +31,27 @@ digraph smartCastInInit_kt {
subgraph cluster_2 {
color=red
8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Exit function <init>" style="filled" fillcolor=red];
9 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
10 [label="Exit function <init>" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
subgraph cluster_3 {
color=red
10 [label="Enter function getter" style="filled" fillcolor=red];
11 [label="Exit function getter" style="filled" fillcolor=red];
11 [label="Enter function getter" style="filled" fillcolor=red];
12 [label="Exit function getter" style="filled" fillcolor=red];
}
10 -> {11};
11 -> {12};
subgraph cluster_4 {
color=red
12 [label="Enter property" style="filled" fillcolor=red];
13 [label="Exit property" style="filled" fillcolor=red];
13 [label="Enter property" style="filled" fillcolor=red];
14 [label="Exit property" style="filled" fillcolor=red];
}
12 -> {13};
13 -> {14};
}
@@ -103,125 +103,126 @@ digraph smartcastToNothing_kt {
subgraph cluster_7 {
color=red
32 [label="Enter function <init>" style="filled" fillcolor=red];
33 [label="Exit function <init>" style="filled" fillcolor=red];
33 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
34 [label="Exit function <init>" style="filled" fillcolor=red];
}
32 -> {33};
33 -> {34};
subgraph cluster_8 {
color=red
34 [label="Enter function getter" style="filled" fillcolor=red];
35 [label="Exit function getter" style="filled" fillcolor=red];
35 [label="Enter function getter" style="filled" fillcolor=red];
36 [label="Exit function getter" style="filled" fillcolor=red];
}
34 -> {35};
35 -> {36};
subgraph cluster_9 {
color=red
36 [label="Enter property" style="filled" fillcolor=red];
37 [label="Const: Int(1)"];
38 [label="Exit property" style="filled" fillcolor=red];
37 [label="Enter property" style="filled" fillcolor=red];
38 [label="Const: Int(1)"];
39 [label="Exit property" style="filled" fillcolor=red];
}
36 -> {37};
37 -> {38};
38 -> {39};
subgraph cluster_10 {
color=red
39 [label="Enter function getter" style="filled" fillcolor=red];
40 [label="Exit function getter" style="filled" fillcolor=red];
40 [label="Enter function getter" style="filled" fillcolor=red];
41 [label="Exit function getter" style="filled" fillcolor=red];
}
39 -> {40};
40 -> {41};
subgraph cluster_11 {
color=red
41 [label="Enter property" style="filled" fillcolor=red];
42 [label="Const: Boolean(true)"];
43 [label="Exit property" style="filled" fillcolor=red];
42 [label="Enter property" style="filled" fillcolor=red];
43 [label="Const: Boolean(true)"];
44 [label="Exit property" style="filled" fillcolor=red];
}
41 -> {42};
42 -> {43};
43 -> {44};
subgraph cluster_12 {
color=red
44 [label="Enter function test_0" style="filled" fillcolor=red];
45 [label="Const: Null(null)"];
46 [label="Variable declaration: lvar s: R|A?|"];
47 [label="Access variable R|<local>/results|"];
48 [label="Function call: R|<local>/results|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Nothing>|>|()"];
49 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Nothing>|"];
45 [label="Enter function test_0" style="filled" fillcolor=red];
46 [label="Const: Null(null)"];
47 [label="Variable declaration: lvar s: R|A?|"];
48 [label="Access variable R|<local>/results|"];
49 [label="Function call: R|<local>/results|.R|FakeOverride<kotlin/collections/List.iterator: R|kotlin/collections/Iterator<kotlin/Nothing>|>|()"];
50 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Nothing>|"];
subgraph cluster_13 {
color=blue
50 [label="Enter while loop"];
51 [label="Enter while loop"];
subgraph cluster_14 {
color=blue
51 [label="Enter loop condition"];
52 [label="Access variable R|<local>/<iterator>|"];
53 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
54 [label="Exit loop condition"];
52 [label="Enter loop condition"];
53 [label="Access variable R|<local>/<iterator>|"];
54 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
55 [label="Exit loop condition"];
}
subgraph cluster_15 {
color=blue
55 [label="Enter loop block"];
56 [label="Enter loop block"];
subgraph cluster_16 {
color=blue
56 [label="Enter block"];
57 [label="Access variable R|<local>/<iterator>|"];
58 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Nothing|>|()"];
59 [label="Stub" style="filled" fillcolor=gray];
60 [label="Variable declaration: lval result: R|kotlin/Nothing|" style="filled" fillcolor=gray];
61 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
62 [label="Stub" style="filled" fillcolor=gray];
63 [label="Assignmenet: R|<local>/s|" style="filled" fillcolor=gray];
57 [label="Enter block"];
58 [label="Access variable R|<local>/<iterator>|"];
59 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Nothing|>|()"];
60 [label="Stub" style="filled" fillcolor=gray];
61 [label="Variable declaration: lval result: R|kotlin/Nothing|" style="filled" fillcolor=gray];
62 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
63 [label="Stub" style="filled" fillcolor=gray];
64 [label="Assignmenet: R|<local>/s|" style="filled" fillcolor=gray];
subgraph cluster_17 {
color=blue
64 [label="Enter when" style="filled" fillcolor=gray];
65 [label="Enter when" style="filled" fillcolor=gray];
subgraph cluster_18 {
color=blue
65 [label="Enter when branch condition " style="filled" fillcolor=gray];
66 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
67 [label="Stub" style="filled" fillcolor=gray];
68 [label="Access variable <Unresolved name: b>#" style="filled" fillcolor=gray];
69 [label="Exit when branch condition" style="filled" fillcolor=gray];
66 [label="Enter when branch condition " style="filled" fillcolor=gray];
67 [label="Access variable R|<local>/result|" style="filled" fillcolor=gray];
68 [label="Stub" style="filled" fillcolor=gray];
69 [label="Access variable <Unresolved name: b>#" style="filled" fillcolor=gray];
70 [label="Exit when branch condition" style="filled" fillcolor=gray];
}
70 [label="Synthetic else branch" style="filled" fillcolor=gray];
71 [label="Enter when branch result" style="filled" fillcolor=gray];
71 [label="Synthetic else branch" style="filled" fillcolor=gray];
72 [label="Enter when branch result" style="filled" fillcolor=gray];
subgraph cluster_19 {
color=blue
72 [label="Enter block" style="filled" fillcolor=gray];
73 [label="Jump: break@@@[R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()] " style="filled" fillcolor=gray];
74 [label="Stub" style="filled" fillcolor=gray];
75 [label="Exit block" style="filled" fillcolor=gray];
73 [label="Enter block" style="filled" fillcolor=gray];
74 [label="Jump: break@@@[R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()] " style="filled" fillcolor=gray];
75 [label="Stub" style="filled" fillcolor=gray];
76 [label="Exit block" style="filled" fillcolor=gray];
}
76 [label="Exit when branch result" style="filled" fillcolor=gray];
77 [label="Exit when" style="filled" fillcolor=gray];
77 [label="Exit when branch result" style="filled" fillcolor=gray];
78 [label="Exit when" style="filled" fillcolor=gray];
}
78 [label="Exit block" style="filled" fillcolor=gray];
79 [label="Exit block" style="filled" fillcolor=gray];
}
79 [label="Exit loop block" style="filled" fillcolor=gray];
80 [label="Exit loop block" style="filled" fillcolor=gray];
}
80 [label="Exit whileloop"];
81 [label="Exit whileloop"];
}
81 [label="Access variable R|<local>/s|"];
82 [label="Enter safe call"];
83 [label="Postponed enter to lambda"];
82 [label="Access variable R|<local>/s|"];
83 [label="Enter safe call"];
84 [label="Postponed enter to lambda"];
subgraph cluster_20 {
color=blue
84 [label="Enter function anonymousFunction"];
85 [label="Access variable R|<local>/it|"];
86 [label="Access variable R|/A.a|"];
87 [label="Exit function anonymousFunction"];
85 [label="Enter function anonymousFunction"];
86 [label="Access variable R|<local>/it|"];
87 [label="Access variable R|/A.a|"];
88 [label="Exit function anonymousFunction"];
}
88 [label="Call arguments union" style="filled" fillcolor=yellow];
89 [label="Postponed exit from lambda"];
90 [label="Function call: R|<local>/s|?.R|kotlin/let|<R|A|, R|kotlin/Int|>(...)"];
91 [label="Exit safe call"];
92 [label="Exit function test_0" style="filled" fillcolor=red];
89 [label="Call arguments union" style="filled" fillcolor=yellow];
90 [label="Postponed exit from lambda"];
91 [label="Function call: R|<local>/s|?.R|kotlin/let|<R|A|, R|kotlin/Int|>(...)"];
92 [label="Exit safe call"];
93 [label="Exit function test_0" style="filled" fillcolor=red];
}
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
@@ -231,46 +232,47 @@ digraph smartcastToNothing_kt {
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {80 55};
55 -> {56};
54 -> {55};
55 -> {81 56};
56 -> {57};
57 -> {58};
58 -> {92};
58 -> {59} [style=dotted];
58 -> {59};
59 -> {93};
59 -> {60} [style=dotted];
60 -> {61} [style=dotted];
61 -> {92 62} [style=dotted];
62 -> {63} [style=dotted];
61 -> {62} [style=dotted];
62 -> {93 63} [style=dotted];
63 -> {64} [style=dotted];
64 -> {65} [style=dotted];
65 -> {66} [style=dotted];
66 -> {92 67} [style=dotted];
67 -> {68} [style=dotted];
66 -> {67} [style=dotted];
67 -> {93 68} [style=dotted];
68 -> {69} [style=dotted];
69 -> {71 70} [style=dotted];
70 -> {77} [style=dotted];
71 -> {72} [style=dotted];
69 -> {70} [style=dotted];
70 -> {72 71} [style=dotted];
71 -> {78} [style=dotted];
72 -> {73} [style=dotted];
73 -> {80 74} [style=dotted];
74 -> {75} [style=dotted];
73 -> {74} [style=dotted];
74 -> {81 75} [style=dotted];
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {51} [style=dotted];
80 -> {81};
81 -> {82 91};
82 -> {83};
79 -> {80} [style=dotted];
80 -> {52} [style=dotted];
81 -> {82};
82 -> {83 92};
83 -> {84};
83 -> {89} [color=red];
84 -> {85};
84 -> {90} [color=red];
85 -> {86};
86 -> {87};
87 -> {89} [color=green];
87 -> {88} [color=red];
88 -> {90} [color=red];
89 -> {90} [color=green];
90 -> {91};
91 -> {92} [style=dotted];
87 -> {88};
88 -> {90} [color=green];
88 -> {89} [color=red];
89 -> {91} [color=red];
90 -> {91} [color=green];
91 -> {92};
92 -> {93} [style=dotted];
}
@@ -6,127 +6,131 @@ digraph overridenOpenVal_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit function getter" style="filled" fillcolor=red];
3 [label="Enter function getter" style="filled" fillcolor=red];
4 [label="Exit function getter" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
subgraph cluster_2 {
color=red
4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/x|"];
6 [label="Exit property" style="filled" fillcolor=red];
5 [label="Enter property" style="filled" fillcolor=red];
6 [label="Access variable R|<local>/x|"];
7 [label="Exit property" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
6 -> {7};
subgraph cluster_3 {
color=red
7 [label="Enter function <init>" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/x|"];
9 [label="Exit function <init>" style="filled" fillcolor=red];
8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Access variable R|<local>/x|"];
10 [label="Delegated constructor call: super<R|A|>(...)"];
11 [label="Exit function <init>" style="filled" fillcolor=red];
}
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
subgraph cluster_4 {
color=red
10 [label="Enter function test_1" style="filled" fillcolor=red];
12 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
11 [label="Enter when"];
13 [label="Enter when"];
subgraph cluster_6 {
color=blue
12 [label="Enter when branch condition "];
13 [label="Access variable R|/A.x|"];
14 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
15 [label="Exit when branch condition"];
14 [label="Enter when branch condition "];
15 [label="Access variable R|/A.x|"];
16 [label="Type operator: (this@R|/B|.R|/A.x| is R|kotlin/String|)"];
17 [label="Exit when branch condition"];
}
16 [label="Synthetic else branch"];
17 [label="Enter when branch result"];
18 [label="Synthetic else branch"];
19 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
18 [label="Enter block"];
19 [label="Access variable R|/A.x|"];
20 [label="Access variable R|kotlin/String.length|"];
21 [label="Exit block"];
20 [label="Enter block"];
21 [label="Access variable R|/A.x|"];
22 [label="Access variable R|kotlin/String.length|"];
23 [label="Exit block"];
}
22 [label="Exit when branch result"];
23 [label="Exit when"];
24 [label="Exit when branch result"];
25 [label="Exit when"];
}
24 [label="Exit function test_1" style="filled" fillcolor=red];
26 [label="Exit function test_1" style="filled" fillcolor=red];
}
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {17 16};
16 -> {23};
17 -> {18};
18 -> {19};
15 -> {16};
16 -> {17};
17 -> {19 18};
18 -> {25};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
subgraph cluster_8 {
color=red
25 [label="Enter function test_2" style="filled" fillcolor=red];
27 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
26 [label="Enter when"];
28 [label="Enter when"];
subgraph cluster_10 {
color=blue
27 [label="Enter when branch condition "];
28 [label="Access variable R|<local>/b|"];
29 [label="Access variable R|/A.x|"];
30 [label="Type operator: (R|<local>/b|.R|/A.x| is R|kotlin/String|)"];
31 [label="Exit when branch condition"];
29 [label="Enter when branch condition "];
30 [label="Access variable R|<local>/b|"];
31 [label="Access variable R|/A.x|"];
32 [label="Type operator: (R|<local>/b|.R|/A.x| is R|kotlin/String|)"];
33 [label="Exit when branch condition"];
}
32 [label="Synthetic else branch"];
33 [label="Enter when branch result"];
34 [label="Synthetic else branch"];
35 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
34 [label="Enter block"];
35 [label="Access variable R|<local>/b|"];
36 [label="Access variable R|/A.x|"];
37 [label="Access variable R|kotlin/String.length|"];
38 [label="Exit block"];
36 [label="Enter block"];
37 [label="Access variable R|<local>/b|"];
38 [label="Access variable R|/A.x|"];
39 [label="Access variable R|kotlin/String.length|"];
40 [label="Exit block"];
}
39 [label="Exit when branch result"];
40 [label="Exit when"];
41 [label="Exit when branch result"];
42 [label="Exit when"];
}
41 [label="Exit function test_2" style="filled" fillcolor=red];
43 [label="Exit function test_2" style="filled" fillcolor=red];
}
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {33 32};
32 -> {40};
33 -> {34};
34 -> {35};
31 -> {32};
32 -> {33};
33 -> {35 34};
34 -> {42};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
}
@@ -6,79 +6,80 @@ digraph delayedAssignment_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
3 [label="Enter function foo" style="filled" fillcolor=red];
4 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
subgraph cluster_2 {
color=red
4 [label="Enter function test" style="filled" fillcolor=red];
5 [label="Variable declaration: lval a: R|A?|"];
5 [label="Enter function test" style="filled" fillcolor=red];
6 [label="Variable declaration: lval a: R|A?|"];
subgraph cluster_3 {
color=blue
6 [label="Enter when"];
7 [label="Enter when"];
subgraph cluster_4 {
color=blue
7 [label="Enter when branch condition "];
8 [label="Access variable R|<local>/b|"];
9 [label="Exit when branch condition"];
8 [label="Enter when branch condition "];
9 [label="Access variable R|<local>/b|"];
10 [label="Exit when branch condition"];
}
subgraph cluster_5 {
color=blue
10 [label="Enter when branch condition else"];
11 [label="Exit when branch condition"];
11 [label="Enter when branch condition else"];
12 [label="Exit when branch condition"];
}
12 [label="Enter when branch result"];
13 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
13 [label="Enter block"];
14 [label="Const: Null(null)"];
15 [label="Assignmenet: R|<local>/a|"];
16 [label="Exit block"];
14 [label="Enter block"];
15 [label="Const: Null(null)"];
16 [label="Assignmenet: R|<local>/a|"];
17 [label="Exit block"];
}
17 [label="Exit when branch result"];
18 [label="Enter when branch result"];
18 [label="Exit when branch result"];
19 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
19 [label="Enter block"];
20 [label="Function call: R|/A.A|()"];
21 [label="Assignmenet: R|<local>/a|"];
22 [label="Access variable R|<local>/a|"];
23 [label="Function call: R|<local>/a|.R|/A.foo|()"];
24 [label="Exit block"];
20 [label="Enter block"];
21 [label="Function call: R|/A.A|()"];
22 [label="Assignmenet: R|<local>/a|"];
23 [label="Access variable R|<local>/a|"];
24 [label="Function call: R|<local>/a|.R|/A.foo|()"];
25 [label="Exit block"];
}
25 [label="Exit when branch result"];
26 [label="Exit when"];
26 [label="Exit when branch result"];
27 [label="Exit when"];
}
27 [label="Access variable R|<local>/a|"];
28 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
29 [label="Exit function test" style="filled" fillcolor=red];
28 [label="Access variable R|<local>/a|"];
29 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
30 [label="Exit function test" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {18 10};
10 -> {11};
9 -> {10};
10 -> {19 11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {26};
18 -> {19};
17 -> {18};
18 -> {27};
19 -> {20};
20 -> {21};
21 -> {22};
@@ -89,5 +90,6 @@ digraph delayedAssignment_kt {
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
}
@@ -6,165 +6,173 @@ digraph delegateWithAnonymousObject_kt {
subgraph cluster_0 {
color=red
0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red];
1 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
2 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
2 [label="Enter function delegate" style="filled" fillcolor=red];
3 [label="Const: Null(null)"];
4 [label="Check not null: Null(null)!!"];
5 [label="Jump: ^delegate Null(null)!!"];
6 [label="Stub" style="filled" fillcolor=gray];
7 [label="Exit function delegate" style="filled" fillcolor=red];
3 [label="Enter function delegate" style="filled" fillcolor=red];
4 [label="Const: Null(null)"];
5 [label="Check not null: Null(null)!!"];
6 [label="Jump: ^delegate Null(null)!!"];
7 [label="Stub" style="filled" fillcolor=gray];
8 [label="Exit function delegate" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {7};
5 -> {6} [style=dotted];
5 -> {6};
6 -> {8};
6 -> {7} [style=dotted];
7 -> {8} [style=dotted];
subgraph cluster_2 {
color=red
8 [label="Enter function <init>" style="filled" fillcolor=red];
9 [label="Exit function <init>" style="filled" fillcolor=red];
9 [label="Enter function <init>" style="filled" fillcolor=red];
10 [label="Delegated constructor call: super<R|DelegateProvider<IssueListView>|>()"];
11 [label="Exit function <init>" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {11};
subgraph cluster_3 {
color=red
10 [label="Enter function updateFrom" style="filled" fillcolor=red];
11 [label="Exit function updateFrom" style="filled" fillcolor=red];
}
10 -> {11};
subgraph cluster_4 {
color=red
12 [label="Enter function <init>" style="filled" fillcolor=red];
13 [label="Exit function <init>" style="filled" fillcolor=red];
12 [label="Enter function updateFrom" style="filled" fillcolor=red];
13 [label="Exit function updateFrom" style="filled" fillcolor=red];
}
12 -> {13};
subgraph cluster_5 {
subgraph cluster_4 {
color=red
14 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
15 [label="Exit anonymous object"];
16 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
14 [label="Enter function <init>" style="filled" fillcolor=red];
15 [label="Delegated constructor call: super<R|DelegateProvider<IssuesListUserProfile>|>()"];
16 [label="Exit function <init>" style="filled" fillcolor=red];
}
14 -> {15};
15 -> {16};
subgraph cluster_6 {
subgraph cluster_5 {
color=red
17 [label="Enter function <init>" style="filled" fillcolor=red];
18 [label="Exit function <init>" style="filled" fillcolor=red];
17 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
18 [label="Exit anonymous object"];
19 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
subgraph cluster_6 {
color=red
20 [label="Enter function <init>" style="filled" fillcolor=red];
21 [label="Delegated constructor call: super<R|kotlin/Any|>()"];
22 [label="Exit function <init>" style="filled" fillcolor=red];
}
20 -> {21};
21 -> {22};
subgraph cluster_7 {
color=red
19 [label="Enter function getValue" style="filled" fillcolor=red];
20 [label="Function call: R|/IssueListView.IssueListView|()"];
21 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
22 [label="Stub" style="filled" fillcolor=gray];
23 [label="Exit function getValue" style="filled" fillcolor=red];
23 [label="Enter function getValue" style="filled" fillcolor=red];
24 [label="Function call: R|/IssueListView.IssueListView|()"];
25 [label="Jump: ^getValue R|/IssueListView.IssueListView|()"];
26 [label="Stub" style="filled" fillcolor=gray];
27 [label="Exit function getValue" style="filled" fillcolor=red];
}
19 -> {20};
20 -> {21};
21 -> {23};
21 -> {22} [style=dotted];
22 -> {23} [style=dotted];
23 -> {24};
24 -> {25};
25 -> {27};
25 -> {26} [style=dotted];
26 -> {27} [style=dotted];
subgraph cluster_8 {
color=red
24 [label="Enter function setValue" style="filled" fillcolor=red];
25 [label="Function call: R|/IssueListView.IssueListView|()"];
26 [label="Access variable R|<local>/value|"];
27 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)"];
28 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
29 [label="Stub" style="filled" fillcolor=gray];
30 [label="Exit function setValue" style="filled" fillcolor=red];
28 [label="Enter function setValue" style="filled" fillcolor=red];
29 [label="Function call: R|/IssueListView.IssueListView|()"];
30 [label="Access variable R|<local>/value|"];
31 [label="Function call: R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(...)"];
32 [label="Jump: ^setValue R|/IssueListView.IssueListView|().R|/IssueListView.updateFrom|(R|<local>/value|)"];
33 [label="Stub" style="filled" fillcolor=gray];
34 [label="Exit function setValue" style="filled" fillcolor=red];
}
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {30};
28 -> {29} [style=dotted];
29 -> {30} [style=dotted];
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {34};
32 -> {33} [style=dotted];
33 -> {34} [style=dotted];
subgraph cluster_9 {
color=red
31 [label="Enter function getter" style="filled" fillcolor=red];
32 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
33 [label="Access variable this@R|/IssuesListUserProfile|"];
34 [label="Function call: D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(...)"];
35 [label="Jump: ^ D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
36 [label="Stub" style="filled" fillcolor=gray];
37 [label="Exit function getter" style="filled" fillcolor=red];
35 [label="Enter function getter" style="filled" fillcolor=red];
36 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
37 [label="Access variable this@R|/IssuesListUserProfile|"];
38 [label="Function call: D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(...)"];
39 [label="Jump: ^ D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.getValue: R|IssueListView|>|(this@R|/IssuesListUserProfile|, ::R|/IssuesListUserProfile.issueListView|)"];
40 [label="Stub" style="filled" fillcolor=gray];
41 [label="Exit function getter" style="filled" fillcolor=red];
}
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {37};
35 -> {36} [style=dotted];
36 -> {37} [style=dotted];
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {41};
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
subgraph cluster_10 {
color=red
38 [label="Enter function setter" style="filled" fillcolor=red];
39 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
40 [label="Access variable this@R|/IssuesListUserProfile|"];
41 [label="Access variable R|<local>/issueListView|"];
42 [label="Function call: D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)"];
43 [label="Exit function setter" style="filled" fillcolor=red];
42 [label="Enter function setter" style="filled" fillcolor=red];
43 [label="Access variable D|/IssuesListUserProfile.issueListView|"];
44 [label="Access variable this@R|/IssuesListUserProfile|"];
45 [label="Access variable R|<local>/issueListView|"];
46 [label="Function call: D|/IssuesListUserProfile.issueListView|.R|FakeOverride<kotlin/properties/ReadWriteProperty.setValue: R|kotlin/Unit|>|(...)"];
47 [label="Exit function setter" style="filled" fillcolor=red];
}
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
subgraph cluster_11 {
color=red
44 [label="Enter property" style="filled" fillcolor=red];
45 [label="Postponed enter to lambda"];
46 [label="Postponed exit from lambda"];
47 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
48 [label="Access variable this@R|/IssuesListUserProfile|"];
49 [label="Access variable this@R|/IssuesListUserProfile|"];
50 [label="Access variable this@R|/IssuesListUserProfile|"];
51 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)"];
52 [label="Postponed enter to lambda"];
53 [label="Postponed exit from lambda"];
54 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
55 [label="Exit property" style="filled" fillcolor=red];
48 [label="Enter property" style="filled" fillcolor=red];
49 [label="Postponed enter to lambda"];
50 [label="Postponed exit from lambda"];
51 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
52 [label="Access variable this@R|/IssuesListUserProfile|"];
53 [label="Access variable this@R|/IssuesListUserProfile|"];
54 [label="Access variable this@R|/IssuesListUserProfile|"];
55 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...).<Unresolved name: provideDelegate>#(...)"];
56 [label="Postponed enter to lambda"];
57 [label="Postponed exit from lambda"];
58 [label="Function call: this@R|/IssuesListUserProfile|.R|/delegate|<R|IssuesListUserProfile|, R|IssuesListUserProfile|, R|IssueListView|>(...)"];
59 [label="Exit property" style="filled" fillcolor=red];
}
44 -> {45};
45 -> {46 46} [color=green];
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
49 -> {50 50} [color=green];
50 -> {51};
51 -> {52};
52 -> {53 53} [color=green];
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57 57} [color=green];
57 -> {58};
58 -> {59};
}
@@ -606,6 +606,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
runTest("compiler/fir/resolve/testData/resolve/cfg/loops.kt");
}
@TestMetadata("postponedLambdaInConstructor.kt")
public void testPostponedLambdaInConstructor() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/cfg/postponedLambdaInConstructor.kt");
}
@TestMetadata("postponedLambdas.kt")
public void testPostponedLambdas() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/cfg/postponedLambdas.kt");
@@ -581,6 +581,11 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
runTest("compiler/fir/resolve/testData/resolve/cfg/initBlockAndInPlaceLambda.kt");
}
@TestMetadata("inplaceLambdaInControlFlowExpressions.kt")
public void testInplaceLambdaInControlFlowExpressions() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/cfg/inplaceLambdaInControlFlowExpressions.kt");
}
@TestMetadata("jumps.kt")
public void testJumps() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/cfg/jumps.kt");