[FIR] Add edge kinds to control flow graph

Another changes:
- Remove useless CFG plain text renderer
- Refactor CFG .dot renderer
- Add checking of consistency control flow graph
This commit is contained in:
Dmitriy Novozhilov
2020-01-29 12:45:43 +03:00
parent 0c2157155d
commit 6716cb0bf3
50 changed files with 13215 additions and 11599 deletions
@@ -709,6 +709,11 @@ abstract class FirDataFlowAnalyzer<FLOW : Flow>(
val flow = node.mergeIncomingFlow().flow val flow = node.mergeIncomingFlow().flow
/*
* TODO: Here we should handle case when one of arguments is dead (e.g. in cases `false && expr` or `true || expr`)
* But since conditions with const are rare it can be delayed
*/
val leftVariable = variableStorage.getOrCreateVariable(binaryLogicExpression.leftOperand) val leftVariable = variableStorage.getOrCreateVariable(binaryLogicExpression.leftOperand)
val rightVariable = variableStorage.getOrCreateVariable(binaryLogicExpression.rightOperand) val rightVariable = variableStorage.getOrCreateVariable(binaryLogicExpression.rightOperand)
val operatorVariable = variableStorage.getOrCreateVariable(binaryLogicExpression) val operatorVariable = variableStorage.getOrCreateVariable(binaryLogicExpression)
@@ -795,7 +800,7 @@ abstract class FirDataFlowAnalyzer<FLOW : Flow>(
val previousFlows = if (node.isDead) val previousFlows = if (node.isDead)
node.previousNodes.map { it.flow } node.previousNodes.map { it.flow }
else else
node.previousNodes.mapNotNull { prev -> prev.takeIf { !it.isDead }?.flow } node.previousNodes.mapNotNull { prev -> prev.takeIf { node.incomingEdges[it] != EdgeKind.Dead }?.flow }
val flow = logicSystem.joinFlow(previousFlows) val flow = logicSystem.joinFlow(previousFlows)
if (updateReceivers) { if (updateReceivers) {
logicSystem.updateAllReceivers(flow) logicSystem.updateAllReceivers(flow)
@@ -24,13 +24,34 @@ class ControlFlowGraph(val name: String, val kind: Kind) {
} }
} }
enum class EdgeKind {
Simple, Dead
}
sealed class CFGNode<out E : FirElement>(val owner: ControlFlowGraph, val level: Int, private val id: Int) { sealed class CFGNode<out E : FirElement>(val owner: ControlFlowGraph, val level: Int, private val id: Int) {
companion object {
fun addEdge(from: CFGNode<*>, to: CFGNode<*>, kind: EdgeKind, propagateDeadness: Boolean) {
from.followingNodes += to
to.previousNodes += from
if (kind != EdgeKind.Simple) {
from.outgoingEdges[to] = kind
to.incomingEdges[from] = kind
}
if (propagateDeadness && kind == EdgeKind.Dead) {
to.isDead = true
}
}
}
init { init {
owner.nodes += this owner.nodes += this
} }
val previousNodes = mutableListOf<CFGNode<*>>() val previousNodes: MutableList<CFGNode<*>> = mutableListOf()
val followingNodes = mutableListOf<CFGNode<*>>() val followingNodes: MutableList<CFGNode<*>> = mutableListOf()
val incomingEdges = mutableMapOf<CFGNode<*>, EdgeKind>().withDefault { EdgeKind.Simple }
val outgoingEdges = mutableMapOf<CFGNode<*>, EdgeKind>().withDefault { EdgeKind.Simple }
val firstPreviousNode: CFGNode<*> get() = previousNodes.first() val firstPreviousNode: CFGNode<*> get() = previousNodes.first()
@@ -47,7 +68,6 @@ sealed class CFGNode<out E : FirElement>(val owner: ControlFlowGraph, val level:
} }
} }
interface EnterNode interface EnterNode
interface ExitNode interface ExitNode
@@ -314,7 +314,7 @@ class ControlFlowGraphBuilder {
val conditionExitNode = createLoopConditionExitNode(loop.condition) val conditionExitNode = createLoopConditionExitNode(loop.condition)
addNewSimpleNode(conditionExitNode) addNewSimpleNode(conditionExitNode)
val conditionConstBooleanValue = conditionExitNode.booleanConstValue val conditionConstBooleanValue = conditionExitNode.booleanConstValue
addEdge(conditionExitNode, loopExitNodes.top(), isDead = conditionConstBooleanValue == true) addEdge(conditionExitNode, loopExitNodes.top(), propagateDeadness = false, isDead = conditionConstBooleanValue == true)
val loopBlockEnterNode = createLoopBlockEnterNode(loop) val loopBlockEnterNode = createLoopBlockEnterNode(loop)
addNewSimpleNode(loopBlockEnterNode, conditionConstBooleanValue == false) addNewSimpleNode(loopBlockEnterNode, conditionConstBooleanValue == false)
levelCounter++ levelCounter++
@@ -431,11 +431,11 @@ class ControlFlowGraphBuilder {
val leftExitNode = createBinaryOrExitLeftOperandNode(binaryLogicExpression).also { val leftExitNode = createBinaryOrExitLeftOperandNode(binaryLogicExpression).also {
addEdge(previousNode, it) addEdge(previousNode, it)
addEdge(it, binaryOrExitNodes.top(), isDead = leftBooleanValue == false) addEdge(it, binaryOrExitNodes.top(), propagateDeadness = false, isDead = leftBooleanValue == false)
} }
val rightExitNode = createBinaryOrEnterRightOperandNode(binaryLogicExpression).also { val rightExitNode = createBinaryOrEnterRightOperandNode(binaryLogicExpression).also {
addEdge(leftExitNode, it, isDead = leftBooleanValue == true) addEdge(leftExitNode, it, propagateDeadness = true, isDead = leftBooleanValue == true)
lastNodes.push(it) lastNodes.push(it)
levelCounter++ levelCounter++
} }
@@ -639,13 +639,14 @@ class ControlFlowGraphBuilder {
fun exitSafeCall(qualifiedAccess: FirQualifiedAccess): ExitSafeCallNode { fun exitSafeCall(qualifiedAccess: FirQualifiedAccess): ExitSafeCallNode {
return exitSafeCallNodes.pop().also { return exitSafeCallNodes.pop().also {
addNewSimpleNode(it) addNewSimpleNode(it)
it.markAsDeadIfNecessary()
} }
} }
// ------------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------------------------------------
private fun CFGNode<*>.markAsDeadIfNecessary() { private fun CFGNode<*>.markAsDeadIfNecessary() {
isDead = previousNodes.all { it.isDead } isDead = incomingEdges.size == previousNodes.size && incomingEdges.values.all { it == EdgeKind.Dead }
} }
private fun addNodeThatReturnsNothing(node: CFGNode<*>) { private fun addNodeThatReturnsNothing(node: CFGNode<*>) {
@@ -674,22 +675,9 @@ class ControlFlowGraphBuilder {
return oldNode return oldNode
} }
private fun addDeadEdge(from: CFGNode<*>, to: CFGNode<*>, propagateDeadness: Boolean) {
val stub = createStubNode()
addEdge(from, stub)
addEdge(stub, to, propagateDeadness = propagateDeadness)
}
private fun addEdge(from: CFGNode<*>, to: CFGNode<*>, propagateDeadness: Boolean = true, isDead: Boolean = false) { private fun addEdge(from: CFGNode<*>, to: CFGNode<*>, propagateDeadness: Boolean = true, isDead: Boolean = false) {
if (isDead) { val kind = if (isDead || from.isDead || to.isDead) EdgeKind.Dead else EdgeKind.Simple
addDeadEdge(from, to, propagateDeadness) CFGNode.addEdge(from, to, kind, propagateDeadness)
return
}
if (propagateDeadness && from.isDead) {
to.isDead = true
}
from.followingNodes += to
to.previousNodes += from
} }
private val FirFunction<*>.invocationKind: InvocationKind? private val FirFunction<*>.invocationKind: InvocationKind?
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.fir.resolve.dfa.cfg package org.jetbrains.kotlin.fir.resolve.dfa.cfg
import org.jetbrains.kotlin.fir.FirElement
import org.jetbrains.kotlin.fir.FirRenderer import org.jetbrains.kotlin.fir.FirRenderer
import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.declarations.*
import org.jetbrains.kotlin.fir.expressions.FirDoWhileLoop import org.jetbrains.kotlin.fir.expressions.FirDoWhileLoop
@@ -12,75 +13,125 @@ import org.jetbrains.kotlin.fir.expressions.FirLoop
import org.jetbrains.kotlin.fir.expressions.FirWhileLoop import org.jetbrains.kotlin.fir.expressions.FirWhileLoop
import org.jetbrains.kotlin.fir.expressions.impl.FirElseIfTrueCondition import org.jetbrains.kotlin.fir.expressions.impl.FirElseIfTrueCondition
import org.jetbrains.kotlin.fir.psi import org.jetbrains.kotlin.fir.psi
import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference
import org.jetbrains.kotlin.fir.render import org.jetbrains.kotlin.fir.render
import org.jetbrains.kotlin.fir.resolve.dfa.FirControlFlowGraphReferenceImpl
import org.jetbrains.kotlin.fir.visitors.FirVisitorVoid
import org.jetbrains.kotlin.utils.DFS import org.jetbrains.kotlin.utils.DFS
import org.jetbrains.kotlin.utils.Printer
import java.util.*
private const val INDENT = " " class FirControlFlowGraphRenderVisitor(
private const val DEAD = "[DEAD]" builder: StringBuilder,
) : FirVisitorVoid() {
companion object {
private const val EDGE = " -> "
private const val RED = "red"
private const val BLUE = "blue"
private val EDGE_STYLE = EnumMap(
fun List<CFGNode<*>>.indicesMap(): Map<CFGNode<*>, Int> = mapIndexed { i, node -> node to i }.toMap() mapOf(
EdgeKind.Simple to "",
fun ControlFlowGraph.sortNodes(): List<CFGNode<*>> { EdgeKind.Dead to "[style=dotted]",
return DFS.topologicalOrder( )
nodes )
) {
val result = if (it !is WhenBranchConditionExitNode || it.followingNodes.size < 2) {
it.followingNodes
} else {
it.followingNodes.sortedBy { node -> if (node is BlockEnterNode) 1 else 0 }
}
result
}
}
fun ControlFlowGraph.renderToStringBuilder(builder: StringBuilder) {
val sortedNodes = sortNodes()
val indices = sortedNodes.indicesMap()
val notVisited = sortedNodes.toMutableSet()
val maxLineNumberSize = sortedNodes.size.toString().length
fun List<CFGNode<*>>.renderEdges(nodeIsDead: Boolean): String = map {
indices.getValue(it) to it.isDead
}.sortedBy { it.first }.joinToString(", ") { (index, isDead) ->
index.toString() + if (isDead && !nodeIsDead) DEAD else ""
} }
fun StringBuilder.renderNode(node: CFGNode<*>, index: Int) { private val printer = Printer(builder)
append(index.toString().padStart(maxLineNumberSize))
append(": ") private var indexOffset = 0
append(INDENT.repeat(node.level)) private var clusterCounter = 0
append(node.render())
append(" -> ") override fun visitFile(file: FirFile) {
append(node.followingNodes.renderEdges(node.isDead)) printer
if (node.previousNodes.isNotEmpty()) { .println("digraph ${file.name.replace(".", "_")} {")
append(" | <- ") .pushIndent()
append(node.previousNodes.renderEdges(node.isDead)) .println("graph [splines=ortho nodesep=3]")
} .println("node [shape=box penwidth=2]")
appendln() .println("edge [penwidth=2]")
.println()
visitElement(file)
printer
.popIndent()
.println("}")
} }
with(builder) { override fun visitElement(element: FirElement) {
sortedNodes.forEachIndexed { i, node -> element.acceptChildren(this)
notVisited.remove(node) }
renderNode(node, i)
}
if (notVisited.isNotEmpty()) { override fun visitControlFlowGraphReference(controlFlowGraphReference: FirControlFlowGraphReference) {
appendln("Not visited nodes:") val controlFlowGraph = (controlFlowGraphReference as? FirControlFlowGraphReferenceImpl)?.controlFlowGraph ?: return
notVisited.forEach { node -> indexOffset = controlFlowGraph.dotRenderToStringBuilder(printer)
renderNode(node, indices.getValue(node)) printer.println()
}
private fun Printer.enterCluster(color: String) {
println("subgraph cluster_${clusterCounter++} {")
pushIndent()
println("color=$color")
}
private fun Printer.exitCluster() {
popIndent()
println("}")
}
private fun ControlFlowGraph.dotRenderToStringBuilder(printer: Printer): Int {
with(printer) {
val graph = this@dotRenderToStringBuilder
val sortedNodes = graph.sortNodes()
val indices = sortedNodes.indicesMap().mapValues { (_, index) -> index + indexOffset }
var color = RED
sortedNodes.forEach {
if (it is EnterNode) {
enterCluster(color)
color = BLUE
}
val attributes = mutableListOf<String>()
attributes += "label=\"${it.render().replace("\"", "")}\""
if (it == enterNode || it == exitNode) {
attributes += "style=\"filled\""
attributes += "fillcolor=red"
}
if (it.isDead) {
attributes += "style=\"filled\""
attributes += "fillcolor=gray"
}
println(indices.getValue(it), attributes.joinToString(separator = " ", prefix = " [", postfix = "];"))
if (it is ExitNode) {
exitCluster()
}
} }
} println()
appendln() sortedNodes.forEachIndexed { i, node ->
if (node.followingNodes.isEmpty()) return@forEachIndexed
fun renderEdges(kind: EdgeKind) {
val edges = node.followingNodes.filter { node.outgoingEdges.getValue(it) == kind }
if (edges.isEmpty()) return
print(
i + indexOffset,
EDGE,
edges.joinToString(prefix = "{", postfix = "}", separator = " ") { indices.getValue(it).toString() }
)
EDGE_STYLE.getValue(kind).takeIf { it.isNotBlank() }?.let { printWithNoIndent(" $it") }
printlnWithNoIndent(";")
}
for (kind in EdgeKind.values()) {
renderEdges(kind)
}
}
return indexOffset + sortedNodes.size
}
} }
} }
fun ControlFlowGraph.render(): String = buildString { renderToStringBuilder(this) } private fun CFGNode<*>.render(): String =
fun CFGNode<*>.render(): String =
buildString { buildString {
append( append(
when (this@render) { when (this@render) {
@@ -114,7 +165,7 @@ fun CFGNode<*>.render(): String =
is ConstExpressionNode -> "Const: ${fir.render()}" is ConstExpressionNode -> "Const: ${fir.render()}"
is VariableDeclarationNode -> is VariableDeclarationNode ->
"Variable declaration: ${buildString { FirRenderer(this).visitCallableDeclaration(fir)} }" "Variable declaration: ${buildString { FirRenderer(this).visitCallableDeclaration(fir) }}"
is VariableAssignmentNode -> "Assignmenet: ${fir.lValue.render()}" is VariableAssignmentNode -> "Assignmenet: ${fir.lValue.render()}"
is FunctionCallNode -> "Function call: ${fir.render()}" is FunctionCallNode -> "Function call: ${fir.render()}"
@@ -154,7 +205,7 @@ fun CFGNode<*>.render(): String =
is ExitSafeCallNode -> "Exit safe call" is ExitSafeCallNode -> "Exit safe call"
else -> TODO(this@render.toString()) else -> TODO(this@render.toString())
} },
) )
} }
@@ -172,3 +223,16 @@ private fun FirLoop.type(): String = when (this) {
is FirDoWhileLoop -> "do-while" is FirDoWhileLoop -> "do-while"
else -> throw IllegalArgumentException() else -> throw IllegalArgumentException()
} }
private fun ControlFlowGraph.sortNodes(): List<CFGNode<*>> {
return DFS.topologicalOrder(nodes) {
val result = if (it !is WhenBranchConditionExitNode || it.followingNodes.size < 2) {
it.followingNodes
} else {
it.followingNodes.sortedBy { node -> if (node is BlockEnterNode) 1 else 0 }
}
result
}
}
private fun List<CFGNode<*>>.indicesMap(): Map<CFGNode<*>, Int> = mapIndexed { i, node -> node to i }.toMap()
+227 -227
View File
@@ -1,240 +1,240 @@
digraph binaryOperations_kt { digraph binaryOperations_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue
1 [label="Enter when"];
subgraph cluster_2 {
color=blue
2 [label="Enter when branch condition "];
subgraph cluster_3 {
color=blue
3 [label="Enter ||"];
4 [label="Access variable R|<local>/b1|"];
5 [label="Exit left part of ||"];
6 [label="Enter right part of ||"];
7 [label="Access variable R|<local>/b2|"];
8 [label="Exit ||"];
}
9 [label="Exit when branch condition"];
}
10 [label="Synthetic else branch"];
11 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
12 [label="Enter block"];
13 [label="Const: IntegerLiteral(1)"];
14 [label="Exit block"];
}
15 [label="Exit when branch result"];
16 [label="Exit when"];
}
17 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {8 6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {11 10};
10 -> {16};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
subgraph cluster_5 {
color=red
18 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
19 [label="Enter when"];
subgraph cluster_7 {
color=blue
20 [label="Enter when branch condition "];
subgraph cluster_8 {
color=blue
21 [label="Enter &&"];
22 [label="Access variable R|<local>/b1|"];
23 [label="Exit left part of &&"];
24 [label="Enter right part of &&"];
25 [label="Access variable R|<local>/b2|"];
26 [label="Exit &&"];
}
27 [label="Exit when branch condition"];
}
28 [label="Synthetic else branch"];
29 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
30 [label="Enter block"];
31 [label="Const: IntegerLiteral(1)"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
}
35 [label="Exit function test_2" style="filled" fillcolor=red];
}
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {26 24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {29 28};
28 -> {34};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
subgraph cluster_10 {
color=red
36 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
37 [label="Enter when"];
subgraph cluster_12 {
color=blue
38 [label="Enter when branch condition "];
subgraph cluster_13 {
color=blue
39 [label="Enter ||"];
subgraph cluster_14 {
color=blue color=blue
40 [label="Enter &&"]; 1 [label="Enter when"];
41 [label="Access variable R|<local>/b1|"]; subgraph cluster_2 {
42 [label="Exit left part of &&"]; color=blue
43 [label="Enter right part of &&"]; 2 [label="Enter when branch condition "];
44 [label="Access variable R|<local>/b2|"]; subgraph cluster_3 {
45 [label="Exit &&"]; color=blue
} 3 [label="Enter ||"];
46 [label="Exit left part of ||"]; 4 [label="Access variable R|<local>/b1|"];
47 [label="Enter right part of ||"]; 5 [label="Exit left part of ||"];
48 [label="Access variable R|<local>/b3|"]; 6 [label="Enter right part of ||"];
49 [label="Exit ||"]; 7 [label="Access variable R|<local>/b2|"];
8 [label="Exit ||"];
}
9 [label="Exit when branch condition"];
}
10 [label="Synthetic else branch"];
11 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
12 [label="Enter block"];
13 [label="Const: IntegerLiteral(1)"];
14 [label="Exit block"];
}
15 [label="Exit when branch result"];
16 [label="Exit when"];
} }
50 [label="Exit when branch condition"]; 17 [label="Exit function test_1" style="filled" fillcolor=red];
}
51 [label="Synthetic else branch"];
52 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
53 [label="Enter block"];
54 [label="Const: IntegerLiteral(1)"];
55 [label="Exit block"];
}
56 [label="Exit when branch result"];
57 [label="Exit when"];
} }
58 [label="Exit function test_3" style="filled" fillcolor=red];
}
36 -> {37}; 0 -> {1};
37 -> {38}; 1 -> {2};
38 -> {39}; 2 -> {3};
39 -> {40}; 3 -> {4};
40 -> {41}; 4 -> {5};
41 -> {42}; 5 -> {8 6};
42 -> {45 43}; 6 -> {7};
43 -> {44}; 7 -> {8};
44 -> {45}; 8 -> {9};
45 -> {46}; 9 -> {11 10};
46 -> {49 47}; 10 -> {16};
47 -> {48}; 11 -> {12};
48 -> {49}; 12 -> {13};
49 -> {50}; 13 -> {14};
50 -> {52 51}; 14 -> {15};
51 -> {57}; 15 -> {16};
52 -> {53}; 16 -> {17};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_16 { subgraph cluster_5 {
color=red color=red
59 [label="Enter function test_4" style="filled" fillcolor=red]; 18 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_6 {
color=blue
60 [label="Enter when"];
subgraph cluster_18 {
color=blue
61 [label="Enter when branch condition "];
subgraph cluster_19 {
color=blue
62 [label="Enter ||"];
63 [label="Access variable R|<local>/b1|"];
64 [label="Exit left part of ||"];
65 [label="Enter right part of ||"];
subgraph cluster_20 {
color=blue color=blue
66 [label="Enter &&"]; 19 [label="Enter when"];
67 [label="Access variable R|<local>/b2|"]; subgraph cluster_7 {
68 [label="Exit left part of &&"]; color=blue
69 [label="Enter right part of &&"]; 20 [label="Enter when branch condition "];
70 [label="Access variable R|<local>/b3|"]; subgraph cluster_8 {
71 [label="Exit &&"]; color=blue
} 21 [label="Enter &&"];
72 [label="Exit ||"]; 22 [label="Access variable R|<local>/b1|"];
23 [label="Exit left part of &&"];
24 [label="Enter right part of &&"];
25 [label="Access variable R|<local>/b2|"];
26 [label="Exit &&"];
}
27 [label="Exit when branch condition"];
}
28 [label="Synthetic else branch"];
29 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
30 [label="Enter block"];
31 [label="Const: IntegerLiteral(1)"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
} }
73 [label="Exit when branch condition"]; 35 [label="Exit function test_2" style="filled" fillcolor=red];
}
74 [label="Synthetic else branch"];
75 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
76 [label="Enter block"];
77 [label="Const: IntegerLiteral(1)"];
78 [label="Exit block"];
}
79 [label="Exit when branch result"];
80 [label="Exit when"];
} }
81 [label="Exit function test_4" style="filled" fillcolor=red];
}
59 -> {60}; 18 -> {19};
60 -> {61}; 19 -> {20};
61 -> {62}; 20 -> {21};
62 -> {63}; 21 -> {22};
63 -> {64}; 22 -> {23};
64 -> {72 65}; 23 -> {26 24};
65 -> {66}; 24 -> {25};
66 -> {67}; 25 -> {26};
67 -> {68}; 26 -> {27};
68 -> {71 69}; 27 -> {29 28};
69 -> {70}; 28 -> {34};
70 -> {71}; 29 -> {30};
71 -> {72}; 30 -> {31};
72 -> {73}; 31 -> {32};
73 -> {75 74}; 32 -> {33};
74 -> {80}; 33 -> {34};
75 -> {76}; 34 -> {35};
76 -> {77};
77 -> {78}; subgraph cluster_10 {
78 -> {79}; color=red
79 -> {80}; 36 [label="Enter function test_3" style="filled" fillcolor=red];
80 -> {81}; subgraph cluster_11 {
color=blue
37 [label="Enter when"];
subgraph cluster_12 {
color=blue
38 [label="Enter when branch condition "];
subgraph cluster_13 {
color=blue
39 [label="Enter ||"];
subgraph cluster_14 {
color=blue
40 [label="Enter &&"];
41 [label="Access variable R|<local>/b1|"];
42 [label="Exit left part of &&"];
43 [label="Enter right part of &&"];
44 [label="Access variable R|<local>/b2|"];
45 [label="Exit &&"];
}
46 [label="Exit left part of ||"];
47 [label="Enter right part of ||"];
48 [label="Access variable R|<local>/b3|"];
49 [label="Exit ||"];
}
50 [label="Exit when branch condition"];
}
51 [label="Synthetic else branch"];
52 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
53 [label="Enter block"];
54 [label="Const: IntegerLiteral(1)"];
55 [label="Exit block"];
}
56 [label="Exit when branch result"];
57 [label="Exit when"];
}
58 [label="Exit function test_3" style="filled" fillcolor=red];
}
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {45 43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {49 47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {52 51};
51 -> {57};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_16 {
color=red
59 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_17 {
color=blue
60 [label="Enter when"];
subgraph cluster_18 {
color=blue
61 [label="Enter when branch condition "];
subgraph cluster_19 {
color=blue
62 [label="Enter ||"];
63 [label="Access variable R|<local>/b1|"];
64 [label="Exit left part of ||"];
65 [label="Enter right part of ||"];
subgraph cluster_20 {
color=blue
66 [label="Enter &&"];
67 [label="Access variable R|<local>/b2|"];
68 [label="Exit left part of &&"];
69 [label="Enter right part of &&"];
70 [label="Access variable R|<local>/b3|"];
71 [label="Exit &&"];
}
72 [label="Exit ||"];
}
73 [label="Exit when branch condition"];
}
74 [label="Synthetic else branch"];
75 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
76 [label="Enter block"];
77 [label="Const: IntegerLiteral(1)"];
78 [label="Exit block"];
}
79 [label="Exit when branch result"];
80 [label="Exit when"];
}
81 [label="Exit function test_4" style="filled" fillcolor=red];
}
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {72 65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {71 69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {75 74};
74 -> {80};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
} }
@@ -1,434 +1,426 @@
digraph booleanOperatorsWithConsts_kt { digraph booleanOperatorsWithConsts_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter when"]; 1 [label="Enter when"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
2 [label="Enter when branch condition "]; 2 [label="Enter when branch condition "];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
3 [label="Enter ||"]; 3 [label="Enter ||"];
4 [label="Access variable R|<local>/b|"]; 4 [label="Access variable R|<local>/b|"];
5 [label="Exit left part of ||"]; 5 [label="Exit left part of ||"];
6 [label="Enter right part of ||"]; 6 [label="Enter right part of ||"];
7 [label="Const: Boolean(false)"]; 7 [label="Const: Boolean(false)"];
8 [label="Exit ||"]; 8 [label="Exit ||"];
}
9 [label="Exit when branch condition"];
}
10 [label="Synthetic else branch"];
11 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
12 [label="Enter block"];
13 [label="Const: IntegerLiteral(1)"];
14 [label="Exit block"];
}
15 [label="Exit when branch result"];
16 [label="Exit when"];
} }
9 [label="Exit when branch condition"]; 17 [label="Exit function test_1" style="filled" fillcolor=red];
}
10 [label="Synthetic else branch"];
11 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
12 [label="Enter block"];
13 [label="Const: IntegerLiteral(1)"];
14 [label="Exit block"];
}
15 [label="Exit when branch result"];
16 [label="Exit when"];
} }
17 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {8 6}; 5 -> {8 6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {11 10}; 9 -> {11 10};
10 -> {16}; 10 -> {16};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
18 [label="Enter function test_2" style="filled" fillcolor=red]; 18 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
19 [label="Enter when"]; 19 [label="Enter when"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
20 [label="Enter when branch condition "]; 20 [label="Enter when branch condition "];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
21 [label="Enter ||"]; 21 [label="Enter ||"];
22 [label="Const: Boolean(false)"]; 22 [label="Const: Boolean(false)"];
23 [label="Exit left part of ||"]; 23 [label="Exit left part of ||"];
24 [label="Enter right part of ||"]; 24 [label="Enter right part of ||"];
25 [label="Access variable R|<local>/b|"]; 25 [label="Access variable R|<local>/b|"];
26 [label="Stub" style="filled" fillcolor=gray]; 26 [label="Exit ||"];
27 [label="Exit ||"]; }
27 [label="Exit when branch condition"];
}
28 [label="Synthetic else branch"];
29 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
30 [label="Enter block"];
31 [label="Const: IntegerLiteral(1)"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
} }
28 [label="Exit when branch condition"]; 35 [label="Exit function test_2" style="filled" fillcolor=red];
}
29 [label="Synthetic else branch"];
30 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
31 [label="Enter block"];
32 [label="Const: IntegerLiteral(1)"];
33 [label="Exit block"];
}
34 [label="Exit when branch result"];
35 [label="Exit when"];
} }
36 [label="Exit function test_2" style="filled" fillcolor=red];
}
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
23 -> {26} [style=dotted]; 23 -> {26} [style=dotted];
24 -> {25}; 24 -> {25};
25 -> {27}; 25 -> {26};
26 -> {27} [style=dotted]; 26 -> {27};
27 -> {28}; 27 -> {29 28};
28 -> {30 29}; 28 -> {34};
29 -> {35}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36};
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
37 [label="Enter function test_3" style="filled" fillcolor=red]; 36 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
38 [label="Enter when"]; 37 [label="Enter when"];
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
39 [label="Enter when branch condition "]; 38 [label="Enter when branch condition "];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
40 [label="Enter ||"]; 39 [label="Enter ||"];
41 [label="Access variable R|<local>/b|"]; 40 [label="Access variable R|<local>/b|"];
42 [label="Exit left part of ||"]; 41 [label="Exit left part of ||"];
43 [label="Enter right part of ||"]; 42 [label="Enter right part of ||"];
44 [label="Const: Boolean(true)"]; 43 [label="Const: Boolean(true)"];
45 [label="Exit ||"]; 44 [label="Exit ||"];
}
45 [label="Exit when branch condition"];
}
46 [label="Synthetic else branch"];
47 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
48 [label="Enter block"];
49 [label="Const: IntegerLiteral(1)"];
50 [label="Exit block"];
}
51 [label="Exit when branch result"];
52 [label="Exit when"];
} }
46 [label="Exit when branch condition"]; 53 [label="Exit function test_3" style="filled" fillcolor=red];
}
47 [label="Synthetic else branch"];
48 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
49 [label="Enter block"];
50 [label="Const: IntegerLiteral(1)"];
51 [label="Exit block"];
}
52 [label="Exit when branch result"];
53 [label="Exit when"];
} }
54 [label="Exit function test_3" style="filled" fillcolor=red];
}
37 -> {38}; 36 -> {37};
38 -> {39}; 37 -> {38};
39 -> {40}; 38 -> {39};
40 -> {41}; 39 -> {40};
41 -> {42}; 40 -> {41};
42 -> {45 43}; 41 -> {44 42};
43 -> {44}; 42 -> {43};
44 -> {45}; 43 -> {44};
45 -> {46}; 44 -> {45};
46 -> {48 47}; 45 -> {47 46};
47 -> {53}; 46 -> {52};
48 -> {49}; 47 -> {48};
49 -> {50}; 48 -> {49};
50 -> {51}; 49 -> {50};
51 -> {52}; 50 -> {51};
52 -> {53}; 51 -> {52};
53 -> {54}; 52 -> {53};
subgraph cluster_15 { subgraph cluster_15 {
color=red color=red
55 [label="Enter function test_4" style="filled" fillcolor=red]; 54 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
56 [label="Enter when"]; 55 [label="Enter when"];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
57 [label="Enter when branch condition "]; 56 [label="Enter when branch condition "];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
58 [label="Enter ||"]; 57 [label="Enter ||"];
59 [label="Const: Boolean(true)"]; 58 [label="Const: Boolean(true)"];
60 [label="Exit left part of ||"]; 59 [label="Exit left part of ||"];
61 [label="Stub" style="filled" fillcolor=gray]; 60 [label="Enter right part of ||" style="filled" fillcolor=gray];
62 [label="Enter right part of ||" style="filled" fillcolor=gray]; 61 [label="Access variable R|<local>/b|" style="filled" fillcolor=gray];
63 [label="Access variable R|<local>/b|" style="filled" fillcolor=gray]; 62 [label="Exit ||"];
64 [label="Exit ||"]; }
63 [label="Exit when branch condition"];
}
64 [label="Synthetic else branch"];
65 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
66 [label="Enter block"];
67 [label="Const: IntegerLiteral(1)"];
68 [label="Exit block"];
}
69 [label="Exit when branch result"];
70 [label="Exit when"];
} }
65 [label="Exit when branch condition"]; 71 [label="Exit function test_4" style="filled" fillcolor=red];
}
66 [label="Synthetic else branch"];
67 [label="Enter when branch result"];
subgraph cluster_19 {
color=blue
68 [label="Enter block"];
69 [label="Const: IntegerLiteral(1)"];
70 [label="Exit block"];
}
71 [label="Exit when branch result"];
72 [label="Exit when"];
} }
73 [label="Exit function test_4" style="filled" fillcolor=red];
}
55 -> {56}; 54 -> {55};
56 -> {57}; 55 -> {56};
57 -> {58}; 56 -> {57};
58 -> {59}; 57 -> {58};
59 -> {60}; 58 -> {59};
60 -> {64}; 59 -> {62};
60 -> {61} [style=dotted]; 59 -> {60} [style=dotted];
61 -> {62} [style=dotted]; 60 -> {61} [style=dotted];
62 -> {63} [style=dotted]; 61 -> {62} [style=dotted];
63 -> {64} [style=dotted]; 62 -> {63};
64 -> {65}; 63 -> {65 64};
65 -> {67 66}; 64 -> {70};
66 -> {72}; 65 -> {66};
67 -> {68}; 66 -> {67};
68 -> {69}; 67 -> {68};
69 -> {70}; 68 -> {69};
70 -> {71}; 69 -> {70};
71 -> {72}; 70 -> {71};
72 -> {73};
subgraph cluster_20 { subgraph cluster_20 {
color=red color=red
74 [label="Enter function test_5" style="filled" fillcolor=red]; 72 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
75 [label="Enter when"]; 73 [label="Enter when"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
76 [label="Enter when branch condition "]; 74 [label="Enter when branch condition "];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
77 [label="Enter &&"]; 75 [label="Enter &&"];
78 [label="Access variable R|<local>/b|"]; 76 [label="Access variable R|<local>/b|"];
79 [label="Exit left part of &&"]; 77 [label="Exit left part of &&"];
80 [label="Enter right part of &&"]; 78 [label="Enter right part of &&"];
81 [label="Const: Boolean(false)"]; 79 [label="Const: Boolean(false)"];
82 [label="Exit &&"]; 80 [label="Exit &&"];
}
81 [label="Exit when branch condition"];
}
82 [label="Synthetic else branch"];
83 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
84 [label="Enter block"];
85 [label="Const: IntegerLiteral(1)"];
86 [label="Exit block"];
}
87 [label="Exit when branch result"];
88 [label="Exit when"];
} }
83 [label="Exit when branch condition"]; 89 [label="Exit function test_5" style="filled" fillcolor=red];
}
84 [label="Synthetic else branch"];
85 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
86 [label="Enter block"];
87 [label="Const: IntegerLiteral(1)"];
88 [label="Exit block"];
}
89 [label="Exit when branch result"];
90 [label="Exit when"];
} }
91 [label="Exit function test_5" style="filled" fillcolor=red];
}
74 -> {75}; 72 -> {73};
75 -> {76}; 73 -> {74};
76 -> {77}; 74 -> {75};
77 -> {78}; 75 -> {76};
78 -> {79}; 76 -> {77};
79 -> {82 80}; 77 -> {80 78};
80 -> {81}; 78 -> {79};
81 -> {82}; 79 -> {80};
82 -> {83}; 80 -> {81};
83 -> {85 84}; 81 -> {83 82};
84 -> {90}; 82 -> {88};
85 -> {86}; 83 -> {84};
86 -> {87}; 84 -> {85};
87 -> {88}; 85 -> {86};
88 -> {89}; 86 -> {87};
89 -> {90}; 87 -> {88};
90 -> {91}; 88 -> {89};
subgraph cluster_25 { subgraph cluster_25 {
color=red color=red
92 [label="Enter function test_6" style="filled" fillcolor=red]; 90 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_26 { subgraph cluster_26 {
color=blue color=blue
93 [label="Enter when"]; 91 [label="Enter when"];
subgraph cluster_27 { subgraph cluster_27 {
color=blue color=blue
94 [label="Enter when branch condition "]; 92 [label="Enter when branch condition "];
subgraph cluster_28 { subgraph cluster_28 {
color=blue color=blue
95 [label="Enter &&"]; 93 [label="Enter &&"];
96 [label="Const: Boolean(false)"]; 94 [label="Const: Boolean(false)"];
97 [label="Exit left part of &&"]; 95 [label="Exit left part of &&"];
98 [label="Stub" style="filled" fillcolor=gray]; 96 [label="Enter right part of &&" style="filled" fillcolor=gray];
99 [label="Enter right part of &&" style="filled" fillcolor=gray]; 97 [label="Access variable R|<local>/b|" style="filled" fillcolor=gray];
100 [label="Access variable R|<local>/b|" style="filled" fillcolor=gray]; 98 [label="Exit &&"];
101 [label="Exit &&"]; }
99 [label="Exit when branch condition"];
}
100 [label="Synthetic else branch"];
101 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
102 [label="Enter block"];
103 [label="Const: IntegerLiteral(1)"];
104 [label="Exit block"];
}
105 [label="Exit when branch result"];
106 [label="Exit when"];
} }
102 [label="Exit when branch condition"]; 107 [label="Exit function test_6" style="filled" fillcolor=red];
}
103 [label="Synthetic else branch"];
104 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
105 [label="Enter block"];
106 [label="Const: IntegerLiteral(1)"];
107 [label="Exit block"];
}
108 [label="Exit when branch result"];
109 [label="Exit when"];
} }
110 [label="Exit function test_6" style="filled" fillcolor=red];
}
92 -> {93}; 90 -> {91};
93 -> {94}; 91 -> {92};
94 -> {95}; 92 -> {93};
95 -> {96}; 93 -> {94};
96 -> {97}; 94 -> {95};
97 -> {101}; 95 -> {98};
97 -> {98} [style=dotted]; 95 -> {96} [style=dotted];
98 -> {99} [style=dotted]; 96 -> {97} [style=dotted];
99 -> {100} [style=dotted]; 97 -> {98} [style=dotted];
100 -> {101} [style=dotted]; 98 -> {99};
101 -> {102}; 99 -> {101 100};
102 -> {104 103}; 100 -> {106};
103 -> {109}; 101 -> {102};
104 -> {105}; 102 -> {103};
105 -> {106}; 103 -> {104};
106 -> {107}; 104 -> {105};
107 -> {108}; 105 -> {106};
108 -> {109}; 106 -> {107};
109 -> {110};
subgraph cluster_30 { subgraph cluster_30 {
color=red color=red
111 [label="Enter function test_7" style="filled" fillcolor=red]; 108 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_31 { subgraph cluster_31 {
color=blue color=blue
112 [label="Enter when"]; 109 [label="Enter when"];
subgraph cluster_32 { subgraph cluster_32 {
color=blue color=blue
113 [label="Enter when branch condition "]; 110 [label="Enter when branch condition "];
subgraph cluster_33 { subgraph cluster_33 {
color=blue color=blue
114 [label="Enter &&"]; 111 [label="Enter &&"];
115 [label="Access variable R|<local>/b|"]; 112 [label="Access variable R|<local>/b|"];
116 [label="Exit left part of &&"]; 113 [label="Exit left part of &&"];
117 [label="Enter right part of &&"]; 114 [label="Enter right part of &&"];
118 [label="Const: Boolean(true)"]; 115 [label="Const: Boolean(true)"];
119 [label="Exit &&"]; 116 [label="Exit &&"];
}
117 [label="Exit when branch condition"];
}
118 [label="Synthetic else branch"];
119 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
120 [label="Enter block"];
121 [label="Const: IntegerLiteral(1)"];
122 [label="Exit block"];
}
123 [label="Exit when branch result"];
124 [label="Exit when"];
} }
120 [label="Exit when branch condition"]; 125 [label="Exit function test_7" style="filled" fillcolor=red];
}
121 [label="Synthetic else branch"];
122 [label="Enter when branch result"];
subgraph cluster_34 {
color=blue
123 [label="Enter block"];
124 [label="Const: IntegerLiteral(1)"];
125 [label="Exit block"];
}
126 [label="Exit when branch result"];
127 [label="Exit when"];
} }
128 [label="Exit function test_7" style="filled" fillcolor=red];
}
111 -> {112}; 108 -> {109};
112 -> {113}; 109 -> {110};
113 -> {114}; 110 -> {111};
114 -> {115}; 111 -> {112};
115 -> {116}; 112 -> {113};
116 -> {119 117}; 113 -> {116 114};
117 -> {118}; 114 -> {115};
118 -> {119}; 115 -> {116};
119 -> {120}; 116 -> {117};
120 -> {122 121}; 117 -> {119 118};
121 -> {127}; 118 -> {124};
122 -> {123}; 119 -> {120};
123 -> {124}; 120 -> {121};
124 -> {125}; 121 -> {122};
125 -> {126}; 122 -> {123};
126 -> {127}; 123 -> {124};
127 -> {128}; 124 -> {125};
subgraph cluster_35 { subgraph cluster_35 {
color=red color=red
129 [label="Enter function test_8" style="filled" fillcolor=red]; 126 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_36 { subgraph cluster_36 {
color=blue color=blue
130 [label="Enter when"]; 127 [label="Enter when"];
subgraph cluster_37 { subgraph cluster_37 {
color=blue color=blue
131 [label="Enter when branch condition "]; 128 [label="Enter when branch condition "];
subgraph cluster_38 { subgraph cluster_38 {
color=blue color=blue
132 [label="Enter &&"]; 129 [label="Enter &&"];
133 [label="Const: Boolean(true)"]; 130 [label="Const: Boolean(true)"];
134 [label="Exit left part of &&"]; 131 [label="Exit left part of &&"];
135 [label="Enter right part of &&"]; 132 [label="Enter right part of &&"];
136 [label="Access variable R|<local>/b|"]; 133 [label="Access variable R|<local>/b|"];
137 [label="Stub" style="filled" fillcolor=gray]; 134 [label="Exit &&"];
138 [label="Exit &&"]; }
135 [label="Exit when branch condition"];
}
136 [label="Synthetic else branch"];
137 [label="Enter when branch result"];
subgraph cluster_39 {
color=blue
138 [label="Enter block"];
139 [label="Const: IntegerLiteral(1)"];
140 [label="Exit block"];
}
141 [label="Exit when branch result"];
142 [label="Exit when"];
} }
139 [label="Exit when branch condition"]; 143 [label="Exit function test_8" style="filled" fillcolor=red];
}
140 [label="Synthetic else branch"];
141 [label="Enter when branch result"];
subgraph cluster_39 {
color=blue
142 [label="Enter block"];
143 [label="Const: IntegerLiteral(1)"];
144 [label="Exit block"];
}
145 [label="Exit when branch result"];
146 [label="Exit when"];
} }
147 [label="Exit function test_8" style="filled" fillcolor=red];
}
129 -> {130}; 126 -> {127};
130 -> {131}; 127 -> {128};
131 -> {132}; 128 -> {129};
132 -> {133}; 129 -> {130};
133 -> {134}; 130 -> {131};
134 -> {135}; 131 -> {132};
134 -> {137} [style=dotted]; 131 -> {134} [style=dotted];
135 -> {136}; 132 -> {133};
136 -> {138}; 133 -> {134};
137 -> {138} [style=dotted]; 134 -> {135};
138 -> {139}; 135 -> {137 136};
139 -> {141 140}; 136 -> {142};
140 -> {146}; 137 -> {138};
141 -> {142}; 138 -> {139};
142 -> {143}; 139 -> {140};
143 -> {144}; 140 -> {141};
144 -> {145}; 141 -> {142};
145 -> {146}; 142 -> {143};
146 -> {147};
} }
+388 -388
View File
@@ -1,252 +1,252 @@
digraph complex_kt { digraph complex_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function fetchPluginReleaseDate" style="filled" fillcolor=red]; 0 [label="Enter function fetchPluginReleaseDate" style="filled" fillcolor=red];
1 [label="Const: String(https://plugins.jetbrains.com/api/plugins/)"]; 1 [label="Const: String(https://plugins.jetbrains.com/api/plugins/)"];
2 [label="Access variable R|<local>/pluginId|"]; 2 [label="Access variable R|<local>/pluginId|"];
3 [label="Access variable <Unresolved name: idString>#"]; 3 [label="Access variable <Unresolved name: idString>#"];
4 [label="Function call: R|<local>/pluginId|.<Unresolved name: idString>#.R|kotlin/toString|()"]; 4 [label="Function call: R|<local>/pluginId|.<Unresolved name: idString>#.R|kotlin/toString|()"];
5 [label="Const: String(/updates?version=)"]; 5 [label="Const: String(/updates?version=)"];
6 [label="Access variable R|<local>/version|"]; 6 [label="Access variable R|<local>/version|"];
7 [label="Function call: R|<local>/version|.R|kotlin/Any.toString|()"]; 7 [label="Function call: R|<local>/version|.R|kotlin/Any.toString|()"];
8 [label="Variable declaration: lval url: R|kotlin/String|"]; 8 [label="Variable declaration: lval url: R|kotlin/String|"];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
9 [label="Try expression enter"]; 9 [label="Try expression enter"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
10 [label="Try main block enter"]; 10 [label="Try main block enter"];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
11 [label="Enter block"]; 11 [label="Enter block"];
12 [label="Access variable <Unresolved name: HttpRequests>#"]; 12 [label="Access variable <Unresolved name: HttpRequests>#"];
13 [label="Access variable R|<local>/url|"]; 13 [label="Access variable R|<local>/url|"];
14 [label="Access variable R|<local>/url|"]; 14 [label="Access variable R|<local>/url|"];
15 [label="Access variable R|<local>/url|"]; 15 [label="Access variable R|<local>/url|"];
16 [label="Function call: <Unresolved name: HttpRequests>#.<Unresolved name: request>#(R|<local>/url|)"]; 16 [label="Function call: <Unresolved name: HttpRequests>#.<Unresolved name: request>#(R|<local>/url|)"];
17 [label="Function call: <Unresolved name: HttpRequests>#.<Unresolved name: request>#(R|<local>/url|).<Unresolved name: connect>#(<L> = connect@fun <anonymous>(): R|ERROR CLASS: Unresolved name: fromJson| { 17 [label="Function call: <Unresolved name: HttpRequests>#.<Unresolved name: request>#(R|<local>/url|).<Unresolved name: connect>#(<L> = connect@fun <anonymous>(): R|ERROR CLASS: Unresolved name: fromJson| {
<Unresolved name: GsonBuilder>#().<Unresolved name: create>#().<Unresolved name: fromJson>#(<Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#(), <getClass>(Q|kotlin/Array|).R|kotlin/jvm/java|) <Unresolved name: GsonBuilder>#().<Unresolved name: create>#().<Unresolved name: fromJson>#(<Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#(), <getClass>(Q|kotlin/Array|).R|kotlin/jvm/java|)
} }
)"]; )"];
18 [label="Exit block"]; 18 [label="Exit block"];
} }
19 [label="Try main block exit"]; 19 [label="Try main block exit"];
}
subgraph cluster_4 {
color=blue
20 [label="Catch enter"];
subgraph cluster_5 {
color=blue
21 [label="Enter block"];
22 [label="Const: String(Can't parse json response)"];
23 [label="Access variable R|<local>/syntaxException|"];
24 [label="Access variable R|<local>/syntaxException|"];
25 [label="Access variable R|<local>/syntaxException|"];
26 [label="Function call: <Unresolved name: ResponseParseException>#(String(Can't parse json response), R|<local>/syntaxException|)"];
27 [label="Throw: throw <Unresolved name: ResponseParseException>#(String(Can't parse json response), R|<local>/syntaxException|)"];
28 [label="Stub" style="filled" fillcolor=gray];
29 [label="Exit block" style="filled" fillcolor=gray];
}
30 [label="Catch exit" style="filled" fillcolor=gray];
}
subgraph cluster_6 {
color=blue
31 [label="Catch enter"];
subgraph cluster_7 {
color=blue
32 [label="Enter block"];
33 [label="Access variable R|<local>/ioException|"];
34 [label="Access variable R|<local>/ioException|"];
35 [label="Access variable R|<local>/ioException|"];
36 [label="Function call: <Unresolved name: IOException>#(R|<local>/ioException|)"];
37 [label="Throw: throw <Unresolved name: IOException>#(R|<local>/ioException|)"];
38 [label="Stub" style="filled" fillcolor=gray];
39 [label="Exit block" style="filled" fillcolor=gray];
}
40 [label="Catch exit" style="filled" fillcolor=gray];
}
41 [label="Try expression exit"];
}
42 [label="Variable declaration: lval pluginDTOs: R|kotlin/Array<ERROR CLASS: Symbol not found, for `PluginDTO`>|"];
43 [label="Exit function fetchPluginReleaseDate" style="filled" fillcolor=red];
}
subgraph cluster_8 {
color=blue
44 [label="Enter annotation"];
45 [label="Access variable <Unresolved name: IOException>#"];
46 [label="Access variable <Unresolved name: ResponseParseException>#"];
47 [label="Exit annotation"];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {43 31 20 11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {41};
20 -> {43 21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {43};
27 -> {28} [style=dotted];
28 -> {29} [style=dotted];
29 -> {30} [style=dotted];
30 -> {41} [style=dotted];
31 -> {43 32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {43};
37 -> {38} [style=dotted];
38 -> {39} [style=dotted];
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
subgraph cluster_9 {
color=red
48 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
49 [label="Function call: <Unresolved name: GsonBuilder>#()"];
50 [label="Function call: <Unresolved name: GsonBuilder>#().<Unresolved name: create>#()"];
51 [label="Access variable <Unresolved name: it>#"];
52 [label="Access variable <Unresolved name: inputStream>#"];
53 [label="Function call: <Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#()"];
54 [label="Access variable R|kotlin/jvm/java|"];
55 [label="Access variable R|kotlin/jvm/java|"];
56 [label="Access variable R|kotlin/jvm/java|"];
57 [label="Function call: <Unresolved name: GsonBuilder>#().<Unresolved name: create>#().<Unresolved name: fromJson>#(<Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#(), <getClass>(Q|kotlin/Array|).R|kotlin/jvm/java|)"];
58 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_10 {
color=red
59 [label="Enter function close" style="filled" fillcolor=red];
60 [label="Exit function close" style="filled" fillcolor=red];
}
59 -> {60};
subgraph cluster_11 {
color=red
61 [label="Enter function closeFinally" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
62 [label="Enter when"];
subgraph cluster_13 {
color=blue
63 [label="Enter when branch condition "];
64 [label="Access variable this@R|/closeFinally|"];
65 [label="Const: Null(null)"];
66 [label="Operator =="];
67 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
68 [label="Enter when branch condition "];
69 [label="Access variable R|<local>/cause|"];
70 [label="Const: Null(null)"];
71 [label="Operator =="];
72 [label="Exit when branch condition"];
}
subgraph cluster_15 {
color=blue
73 [label="Enter when branch condition else"];
74 [label="Exit when branch condition"];
}
75 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
76 [label="Enter block"];
subgraph cluster_17 {
color=blue
77 [label="Try expression enter"];
subgraph cluster_18 {
color=blue
78 [label="Try main block enter"];
subgraph cluster_19 {
color=blue
79 [label="Enter block"];
80 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
81 [label="Exit block"];
} }
82 [label="Try main block exit"]; subgraph cluster_4 {
} color=blue
subgraph cluster_20 { 20 [label="Catch enter"];
color=blue subgraph cluster_5 {
83 [label="Catch enter"]; color=blue
subgraph cluster_21 { 21 [label="Enter block"];
color=blue 22 [label="Const: String(Can't parse json response)"];
84 [label="Enter block"]; 23 [label="Access variable R|<local>/syntaxException|"];
85 [label="Access variable R|<local>/cause|"]; 24 [label="Access variable R|<local>/syntaxException|"];
86 [label="Access variable R|<local>/closeException|"]; 25 [label="Access variable R|<local>/syntaxException|"];
87 [label="Function call: R|<local>/cause|.R|kotlin/addSuppressed|(R|<local>/closeException|)"]; 26 [label="Function call: <Unresolved name: ResponseParseException>#(String(Can't parse json response), R|<local>/syntaxException|)"];
88 [label="Exit block"]; 27 [label="Throw: throw <Unresolved name: ResponseParseException>#(String(Can't parse json response), R|<local>/syntaxException|)"];
28 [label="Stub" style="filled" fillcolor=gray];
29 [label="Exit block" style="filled" fillcolor=gray];
}
30 [label="Catch exit" style="filled" fillcolor=gray];
} }
89 [label="Catch exit"]; subgraph cluster_6 {
} color=blue
90 [label="Try expression exit"]; 31 [label="Catch enter"];
subgraph cluster_7 {
color=blue
32 [label="Enter block"];
33 [label="Access variable R|<local>/ioException|"];
34 [label="Access variable R|<local>/ioException|"];
35 [label="Access variable R|<local>/ioException|"];
36 [label="Function call: <Unresolved name: IOException>#(R|<local>/ioException|)"];
37 [label="Throw: throw <Unresolved name: IOException>#(R|<local>/ioException|)"];
38 [label="Stub" style="filled" fillcolor=gray];
39 [label="Exit block" style="filled" fillcolor=gray];
}
40 [label="Catch exit" style="filled" fillcolor=gray];
}
41 [label="Try expression exit"];
} }
91 [label="Exit block"]; 42 [label="Variable declaration: lval pluginDTOs: R|kotlin/Array<ERROR CLASS: Symbol not found, for `PluginDTO`>|"];
} 43 [label="Exit function fetchPluginReleaseDate" style="filled" fillcolor=red];
92 [label="Exit when branch result"];
93 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
94 [label="Enter block"];
95 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
96 [label="Exit block"];
}
97 [label="Exit when branch result"];
98 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
99 [label="Enter block"];
100 [label="Exit block"];
}
101 [label="Exit when branch result"];
102 [label="Exit when"];
} }
103 [label="Jump: ^closeFinally when () { subgraph cluster_8 {
color=blue
44 [label="Enter annotation"];
45 [label="Access variable <Unresolved name: IOException>#"];
46 [label="Access variable <Unresolved name: ResponseParseException>#"];
47 [label="Exit annotation"];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {43 31 20 11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {41};
20 -> {43 21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {43};
27 -> {28} [style=dotted];
28 -> {29} [style=dotted];
29 -> {30} [style=dotted];
30 -> {41} [style=dotted];
31 -> {43 32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {43};
37 -> {38} [style=dotted];
38 -> {39} [style=dotted];
39 -> {40} [style=dotted];
40 -> {41} [style=dotted];
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
subgraph cluster_9 {
color=red
48 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
49 [label="Function call: <Unresolved name: GsonBuilder>#()"];
50 [label="Function call: <Unresolved name: GsonBuilder>#().<Unresolved name: create>#()"];
51 [label="Access variable <Unresolved name: it>#"];
52 [label="Access variable <Unresolved name: inputStream>#"];
53 [label="Function call: <Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#()"];
54 [label="Access variable R|kotlin/jvm/java|"];
55 [label="Access variable R|kotlin/jvm/java|"];
56 [label="Access variable R|kotlin/jvm/java|"];
57 [label="Function call: <Unresolved name: GsonBuilder>#().<Unresolved name: create>#().<Unresolved name: fromJson>#(<Unresolved name: it>#.<Unresolved name: inputStream>#.<Ambiguity: reader, [kotlin/io/reader, kotlin/io/reader, kotlin/io/reader]>#(), <getClass>(Q|kotlin/Array|).R|kotlin/jvm/java|)"];
58 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_10 {
color=red
59 [label="Enter function close" style="filled" fillcolor=red];
60 [label="Exit function close" style="filled" fillcolor=red];
}
59 -> {60};
subgraph cluster_11 {
color=red
61 [label="Enter function closeFinally" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
62 [label="Enter when"];
subgraph cluster_13 {
color=blue
63 [label="Enter when branch condition "];
64 [label="Access variable this@R|/closeFinally|"];
65 [label="Const: Null(null)"];
66 [label="Operator =="];
67 [label="Exit when branch condition"];
}
subgraph cluster_14 {
color=blue
68 [label="Enter when branch condition "];
69 [label="Access variable R|<local>/cause|"];
70 [label="Const: Null(null)"];
71 [label="Operator =="];
72 [label="Exit when branch condition"];
}
subgraph cluster_15 {
color=blue
73 [label="Enter when branch condition else"];
74 [label="Exit when branch condition"];
}
75 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
76 [label="Enter block"];
subgraph cluster_17 {
color=blue
77 [label="Try expression enter"];
subgraph cluster_18 {
color=blue
78 [label="Try main block enter"];
subgraph cluster_19 {
color=blue
79 [label="Enter block"];
80 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
81 [label="Exit block"];
}
82 [label="Try main block exit"];
}
subgraph cluster_20 {
color=blue
83 [label="Catch enter"];
subgraph cluster_21 {
color=blue
84 [label="Enter block"];
85 [label="Access variable R|<local>/cause|"];
86 [label="Access variable R|<local>/closeException|"];
87 [label="Function call: R|<local>/cause|.R|kotlin/addSuppressed|(R|<local>/closeException|)"];
88 [label="Exit block"];
}
89 [label="Catch exit"];
}
90 [label="Try expression exit"];
}
91 [label="Exit block"];
}
92 [label="Exit when branch result"];
93 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
94 [label="Enter block"];
95 [label="Function call: this@R|/closeFinally|.R|/AutoCloseable.close|()"];
96 [label="Exit block"];
}
97 [label="Exit when branch result"];
98 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
99 [label="Enter block"];
100 [label="Exit block"];
}
101 [label="Exit when branch result"];
102 [label="Exit when"];
}
103 [label="Jump: ^closeFinally when () {
==(this@R|/closeFinally|, Null(null)) -> { ==(this@R|/closeFinally|, Null(null)) -> {
} }
==(R|<local>/cause|, Null(null)) -> { ==(R|<local>/cause|, Null(null)) -> {
@@ -263,155 +263,155 @@ digraph complex_kt {
} }
} }
"]; "];
104 [label="Stub" style="filled" fillcolor=gray]; 104 [label="Stub" style="filled" fillcolor=gray];
105 [label="Exit function closeFinally" style="filled" fillcolor=red]; 105 [label="Exit function closeFinally" style="filled" fillcolor=red];
}
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {98 68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {93 73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {105 83 79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {90};
83 -> {105 84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {102};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {102};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {105};
103 -> {104} [style=dotted];
104 -> {105} [style=dotted];
subgraph cluster_24 {
color=red
106 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red];
107 [label="Access variable this@R|/firstIsInstanceOrNull|"];
108 [label="Variable declaration: lval <range>: R|kotlin/sequences/Sequence<*>|"];
109 [label="Access variable R|<local>/<range>|"];
110 [label="Function call: R|<local>/<range>|.R|FakeOverride<kotlin/sequences/Sequence.iterator: R|kotlin/collections/Iterator<kotlin/Any?>|>|()"];
111 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
subgraph cluster_25 {
color=blue
112 [label="Enter while loop"];
subgraph cluster_26 {
color=blue
113 [label="Enter loop condition"];
114 [label="Access variable R|<local>/<iterator>|"];
115 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
116 [label="Exit loop condition"];
}
subgraph cluster_27 {
color=blue
117 [label="Enter loop block"];
subgraph cluster_28 {
color=blue
118 [label="Enter block"];
119 [label="Access variable R|<local>/<iterator>|"];
120 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"];
121 [label="Variable declaration: lval element: R|kotlin/Any?|"];
subgraph cluster_29 {
color=blue
122 [label="Enter when"];
subgraph cluster_30 {
color=blue
123 [label="Enter when branch condition "];
124 [label="Access variable R|<local>/element|"];
125 [label="Type operator: element is T"];
126 [label="Exit when branch condition"];
}
127 [label="Synthetic else branch"];
128 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
129 [label="Enter block"];
130 [label="Access variable R|<local>/element|"];
131 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"];
132 [label="Stub" style="filled" fillcolor=gray];
133 [label="Exit block" style="filled" fillcolor=gray];
}
134 [label="Exit when branch result" style="filled" fillcolor=gray];
135 [label="Exit when"];
}
136 [label="Exit block"];
}
137 [label="Exit loop block"];
}
138 [label="Exit whileloop"];
} }
139 [label="Const: Null(null)"];
140 [label="Jump: ^firstIsInstanceOrNull Null(null)"];
141 [label="Stub" style="filled" fillcolor=gray];
142 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red];
}
106 -> {107}; 61 -> {62};
107 -> {108}; 62 -> {63};
108 -> {109}; 63 -> {64};
109 -> {110}; 64 -> {65};
110 -> {111}; 65 -> {66};
111 -> {112}; 66 -> {67};
112 -> {113}; 67 -> {98 68};
113 -> {114}; 68 -> {69};
114 -> {115}; 69 -> {70};
115 -> {116}; 70 -> {71};
116 -> {138 117}; 71 -> {72};
117 -> {118}; 72 -> {93 73};
118 -> {119}; 73 -> {74};
119 -> {120}; 74 -> {75};
120 -> {121}; 75 -> {76};
121 -> {122}; 76 -> {77};
122 -> {123}; 77 -> {78};
123 -> {124}; 78 -> {105 83 79};
124 -> {125}; 79 -> {80};
125 -> {126}; 80 -> {81};
126 -> {128 127}; 81 -> {82};
127 -> {135}; 82 -> {90};
128 -> {129}; 83 -> {105 84};
129 -> {130}; 84 -> {85};
130 -> {131}; 85 -> {86};
131 -> {142}; 86 -> {87};
131 -> {132} [style=dotted]; 87 -> {88};
132 -> {133} [style=dotted]; 88 -> {89};
133 -> {134} [style=dotted]; 89 -> {90};
134 -> {135} [style=dotted]; 90 -> {91};
135 -> {136}; 91 -> {92};
136 -> {137}; 92 -> {102};
137 -> {113}; 93 -> {94};
138 -> {139}; 94 -> {95};
139 -> {140}; 95 -> {96};
140 -> {142}; 96 -> {97};
140 -> {141} [style=dotted]; 97 -> {102};
141 -> {142} [style=dotted]; 98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {105};
103 -> {104} [style=dotted];
104 -> {105} [style=dotted];
subgraph cluster_24 {
color=red
106 [label="Enter function firstIsInstanceOrNull" style="filled" fillcolor=red];
107 [label="Access variable this@R|/firstIsInstanceOrNull|"];
108 [label="Variable declaration: lval <range>: R|kotlin/sequences/Sequence<*>|"];
109 [label="Access variable R|<local>/<range>|"];
110 [label="Function call: R|<local>/<range>|.R|FakeOverride<kotlin/sequences/Sequence.iterator: R|kotlin/collections/Iterator<kotlin/Any?>|>|()"];
111 [label="Variable declaration: lval <iterator>: R|kotlin/collections/Iterator<kotlin/Any?>|"];
subgraph cluster_25 {
color=blue
112 [label="Enter while loop"];
subgraph cluster_26 {
color=blue
113 [label="Enter loop condition"];
114 [label="Access variable R|<local>/<iterator>|"];
115 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
116 [label="Exit loop condition"];
}
subgraph cluster_27 {
color=blue
117 [label="Enter loop block"];
subgraph cluster_28 {
color=blue
118 [label="Enter block"];
119 [label="Access variable R|<local>/<iterator>|"];
120 [label="Function call: R|<local>/<iterator>|.R|FakeOverride<kotlin/collections/Iterator.next: R|kotlin/Any?|>|()"];
121 [label="Variable declaration: lval element: R|kotlin/Any?|"];
subgraph cluster_29 {
color=blue
122 [label="Enter when"];
subgraph cluster_30 {
color=blue
123 [label="Enter when branch condition "];
124 [label="Access variable R|<local>/element|"];
125 [label="Type operator: element is T"];
126 [label="Exit when branch condition"];
}
127 [label="Synthetic else branch"];
128 [label="Enter when branch result"];
subgraph cluster_31 {
color=blue
129 [label="Enter block"];
130 [label="Access variable R|<local>/element|"];
131 [label="Jump: ^firstIsInstanceOrNull R|<local>/element|"];
132 [label="Stub" style="filled" fillcolor=gray];
133 [label="Exit block" style="filled" fillcolor=gray];
}
134 [label="Exit when branch result" style="filled" fillcolor=gray];
135 [label="Exit when"];
}
136 [label="Exit block"];
}
137 [label="Exit loop block"];
}
138 [label="Exit whileloop"];
}
139 [label="Const: Null(null)"];
140 [label="Jump: ^firstIsInstanceOrNull Null(null)"];
141 [label="Stub" style="filled" fillcolor=gray];
142 [label="Exit function firstIsInstanceOrNull" style="filled" fillcolor=red];
}
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {138 117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {128 127};
127 -> {135};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {142};
131 -> {132} [style=dotted];
132 -> {133} [style=dotted];
133 -> {134} [style=dotted];
134 -> {135} [style=dotted];
135 -> {136};
136 -> {137};
137 -> {113};
138 -> {139};
139 -> {140};
140 -> {142};
140 -> {141} [style=dotted];
141 -> {142} [style=dotted];
} }
+51 -51
View File
@@ -1,63 +1,63 @@
digraph emptyWhen_kt { digraph emptyWhen_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter when"]; 1 [label="Enter when"];
2 [label="Synthetic else branch"]; 2 [label="Synthetic else branch"];
3 [label="Exit when"]; 3 [label="Exit when"];
}
4 [label="Exit function test_1" style="filled" fillcolor=red];
} }
4 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
5 [label="Enter function test_2" style="filled" fillcolor=red]; 5 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter when"]; 6 [label="Enter when"];
7 [label="Access variable R|<local>/x|"]; 7 [label="Access variable R|<local>/x|"];
8 [label="Synthetic else branch"]; 8 [label="Synthetic else branch"];
9 [label="Exit when"]; 9 [label="Exit when"];
}
10 [label="Exit function test_2" style="filled" fillcolor=red];
} }
10 [label="Exit function test_2" style="filled" fillcolor=red];
}
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
11 [label="Enter function test_3" style="filled" fillcolor=red]; 11 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
12 [label="Enter when"]; 12 [label="Enter when"];
13 [label="Access variable R|<local>/x|"]; 13 [label="Access variable R|<local>/x|"];
14 [label="Variable declaration: lval y: R|kotlin/Int|"]; 14 [label="Variable declaration: lval y: R|kotlin/Int|"];
15 [label="Synthetic else branch"]; 15 [label="Synthetic else branch"];
16 [label="Exit when"]; 16 [label="Exit when"];
}
17 [label="Exit function test_3" style="filled" fillcolor=red];
} }
17 [label="Exit function test_3" style="filled" fillcolor=red];
}
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
} }
+15 -15
View File
@@ -1,22 +1,22 @@
digraph initBlock_kt { digraph initBlock_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red]; 1 [label="Exit function <init>" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function <init>" style="filled" fillcolor=red]; 2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Exit function <init>" style="filled" fillcolor=red]; 3 [label="Exit function <init>" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
} }
@@ -1,30 +1,30 @@
digraph initBlockAndInPlaceLambda_kt { digraph initBlockAndInPlaceLambda_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function getter" style="filled" fillcolor=red]; 0 [label="Enter function getter" style="filled" fillcolor=red];
1 [label="Exit function getter" style="filled" fillcolor=red]; 1 [label="Exit function getter" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter property" style="filled" fillcolor=red]; 2 [label="Enter property" style="filled" fillcolor=red];
3 [label="Exit property" style="filled" fillcolor=red]; 3 [label="Exit property" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function <init>" style="filled" fillcolor=red]; 4 [label="Enter function <init>" style="filled" fillcolor=red];
5 [label="Exit function <init>" style="filled" fillcolor=red]; 5 [label="Exit function <init>" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
} }
+343 -347
View File
@@ -1,363 +1,359 @@
digraph jumps_kt { digraph jumps_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue
1 [label="Enter when"];
subgraph cluster_2 {
color=blue
2 [label="Enter when branch condition "];
3 [label="Access variable R|<local>/x|"];
4 [label="Const: Null(null)"];
5 [label="Operator =="];
6 [label="Exit when branch condition"];
}
subgraph cluster_3 {
color=blue
7 [label="Enter when branch condition else"];
8 [label="Exit when branch condition"];
}
9 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
10 [label="Enter block"];
11 [label="Access variable R|<local>/x|"];
12 [label="Exit block"];
}
13 [label="Exit when branch result"];
14 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
15 [label="Enter block"];
16 [label="Function call: R|kotlin/KotlinNullPointerException.KotlinNullPointerException|()"];
17 [label="Throw: throw R|kotlin/KotlinNullPointerException.KotlinNullPointerException|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit block" style="filled" fillcolor=gray];
}
20 [label="Exit when branch result" style="filled" fillcolor=gray];
21 [label="Exit when"];
}
22 [label="Variable declaration: lval y: R|kotlin/Int|"];
23 [label="Access variable R|<local>/y|"];
24 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
25 [label="Access variable R|<local>/x|"];
26 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
27 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {14 7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {21};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {27};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
subgraph cluster_6 {
color=red
28 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
29 [label="Enter when"];
subgraph cluster_8 {
color=blue
30 [label="Enter when branch condition "];
31 [label="Access variable R|<local>/x|"];
32 [label="Const: Null(null)"];
33 [label="Operator =="];
34 [label="Exit when branch condition"];
}
subgraph cluster_9 {
color=blue
35 [label="Enter when branch condition else"];
36 [label="Exit when branch condition"];
}
37 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/x|"];
40 [label="Exit block"];
}
41 [label="Exit when branch result"];
42 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
43 [label="Enter block"];
44 [label="Access variable R|<local>/x|"];
45 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Exit when"];
}
48 [label="Variable declaration: lval y: R|kotlin/Int?|"];
49 [label="Access variable R|<local>/y|"];
50 [label="Function call: R|<local>/y|.<Ambiguity: inc, [kotlin/inc, kotlin/inc]>#()"];
51 [label="Exit function test_2" style="filled" fillcolor=red];
}
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {42 35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {47};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
subgraph cluster_12 {
color=red
52 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
53 [label="Enter while loop"];
subgraph cluster_14 {
color=blue
54 [label="Enter loop condition"];
55 [label="Const: Boolean(true)"];
56 [label="Exit loop condition"];
}
subgraph cluster_15 {
color=blue
57 [label="Enter loop block"];
subgraph cluster_16 {
color=blue
58 [label="Enter block"];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: x as Int"];
61 [label="Jump: break@@@[Boolean(true)] "];
62 [label="Stub" style="filled" fillcolor=gray];
63 [label="Exit block" style="filled" fillcolor=gray];
}
64 [label="Exit loop block" style="filled" fillcolor=gray];
}
65 [label="Stub" style="filled" fillcolor=gray];
66 [label="Exit whileloop"];
}
67 [label="Access variable R|<local>/x|"];
68 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
69 [label="Exit function test_3" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
56 -> {65} [style=dotted];
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {66};
61 -> {62} [style=dotted];
62 -> {63} [style=dotted];
63 -> {64} [style=dotted];
64 -> {54} [style=dotted];
65 -> {66} [style=dotted];
66 -> {67};
67 -> {68};
68 -> {69};
subgraph cluster_17 {
color=red
70 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
71 [label="Enter do-while loop"];
subgraph cluster_19 {
color=blue
72 [label="Enter loop block"];
subgraph cluster_20 {
color=blue
73 [label="Enter block"];
74 [label="Access variable R|<local>/x|"];
75 [label="Type operator: x as Int"];
76 [label="Jump: break@@@[Boolean(true)] "];
77 [label="Stub" style="filled" fillcolor=gray];
78 [label="Exit block" style="filled" fillcolor=gray];
}
79 [label="Exit loop block" style="filled" fillcolor=gray];
}
subgraph cluster_21 {
color=blue
80 [label="Enter loop condition" style="filled" fillcolor=gray];
81 [label="Const: Boolean(true)" style="filled" fillcolor=gray];
82 [label="Exit loop condition" style="filled" fillcolor=gray];
}
83 [label="Stub" style="filled" fillcolor=gray];
84 [label="Exit do-whileloop"];
}
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
87 [label="Exit function test_4" style="filled" fillcolor=red];
}
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {84};
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {82} [style=dotted];
82 -> {72 83} [style=dotted];
83 -> {84} [style=dotted];
84 -> {85};
85 -> {86};
86 -> {87};
subgraph cluster_22 {
color=red
88 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
89 [label="Enter while loop"];
subgraph cluster_24 {
color=blue
90 [label="Enter loop condition"];
91 [label="Access variable R|<local>/b|"];
92 [label="Exit loop condition"];
}
subgraph cluster_25 {
color=blue
93 [label="Enter loop block"];
subgraph cluster_26 {
color=blue
94 [label="Enter block"];
subgraph cluster_27 {
color=blue color=blue
95 [label="Enter when"]; 1 [label="Enter when"];
subgraph cluster_28 { subgraph cluster_2 {
color=blue color=blue
96 [label="Enter when branch condition "]; 2 [label="Enter when branch condition "];
97 [label="Access variable R|<local>/b|"]; 3 [label="Access variable R|<local>/x|"];
98 [label="Exit when branch condition"]; 4 [label="Const: Null(null)"];
5 [label="Operator =="];
6 [label="Exit when branch condition"];
} }
99 [label="Synthetic else branch"]; subgraph cluster_3 {
100 [label="Enter when branch result"]; color=blue
subgraph cluster_29 { 7 [label="Enter when branch condition else"];
color=blue 8 [label="Exit when branch condition"];
101 [label="Enter block"];
102 [label="Jump: continue@@@[R|<local>/b|] "];
103 [label="Stub" style="filled" fillcolor=gray];
104 [label="Exit block" style="filled" fillcolor=gray];
} }
105 [label="Exit when branch result" style="filled" fillcolor=gray]; 9 [label="Enter when branch result"];
106 [label="Exit when"]; subgraph cluster_4 {
} color=blue
107 [label="Exit block"]; 10 [label="Enter block"];
11 [label="Access variable R|<local>/x|"];
12 [label="Exit block"];
}
13 [label="Exit when branch result"];
14 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
15 [label="Enter block"];
16 [label="Function call: R|kotlin/KotlinNullPointerException.KotlinNullPointerException|()"];
17 [label="Throw: throw R|kotlin/KotlinNullPointerException.KotlinNullPointerException|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit block" style="filled" fillcolor=gray];
}
20 [label="Exit when branch result" style="filled" fillcolor=gray];
21 [label="Exit when"];
} }
108 [label="Exit loop block"]; 22 [label="Variable declaration: lval y: R|kotlin/Int|"];
} 23 [label="Access variable R|<local>/y|"];
109 [label="Exit whileloop"]; 24 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
25 [label="Access variable R|<local>/x|"];
26 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
27 [label="Exit function test_1" style="filled" fillcolor=red];
} }
110 [label="Exit function test_5" style="filled" fillcolor=red];
}
88 -> {89}; 0 -> {1};
89 -> {90}; 1 -> {2};
90 -> {91}; 2 -> {3};
91 -> {92}; 3 -> {4};
92 -> {109 93}; 4 -> {5};
93 -> {94}; 5 -> {6};
94 -> {95}; 6 -> {14 7};
95 -> {96}; 7 -> {8};
96 -> {97}; 8 -> {9};
97 -> {98}; 9 -> {10};
98 -> {100 99}; 10 -> {11};
99 -> {106}; 11 -> {12};
100 -> {101}; 12 -> {13};
101 -> {102}; 13 -> {21};
102 -> {89}; 14 -> {15};
102 -> {103} [style=dotted]; 15 -> {16};
103 -> {104} [style=dotted]; 16 -> {17};
104 -> {105} [style=dotted]; 17 -> {27};
105 -> {106} [style=dotted]; 17 -> {18} [style=dotted];
106 -> {107}; 18 -> {19} [style=dotted];
107 -> {108}; 19 -> {20} [style=dotted];
108 -> {90}; 20 -> {21} [style=dotted];
109 -> {110}; 21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
subgraph cluster_30 { subgraph cluster_6 {
color=red color=red
111 [label="Enter function run" style="filled" fillcolor=red]; 28 [label="Enter function test_2" style="filled" fillcolor=red];
112 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; subgraph cluster_7 {
113 [label="Exit function run" style="filled" fillcolor=red]; color=blue
} 29 [label="Enter when"];
subgraph cluster_8 {
111 -> {112}; color=blue
112 -> {113}; 30 [label="Enter when branch condition "];
31 [label="Access variable R|<local>/x|"];
subgraph cluster_31 { 32 [label="Const: Null(null)"];
color=red 33 [label="Operator =="];
114 [label="Enter function test_6" style="filled" fillcolor=red]; 34 [label="Exit when branch condition"];
subgraph cluster_32 { }
color=blue subgraph cluster_9 {
115 [label="Enter function anonymousFunction"]; color=blue
116 [label="Jump: ^@run Unit"]; 35 [label="Enter when branch condition else"];
117 [label="Stub" style="filled" fillcolor=gray]; 36 [label="Exit when branch condition"];
118 [label="Exit function anonymousFunction"]; }
37 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/x|"];
40 [label="Exit block"];
}
41 [label="Exit when branch result"];
42 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
43 [label="Enter block"];
44 [label="Access variable R|<local>/x|"];
45 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Exit when"];
}
48 [label="Variable declaration: lval y: R|kotlin/Int?|"];
49 [label="Access variable R|<local>/y|"];
50 [label="Function call: R|<local>/y|.<Ambiguity: inc, [kotlin/inc, kotlin/inc]>#()"];
51 [label="Exit function test_2" style="filled" fillcolor=red];
} }
119 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {42 35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {47};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
subgraph cluster_12 {
color=red
52 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
53 [label="Enter while loop"];
subgraph cluster_14 {
color=blue
54 [label="Enter loop condition"];
55 [label="Const: Boolean(true)"];
56 [label="Exit loop condition"];
}
subgraph cluster_15 {
color=blue
57 [label="Enter loop block"];
subgraph cluster_16 {
color=blue
58 [label="Enter block"];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: x as Int"];
61 [label="Jump: break@@@[Boolean(true)] "];
62 [label="Stub" style="filled" fillcolor=gray];
63 [label="Exit block" style="filled" fillcolor=gray];
}
64 [label="Exit loop block" style="filled" fillcolor=gray];
}
65 [label="Exit whileloop"];
}
66 [label="Access variable R|<local>/x|"];
67 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
68 [label="Exit function test_3" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
56 -> {65} [style=dotted];
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {65};
61 -> {62} [style=dotted];
62 -> {63} [style=dotted];
63 -> {64} [style=dotted];
64 -> {54} [style=dotted];
65 -> {66};
66 -> {67};
67 -> {68};
subgraph cluster_17 {
color=red
69 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
70 [label="Enter do-while loop"];
subgraph cluster_19 {
color=blue
71 [label="Enter loop block"];
subgraph cluster_20 {
color=blue
72 [label="Enter block"];
73 [label="Access variable R|<local>/x|"];
74 [label="Type operator: x as Int"];
75 [label="Jump: break@@@[Boolean(true)] "];
76 [label="Stub" style="filled" fillcolor=gray];
77 [label="Exit block" style="filled" fillcolor=gray];
}
78 [label="Exit loop block" style="filled" fillcolor=gray];
}
subgraph cluster_21 {
color=blue
79 [label="Enter loop condition" style="filled" fillcolor=gray];
80 [label="Const: Boolean(true)" style="filled" fillcolor=gray];
81 [label="Exit loop condition" style="filled" fillcolor=gray];
}
82 [label="Exit do-whileloop"];
}
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
85 [label="Exit function test_4" style="filled" fillcolor=red];
}
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {82};
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {71 82} [style=dotted];
82 -> {83};
83 -> {84};
84 -> {85};
subgraph cluster_22 {
color=red
86 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
87 [label="Enter while loop"];
subgraph cluster_24 {
color=blue
88 [label="Enter loop condition"];
89 [label="Access variable R|<local>/b|"];
90 [label="Exit loop condition"];
}
subgraph cluster_25 {
color=blue
91 [label="Enter loop block"];
subgraph cluster_26 {
color=blue
92 [label="Enter block"];
subgraph cluster_27 {
color=blue
93 [label="Enter when"];
subgraph cluster_28 {
color=blue
94 [label="Enter when branch condition "];
95 [label="Access variable R|<local>/b|"];
96 [label="Exit when branch condition"];
}
97 [label="Synthetic else branch"];
98 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
99 [label="Enter block"];
100 [label="Jump: continue@@@[R|<local>/b|] "];
101 [label="Stub" style="filled" fillcolor=gray];
102 [label="Exit block" style="filled" fillcolor=gray];
}
103 [label="Exit when branch result" style="filled" fillcolor=gray];
104 [label="Exit when"];
}
105 [label="Exit block"];
}
106 [label="Exit loop block"];
}
107 [label="Exit whileloop"];
}
108 [label="Exit function test_5" style="filled" fillcolor=red];
}
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {107 91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {98 97};
97 -> {104};
98 -> {99};
99 -> {100};
100 -> {87};
100 -> {101} [style=dotted];
101 -> {102} [style=dotted];
102 -> {103} [style=dotted];
103 -> {104} [style=dotted];
104 -> {105};
105 -> {106};
106 -> {88};
107 -> {108};
subgraph cluster_30 {
color=red
109 [label="Enter function run" style="filled" fillcolor=red];
110 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
111 [label="Exit function run" style="filled" fillcolor=red];
}
109 -> {110};
110 -> {111};
subgraph cluster_31 {
color=red
112 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_32 {
color=blue
113 [label="Enter function anonymousFunction"];
114 [label="Jump: ^@run Unit"];
115 [label="Stub" style="filled" fillcolor=gray];
116 [label="Exit function anonymousFunction"];
}
117 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^@run Unit ^@run Unit
} }
)"]; )"];
120 [label="Exit function test_6" style="filled" fillcolor=red]; 118 [label="Exit function test_6" style="filled" fillcolor=red];
} }
114 -> {115}; 112 -> {113};
115 -> {118 116}; 113 -> {116 114};
116 -> {118}; 114 -> {116};
116 -> {117} [style=dotted]; 114 -> {115} [style=dotted];
117 -> {118} [style=dotted]; 115 -> {116} [style=dotted];
118 -> {115 119}; 116 -> {113 117};
119 -> {120}; 117 -> {118};
} }
+363
View File
@@ -0,0 +1,363 @@
digraph jumps_kt {
graph [splines=ortho nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
1 [label="Enter when"];
subgraph cluster_2 {
color=blue
2 [label="Enter when branch condition "];
3 [label="Access variable R|<local>/x|"];
4 [label="Const: Null(null)"];
5 [label="Operator =="];
6 [label="Exit when branch condition"];
}
subgraph cluster_3 {
color=blue
7 [label="Enter when branch condition else"];
8 [label="Exit when branch condition"];
}
9 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
10 [label="Enter block"];
11 [label="Access variable R|<local>/x|"];
12 [label="Exit block"];
}
13 [label="Exit when branch result"];
14 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
15 [label="Enter block"];
16 [label="Function call: R|kotlin/KotlinNullPointerException.KotlinNullPointerException|()"];
17 [label="Throw: throw R|kotlin/KotlinNullPointerException.KotlinNullPointerException|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit block" style="filled" fillcolor=gray];
}
20 [label="Exit when branch result" style="filled" fillcolor=gray];
21 [label="Exit when"];
}
22 [label="Variable declaration: lval y: R|kotlin/Int|"];
23 [label="Access variable R|<local>/y|"];
24 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
25 [label="Access variable R|<local>/x|"];
26 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
27 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {14 7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {21};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {27};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
subgraph cluster_6 {
color=red
28 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
29 [label="Enter when"];
subgraph cluster_8 {
color=blue
30 [label="Enter when branch condition "];
31 [label="Access variable R|<local>/x|"];
32 [label="Const: Null(null)"];
33 [label="Operator =="];
34 [label="Exit when branch condition"];
}
subgraph cluster_9 {
color=blue
35 [label="Enter when branch condition else"];
36 [label="Exit when branch condition"];
}
37 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/x|"];
40 [label="Exit block"];
}
41 [label="Exit when branch result"];
42 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
43 [label="Enter block"];
44 [label="Access variable R|<local>/x|"];
45 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Exit when"];
}
48 [label="Variable declaration: lval y: R|kotlin/Int?|"];
49 [label="Access variable R|<local>/y|"];
50 [label="Function call: R|<local>/y|.<Ambiguity: inc, [kotlin/inc, kotlin/inc]>#()"];
51 [label="Exit function test_2" style="filled" fillcolor=red];
}
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {42 35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {47};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
subgraph cluster_12 {
color=red
52 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
53 [label="Enter while loop"];
subgraph cluster_14 {
color=blue
54 [label="Enter loop condition"];
55 [label="Const: Boolean(true)"];
56 [label="Exit loop condition"];
}
subgraph cluster_15 {
color=blue
57 [label="Enter loop block"];
subgraph cluster_16 {
color=blue
58 [label="Enter block"];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: x as Int"];
61 [label="Jump: break@@@[Boolean(true)] "];
62 [label="Stub" style="filled" fillcolor=gray];
63 [label="Exit block" style="filled" fillcolor=gray];
}
64 [label="Exit loop block" style="filled" fillcolor=gray];
}
65 [label="Stub" style="filled" fillcolor=gray];
66 [label="Exit whileloop"];
}
67 [label="Access variable R|<local>/x|"];
68 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
69 [label="Exit function test_3" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
56 -> {65} [style=dotted];
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {66};
61 -> {62} [style=dotted];
62 -> {63} [style=dotted];
63 -> {64} [style=dotted];
64 -> {54} [style=dotted];
65 -> {66} [style=dotted];
66 -> {67};
67 -> {68};
68 -> {69};
subgraph cluster_17 {
color=red
70 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
71 [label="Enter do-while loop"];
subgraph cluster_19 {
color=blue
72 [label="Enter loop block"];
subgraph cluster_20 {
color=blue
73 [label="Enter block"];
74 [label="Access variable R|<local>/x|"];
75 [label="Type operator: x as Int"];
76 [label="Jump: break@@@[Boolean(true)] "];
77 [label="Stub" style="filled" fillcolor=gray];
78 [label="Exit block" style="filled" fillcolor=gray];
}
79 [label="Exit loop block" style="filled" fillcolor=gray];
}
subgraph cluster_21 {
color=blue
80 [label="Enter loop condition" style="filled" fillcolor=gray];
81 [label="Const: Boolean(true)" style="filled" fillcolor=gray];
82 [label="Exit loop condition" style="filled" fillcolor=gray];
}
83 [label="Stub" style="filled" fillcolor=gray];
84 [label="Exit do-whileloop"];
}
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
87 [label="Exit function test_4" style="filled" fillcolor=red];
}
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {84};
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {82} [style=dotted];
82 -> {72 83} [style=dotted];
83 -> {84} [style=dotted];
84 -> {85};
85 -> {86};
86 -> {87};
subgraph cluster_22 {
color=red
88 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
89 [label="Enter while loop"];
subgraph cluster_24 {
color=blue
90 [label="Enter loop condition"];
91 [label="Access variable R|<local>/b|"];
92 [label="Exit loop condition"];
}
subgraph cluster_25 {
color=blue
93 [label="Enter loop block"];
subgraph cluster_26 {
color=blue
94 [label="Enter block"];
subgraph cluster_27 {
color=blue
95 [label="Enter when"];
subgraph cluster_28 {
color=blue
96 [label="Enter when branch condition "];
97 [label="Access variable R|<local>/b|"];
98 [label="Exit when branch condition"];
}
99 [label="Synthetic else branch"];
100 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
101 [label="Enter block"];
102 [label="Jump: continue@@@[R|<local>/b|] "];
103 [label="Stub" style="filled" fillcolor=gray];
104 [label="Exit block" style="filled" fillcolor=gray];
}
105 [label="Exit when branch result" style="filled" fillcolor=gray];
106 [label="Exit when"];
}
107 [label="Exit block"];
}
108 [label="Exit loop block"];
}
109 [label="Exit whileloop"];
}
110 [label="Exit function test_5" style="filled" fillcolor=red];
}
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {109 93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {100 99};
99 -> {106};
100 -> {101};
101 -> {102};
102 -> {89};
102 -> {103} [style=dotted];
103 -> {104} [style=dotted];
104 -> {105} [style=dotted];
105 -> {106} [style=dotted];
106 -> {107};
107 -> {108};
108 -> {90};
109 -> {110};
subgraph cluster_30 {
color=red
111 [label="Enter function run" style="filled" fillcolor=red];
112 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
113 [label="Exit function run" style="filled" fillcolor=red];
}
111 -> {112};
112 -> {113};
subgraph cluster_31 {
color=red
114 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_32 {
color=blue
115 [label="Enter function anonymousFunction"];
116 [label="Jump: ^@run Unit"];
117 [label="Stub" style="filled" fillcolor=gray];
118 [label="Exit function anonymousFunction"];
}
119 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^@run Unit
}
)"];
120 [label="Exit function test_6" style="filled" fillcolor=red];
}
114 -> {115};
115 -> {118 116};
116 -> {118};
116 -> {117} [style=dotted];
117 -> {118} [style=dotted];
118 -> {115 119};
119 -> {120};
}
+358
View File
@@ -0,0 +1,358 @@
digraph jumps_kt {
graph [splines=ortho nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
1 [label="Enter when"];
subgraph cluster_2 {
color=blue
2 [label="Enter when branch condition "];
3 [label="Access variable R|<local>/x|"];
4 [label="Const: Null(null)"];
5 [label="Operator =="];
6 [label="Exit when branch condition"];
}
subgraph cluster_3 {
color=blue
7 [label="Enter when branch condition else"];
8 [label="Exit when branch condition"];
}
9 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
10 [label="Enter block"];
11 [label="Access variable R|<local>/x|"];
12 [label="Exit block"];
}
13 [label="Exit when branch result"];
14 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
15 [label="Enter block"];
16 [label="Function call: R|kotlin/KotlinNullPointerException.KotlinNullPointerException|()"];
17 [label="Throw: throw R|kotlin/KotlinNullPointerException.KotlinNullPointerException|()"];
18 [label="Stub" style="filled" fillcolor=gray];
19 [label="Exit block" style="filled" fillcolor=gray];
}
20 [label="Exit when branch result" style="filled" fillcolor=gray];
21 [label="Exit when"];
}
22 [label="Variable declaration: lval y: R|kotlin/Int|"];
23 [label="Access variable R|<local>/y|"];
24 [label="Function call: R|<local>/y|.R|kotlin/Int.inc|()"];
25 [label="Access variable R|<local>/x|"];
26 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
27 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {14 7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {21};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {27};
17 -> {18} [style=dotted];
18 -> {19} [style=dotted];
19 -> {20} [style=dotted];
20 -> {21} [style=dotted];
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
subgraph cluster_6 {
color=red
28 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
29 [label="Enter when"];
subgraph cluster_8 {
color=blue
30 [label="Enter when branch condition "];
31 [label="Access variable R|<local>/x|"];
32 [label="Const: Null(null)"];
33 [label="Operator =="];
34 [label="Exit when branch condition"];
}
subgraph cluster_9 {
color=blue
35 [label="Enter when branch condition else"];
36 [label="Exit when branch condition"];
}
37 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
38 [label="Enter block"];
39 [label="Access variable R|<local>/x|"];
40 [label="Exit block"];
}
41 [label="Exit when branch result"];
42 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
43 [label="Enter block"];
44 [label="Access variable R|<local>/x|"];
45 [label="Exit block"];
}
46 [label="Exit when branch result"];
47 [label="Exit when"];
}
48 [label="Variable declaration: lval y: R|kotlin/Int?|"];
49 [label="Access variable R|<local>/y|"];
50 [label="Function call: R|<local>/y|.<Ambiguity: inc, [kotlin/inc, kotlin/inc]>#()"];
51 [label="Exit function test_2" style="filled" fillcolor=red];
}
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {42 35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {47};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
subgraph cluster_12 {
color=red
52 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
53 [label="Enter while loop"];
subgraph cluster_14 {
color=blue
54 [label="Enter loop condition"];
55 [label="Const: Boolean(true)"];
56 [label="Exit loop condition"];
}
subgraph cluster_15 {
color=blue
57 [label="Enter loop block"];
subgraph cluster_16 {
color=blue
58 [label="Enter block"];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: x as Int"];
61 [label="Jump: break@@@[Boolean(true)] "];
62 [label="Stub" style="filled" fillcolor=gray];
63 [label="Exit block" style="filled" fillcolor=gray];
}
64 [label="Exit loop block" style="filled" fillcolor=gray];
}
65 [label="Exit whileloop"];
}
66 [label="Access variable R|<local>/x|"];
67 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
68 [label="Exit function test_3" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {65 57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {65};
61 -> {62} [style=dotted];
62 -> {63} [style=dotted];
63 -> {64} [style=dotted];
64 -> {54} [style=dotted];
65 -> {66};
66 -> {67};
67 -> {68};
subgraph cluster_17 {
color=red
69 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
70 [label="Enter do-while loop"];
subgraph cluster_19 {
color=blue
71 [label="Enter loop block"];
subgraph cluster_20 {
color=blue
72 [label="Enter block"];
73 [label="Access variable R|<local>/x|"];
74 [label="Type operator: x as Int"];
75 [label="Jump: break@@@[Boolean(true)] "];
76 [label="Stub" style="filled" fillcolor=gray];
77 [label="Exit block" style="filled" fillcolor=gray];
}
78 [label="Exit loop block" style="filled" fillcolor=gray];
}
subgraph cluster_21 {
color=blue
79 [label="Enter loop condition" style="filled" fillcolor=gray];
80 [label="Const: Boolean(true)" style="filled" fillcolor=gray];
81 [label="Exit loop condition" style="filled" fillcolor=gray];
}
82 [label="Exit do-whileloop"];
}
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
85 [label="Exit function test_4" style="filled" fillcolor=red];
}
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {82};
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {71 82} [style=dotted];
82 -> {83};
83 -> {84};
84 -> {85};
subgraph cluster_22 {
color=red
86 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_23 {
color=blue
87 [label="Enter while loop"];
subgraph cluster_24 {
color=blue
88 [label="Enter loop condition"];
89 [label="Access variable R|<local>/b|"];
90 [label="Exit loop condition"];
}
subgraph cluster_25 {
color=blue
91 [label="Enter loop block"];
subgraph cluster_26 {
color=blue
92 [label="Enter block"];
subgraph cluster_27 {
color=blue
93 [label="Enter when"];
subgraph cluster_28 {
color=blue
94 [label="Enter when branch condition "];
95 [label="Access variable R|<local>/b|"];
96 [label="Exit when branch condition"];
}
97 [label="Synthetic else branch"];
98 [label="Enter when branch result"];
subgraph cluster_29 {
color=blue
99 [label="Enter block"];
100 [label="Jump: continue@@@[R|<local>/b|] "];
101 [label="Stub" style="filled" fillcolor=gray];
102 [label="Exit block" style="filled" fillcolor=gray];
}
103 [label="Exit when branch result" style="filled" fillcolor=gray];
104 [label="Exit when"];
}
105 [label="Exit block"];
}
106 [label="Exit loop block"];
}
107 [label="Exit whileloop"];
}
108 [label="Exit function test_5" style="filled" fillcolor=red];
}
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {107 91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {98 97};
97 -> {104};
98 -> {99};
99 -> {100};
100 -> {87};
100 -> {101} [style=dotted];
101 -> {102} [style=dotted];
102 -> {103} [style=dotted];
103 -> {104} [style=dotted];
104 -> {105};
105 -> {106};
106 -> {88};
107 -> {108};
subgraph cluster_30 {
color=red
109 [label="Enter function run" style="filled" fillcolor=red];
110 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
111 [label="Exit function run" style="filled" fillcolor=red];
}
109 -> {110};
110 -> {111};
subgraph cluster_31 {
color=red
112 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_32 {
color=blue
113 [label="Enter function anonymousFunction"];
114 [label="Jump: ^@run Unit"];
115 [label="Stub" style="filled" fillcolor=gray];
116 [label="Exit function anonymousFunction"];
}
117 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^@run Unit
}
)"];
118 [label="Exit function test_6" style="filled" fillcolor=red];
}
112 -> {113};
113 -> {116 114};
114 -> {116};
114 -> {115} [style=dotted];
115 -> {116} [style=dotted];
116 -> {113 117};
117 -> {118};
}
+181 -181
View File
@@ -1,211 +1,211 @@
digraph lambdas_kt { digraph lambdas_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function run" style="filled" fillcolor=red]; 0 [label="Enter function run" style="filled" fillcolor=red];
1 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 1 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
2 [label="Exit function run" style="filled" fillcolor=red]; 2 [label="Exit function run" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
3 [label="Enter function test_1" style="filled" fillcolor=red]; 3 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
4 [label="Enter when"]; 4 [label="Enter when"];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
5 [label="Enter when branch condition "]; 5 [label="Enter when branch condition "];
6 [label="Access variable R|<local>/x|"]; 6 [label="Access variable R|<local>/x|"];
7 [label="Type operator: x is Int"]; 7 [label="Type operator: x is Int"];
8 [label="Exit when branch condition"]; 8 [label="Exit when branch condition"];
} }
9 [label="Synthetic else branch"]; 9 [label="Synthetic else branch"];
10 [label="Enter when branch result"]; 10 [label="Enter when branch result"];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
11 [label="Enter block"]; 11 [label="Enter block"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
12 [label="Enter function anonymousFunction"]; 12 [label="Enter function anonymousFunction"];
13 [label="Access variable R|<local>/x|"]; 13 [label="Access variable R|<local>/x|"];
14 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 14 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
15 [label="Exit function anonymousFunction"]; 15 [label="Exit function anonymousFunction"];
} }
16 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { 16 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
R|<local>/x|.R|kotlin/Int.inc|() R|<local>/x|.R|kotlin/Int.inc|()
} }
)"]; )"];
17 [label="Exit block"]; 17 [label="Exit block"];
} }
18 [label="Exit when branch result"]; 18 [label="Exit when branch result"];
19 [label="Exit when"]; 19 [label="Exit when"];
}
20 [label="Exit function test_1" style="filled" fillcolor=red];
} }
20 [label="Exit function test_1" style="filled" fillcolor=red];
}
3 -> {4}; 3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {10 9}; 8 -> {10 9};
9 -> {19}; 9 -> {19};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {15 13}; 12 -> {15 13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {12 16}; 15 -> {12 16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
21 [label="Enter function test_2" style="filled" fillcolor=red]; 21 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
22 [label="Enter when"]; 22 [label="Enter when"];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
23 [label="Enter when branch condition "]; 23 [label="Enter when branch condition "];
24 [label="Access variable R|<local>/x|"]; 24 [label="Access variable R|<local>/x|"];
25 [label="Type operator: x is Int"]; 25 [label="Type operator: x is Int"];
26 [label="Exit when branch condition"]; 26 [label="Exit when branch condition"];
} }
27 [label="Synthetic else branch"]; 27 [label="Synthetic else branch"];
28 [label="Enter when branch result"]; 28 [label="Enter when branch result"];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
29 [label="Enter block"]; 29 [label="Enter block"];
30 [label="Variable declaration: lval lambda: R|() -> kotlin/Int|"]; 30 [label="Variable declaration: lval lambda: R|() -> kotlin/Int|"];
31 [label="Exit block"]; 31 [label="Exit block"];
} }
32 [label="Exit when branch result"]; 32 [label="Exit when branch result"];
33 [label="Exit when"]; 33 [label="Exit when"];
}
34 [label="Exit function test_2" style="filled" fillcolor=red];
} }
34 [label="Exit function test_2" style="filled" fillcolor=red];
}
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {28 27}; 26 -> {28 27};
27 -> {33}; 27 -> {33};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
35 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 35 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
36 [label="Access variable R|<local>/x|"]; 36 [label="Access variable R|<local>/x|"];
37 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 37 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
38 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 38 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
35 -> {36};
36 -> {37};
37 -> {38};
subgraph cluster_11 {
color=red
39 [label="Enter function getInt" style="filled" fillcolor=red];
40 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
41 [label="Const: Int(1)"];
42 [label="Jump: ^getInt Int(1)"];
43 [label="Stub" style="filled" fillcolor=gray];
44 [label="Exit function getInt" style="filled" fillcolor=red];
}
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {44};
42 -> {43} [style=dotted];
43 -> {44} [style=dotted];
subgraph cluster_12 {
color=red
45 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
46 [label="Enter function anonymousFunction"];
47 [label="Const: Int(1)"];
48 [label="Jump: ^test_3 Int(1)"];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit function anonymousFunction"];
} }
51 [label="Function call: R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
35 -> {36};
36 -> {37};
37 -> {38};
subgraph cluster_11 {
color=red
39 [label="Enter function getInt" style="filled" fillcolor=red];
40 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
41 [label="Const: Int(1)"];
42 [label="Jump: ^getInt Int(1)"];
43 [label="Stub" style="filled" fillcolor=gray];
44 [label="Exit function getInt" style="filled" fillcolor=red];
}
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {44};
42 -> {43} [style=dotted];
43 -> {44} [style=dotted];
subgraph cluster_12 {
color=red
45 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_13 {
color=blue
46 [label="Enter function anonymousFunction"];
47 [label="Const: Int(1)"];
48 [label="Jump: ^test_3 Int(1)"];
49 [label="Stub" style="filled" fillcolor=gray];
50 [label="Exit function anonymousFunction"];
}
51 [label="Function call: R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^test_3 Int(1) ^test_3 Int(1)
} }
)"]; )"];
52 [label="Jump: ^test_3 R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { 52 [label="Jump: ^test_3 R|/getInt|(<L> = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^test_3 Int(1) ^test_3 Int(1)
} }
)"]; )"];
53 [label="Stub" style="filled" fillcolor=gray]; 53 [label="Stub" style="filled" fillcolor=gray];
54 [label="Exit function test_3" style="filled" fillcolor=red]; 54 [label="Exit function test_3" style="filled" fillcolor=red];
}
45 -> {46};
46 -> {50 47};
47 -> {48};
48 -> {54};
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
50 -> {46 51};
51 -> {52};
52 -> {54};
52 -> {53} [style=dotted];
53 -> {54} [style=dotted];
subgraph cluster_14 {
color=red
55 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
56 [label="Enter function anonymousFunction"];
57 [label="Const: Int(1)"];
58 [label="Jump: ^test_4 Int(1)"];
59 [label="Stub" style="filled" fillcolor=gray];
60 [label="Exit function anonymousFunction"];
} }
61 [label="Function call: R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
45 -> {46};
46 -> {50 47};
47 -> {48};
48 -> {54};
48 -> {49} [style=dotted];
49 -> {50} [style=dotted];
50 -> {46 51};
51 -> {52};
52 -> {54};
52 -> {53} [style=dotted];
53 -> {54} [style=dotted];
subgraph cluster_14 {
color=red
55 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
56 [label="Enter function anonymousFunction"];
57 [label="Const: Int(1)"];
58 [label="Jump: ^test_4 Int(1)"];
59 [label="Stub" style="filled" fillcolor=gray];
60 [label="Exit function anonymousFunction"];
}
61 [label="Function call: R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^test_4 Int(1) ^test_4 Int(1)
} }
)"]; )"];
62 [label="Jump: ^test_4 R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { 62 [label="Jump: ^test_4 R|/getInt|(block = getInt@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
^test_4 Int(1) ^test_4 Int(1)
} }
)"]; )"];
63 [label="Stub" style="filled" fillcolor=gray]; 63 [label="Stub" style="filled" fillcolor=gray];
64 [label="Exit function test_4" style="filled" fillcolor=red]; 64 [label="Exit function test_4" style="filled" fillcolor=red];
} }
55 -> {56}; 55 -> {56};
56 -> {60 57}; 56 -> {60 57};
57 -> {58}; 57 -> {58};
58 -> {64}; 58 -> {64};
58 -> {59} [style=dotted]; 58 -> {59} [style=dotted];
59 -> {60} [style=dotted]; 59 -> {60} [style=dotted];
60 -> {56 61}; 60 -> {56 61};
61 -> {62}; 61 -> {62};
62 -> {64}; 62 -> {64};
62 -> {63} [style=dotted]; 62 -> {63} [style=dotted];
63 -> {64} [style=dotted]; 63 -> {64} [style=dotted];
} }
+473 -485
View File
@@ -1,506 +1,494 @@
digraph loops_kt { digraph loops_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function testWhile" style="filled" fillcolor=red]; 0 [label="Enter function testWhile" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue
1 [label="Enter while loop"];
subgraph cluster_2 {
color=blue
2 [label="Enter loop condition"];
3 [label="Access variable R|<local>/b|"];
4 [label="Exit loop condition"];
}
subgraph cluster_3 {
color=blue
5 [label="Enter loop block"];
subgraph cluster_4 {
color=blue
6 [label="Enter block"];
7 [label="Access variable R|<local>/x|"];
8 [label="Type operator: x is String"];
9 [label="Variable declaration: lval y: R|kotlin/Boolean|"];
10 [label="Exit block"];
}
11 [label="Exit loop block"];
}
12 [label="Exit whileloop"];
}
13 [label="Access variable R|<local>/x|"];
14 [label="Type operator: x is String"];
15 [label="Exit function testWhile" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {12 5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {2};
12 -> {13};
13 -> {14};
14 -> {15};
subgraph cluster_5 {
color=red
16 [label="Enter function testDoWhile" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
17 [label="Enter do-while loop"];
subgraph cluster_7 {
color=blue
18 [label="Enter loop block"];
subgraph cluster_8 {
color=blue
19 [label="Enter block"];
20 [label="Access variable R|<local>/x|"];
21 [label="Type operator: x is String"];
22 [label="Variable declaration: lval y: R|kotlin/Boolean|"];
23 [label="Exit block"];
}
24 [label="Exit loop block"];
}
subgraph cluster_9 {
color=blue
25 [label="Enter loop condition"];
26 [label="Access variable R|<local>/b|"];
27 [label="Exit loop condition"];
}
28 [label="Exit do-whileloop"];
}
29 [label="Access variable R|<local>/x|"];
30 [label="Type operator: x is String"];
31 [label="Exit function testDoWhile" style="filled" fillcolor=red];
}
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {18 28};
28 -> {29};
29 -> {30};
30 -> {31};
subgraph cluster_10 {
color=red
32 [label="Enter function testFor" style="filled" fillcolor=red];
33 [label="Const: Int(0)"];
34 [label="Const: Int(5)"];
35 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(Int(5))"];
36 [label="Variable declaration: lval <range>: R|kotlin/ranges/IntRange|"];
37 [label="Access variable R|<local>/<range>|"];
38 [label="Function call: R|<local>/<range>|.R|kotlin/ranges/IntProgression.iterator|()"];
39 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"];
subgraph cluster_11 {
color=blue
40 [label="Enter while loop"];
subgraph cluster_12 {
color=blue
41 [label="Enter loop condition"];
42 [label="Access variable R|<local>/<iterator>|"];
43 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
44 [label="Exit loop condition"];
}
subgraph cluster_13 {
color=blue
45 [label="Enter loop block"];
subgraph cluster_14 {
color=blue
46 [label="Enter block"];
47 [label="Access variable R|<local>/<iterator>|"];
48 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()"];
49 [label="Variable declaration: lval i: R|kotlin/Int|"];
50 [label="Access variable R|<local>/x|"];
51 [label="Type operator: x is String"];
52 [label="Variable declaration: lval y: R|kotlin/Boolean|"];
53 [label="Exit block"];
}
54 [label="Exit loop block"];
}
55 [label="Exit whileloop"];
}
56 [label="Access variable R|<local>/x|"];
57 [label="Type operator: x is String"];
58 [label="Exit function testFor" style="filled" fillcolor=red];
}
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {55 45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {41};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_15 {
color=red
59 [label="Enter function testWhileTrue" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
60 [label="Enter while loop"];
subgraph cluster_17 {
color=blue
61 [label="Enter loop condition"];
62 [label="Const: Boolean(true)"];
63 [label="Exit loop condition"];
}
subgraph cluster_18 {
color=blue
64 [label="Enter loop block"];
subgraph cluster_19 {
color=blue
65 [label="Enter block"];
66 [label="Const: Int(1)"];
67 [label="Exit block"];
}
68 [label="Exit loop block"];
}
69 [label="Stub" style="filled" fillcolor=gray];
70 [label="Exit whileloop" style="filled" fillcolor=gray];
}
71 [label="Const: Int(1)" style="filled" fillcolor=gray];
72 [label="Exit function testWhileTrue" style="filled" fillcolor=red style="filled" fillcolor=gray];
}
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
63 -> {69} [style=dotted];
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {61};
69 -> {70} [style=dotted];
70 -> {71} [style=dotted];
71 -> {72} [style=dotted];
subgraph cluster_20 {
color=red
73 [label="Enter function testWhileTrueWithBreak" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
74 [label="Enter while loop"];
subgraph cluster_22 {
color=blue
75 [label="Enter loop condition"];
76 [label="Const: Boolean(true)"];
77 [label="Exit loop condition"];
}
subgraph cluster_23 {
color=blue
78 [label="Enter loop block"];
subgraph cluster_24 {
color=blue
79 [label="Enter block"];
subgraph cluster_25 {
color=blue color=blue
80 [label="Enter when"]; 1 [label="Enter while loop"];
subgraph cluster_26 { subgraph cluster_2 {
color=blue color=blue
81 [label="Enter when branch condition "]; 2 [label="Enter loop condition"];
82 [label="Access variable R|<local>/b|"]; 3 [label="Access variable R|<local>/b|"];
83 [label="Exit when branch condition"]; 4 [label="Exit loop condition"];
} }
84 [label="Synthetic else branch"]; subgraph cluster_3 {
85 [label="Enter when branch result"]; color=blue
subgraph cluster_27 { 5 [label="Enter loop block"];
color=blue subgraph cluster_4 {
86 [label="Enter block"]; color=blue
87 [label="Jump: break@@@[Boolean(true)] "]; 6 [label="Enter block"];
88 [label="Stub" style="filled" fillcolor=gray]; 7 [label="Access variable R|<local>/x|"];
89 [label="Exit block" style="filled" fillcolor=gray]; 8 [label="Type operator: x is String"];
9 [label="Variable declaration: lval y: R|kotlin/Boolean|"];
10 [label="Exit block"];
}
11 [label="Exit loop block"];
} }
90 [label="Exit when branch result" style="filled" fillcolor=gray]; 12 [label="Exit whileloop"];
91 [label="Exit when"];
}
92 [label="Exit block"];
} }
93 [label="Exit loop block"]; 13 [label="Access variable R|<local>/x|"];
} 14 [label="Type operator: x is String"];
94 [label="Stub" style="filled" fillcolor=gray]; 15 [label="Exit function testWhile" style="filled" fillcolor=red];
95 [label="Exit whileloop"];
} }
96 [label="Const: Int(1)"];
97 [label="Exit function testWhileTrueWithBreak" style="filled" fillcolor=red];
}
73 -> {74}; 0 -> {1};
74 -> {75}; 1 -> {2};
75 -> {76}; 2 -> {3};
76 -> {77}; 3 -> {4};
77 -> {78}; 4 -> {12 5};
77 -> {94} [style=dotted]; 5 -> {6};
78 -> {79}; 6 -> {7};
79 -> {80}; 7 -> {8};
80 -> {81}; 8 -> {9};
81 -> {82}; 9 -> {10};
82 -> {83}; 10 -> {11};
83 -> {85 84}; 11 -> {2};
84 -> {91}; 12 -> {13};
85 -> {86}; 13 -> {14};
86 -> {87}; 14 -> {15};
87 -> {95};
87 -> {88} [style=dotted];
88 -> {89} [style=dotted];
89 -> {90} [style=dotted];
90 -> {91} [style=dotted];
91 -> {92};
92 -> {93};
93 -> {75};
94 -> {95} [style=dotted];
95 -> {96};
96 -> {97};
subgraph cluster_28 { subgraph cluster_5 {
color=red color=red
98 [label="Enter function testWhileFalse" style="filled" fillcolor=red]; 16 [label="Enter function testDoWhile" style="filled" fillcolor=red];
subgraph cluster_29 { subgraph cluster_6 {
color=blue
99 [label="Enter while loop"];
subgraph cluster_30 {
color=blue
100 [label="Enter loop condition"];
101 [label="Const: Boolean(false)"];
102 [label="Exit loop condition"];
}
103 [label="Stub" style="filled" fillcolor=gray];
subgraph cluster_31 {
color=blue
104 [label="Enter loop block" style="filled" fillcolor=gray];
subgraph cluster_32 {
color=blue
105 [label="Enter block" style="filled" fillcolor=gray];
106 [label="Const: Int(1)" style="filled" fillcolor=gray];
107 [label="Exit block" style="filled" fillcolor=gray];
}
108 [label="Exit loop block" style="filled" fillcolor=gray];
}
109 [label="Exit whileloop"];
}
110 [label="Const: Int(1)"];
111 [label="Exit function testWhileFalse" style="filled" fillcolor=red];
}
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {109};
102 -> {103} [style=dotted];
103 -> {104} [style=dotted];
104 -> {105} [style=dotted];
105 -> {106} [style=dotted];
106 -> {107} [style=dotted];
107 -> {108} [style=dotted];
108 -> {100} [style=dotted];
109 -> {110};
110 -> {111};
subgraph cluster_33 {
color=red
112 [label="Enter function testDoWhileTrue" style="filled" fillcolor=red];
subgraph cluster_34 {
color=blue
113 [label="Enter do-while loop"];
subgraph cluster_35 {
color=blue
114 [label="Enter loop block"];
subgraph cluster_36 {
color=blue
115 [label="Enter block"];
116 [label="Const: Int(1)"];
117 [label="Exit block"];
}
118 [label="Exit loop block"];
}
subgraph cluster_37 {
color=blue
119 [label="Enter loop condition"];
120 [label="Const: Boolean(true)"];
121 [label="Exit loop condition"];
}
122 [label="Stub" style="filled" fillcolor=gray];
123 [label="Exit do-whileloop" style="filled" fillcolor=gray];
}
124 [label="Const: Int(1)" style="filled" fillcolor=gray];
125 [label="Exit function testDoWhileTrue" style="filled" fillcolor=red style="filled" fillcolor=gray];
}
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {114};
121 -> {122} [style=dotted];
122 -> {123} [style=dotted];
123 -> {124} [style=dotted];
124 -> {125} [style=dotted];
subgraph cluster_38 {
color=red
126 [label="Enter function testDoWhileTrueWithBreak" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
127 [label="Enter do-while loop"];
subgraph cluster_40 {
color=blue
128 [label="Enter loop block"];
subgraph cluster_41 {
color=blue
129 [label="Enter block"];
subgraph cluster_42 {
color=blue color=blue
130 [label="Enter when"]; 17 [label="Enter do-while loop"];
subgraph cluster_43 { subgraph cluster_7 {
color=blue color=blue
131 [label="Enter when branch condition "]; 18 [label="Enter loop block"];
132 [label="Access variable R|<local>/b|"]; subgraph cluster_8 {
133 [label="Exit when branch condition"]; color=blue
19 [label="Enter block"];
20 [label="Access variable R|<local>/x|"];
21 [label="Type operator: x is String"];
22 [label="Variable declaration: lval y: R|kotlin/Boolean|"];
23 [label="Exit block"];
}
24 [label="Exit loop block"];
} }
134 [label="Synthetic else branch"]; subgraph cluster_9 {
135 [label="Enter when branch result"]; color=blue
subgraph cluster_44 { 25 [label="Enter loop condition"];
color=blue 26 [label="Access variable R|<local>/b|"];
136 [label="Enter block"]; 27 [label="Exit loop condition"];
137 [label="Jump: break@@@[Boolean(true)] "];
138 [label="Stub" style="filled" fillcolor=gray];
139 [label="Exit block" style="filled" fillcolor=gray];
} }
140 [label="Exit when branch result" style="filled" fillcolor=gray]; 28 [label="Exit do-whileloop"];
141 [label="Exit when"];
}
142 [label="Exit block"];
} }
143 [label="Exit loop block"]; 29 [label="Access variable R|<local>/x|"];
} 30 [label="Type operator: x is String"];
subgraph cluster_45 { 31 [label="Exit function testDoWhile" style="filled" fillcolor=red];
color=blue
144 [label="Enter loop condition"];
145 [label="Const: Boolean(true)"];
146 [label="Exit loop condition"];
}
147 [label="Stub" style="filled" fillcolor=gray];
148 [label="Exit do-whileloop"];
} }
149 [label="Const: Int(1)"];
150 [label="Exit function testDoWhileTrueWithBreak" style="filled" fillcolor=red];
}
126 -> {127}; 16 -> {17};
127 -> {128}; 17 -> {18};
128 -> {129}; 18 -> {19};
129 -> {130}; 19 -> {20};
130 -> {131}; 20 -> {21};
131 -> {132}; 21 -> {22};
132 -> {133}; 22 -> {23};
133 -> {135 134}; 23 -> {24};
134 -> {141}; 24 -> {25};
135 -> {136}; 25 -> {26};
136 -> {137}; 26 -> {27};
137 -> {148}; 27 -> {18 28};
137 -> {138} [style=dotted]; 28 -> {29};
138 -> {139} [style=dotted]; 29 -> {30};
139 -> {140} [style=dotted]; 30 -> {31};
140 -> {141} [style=dotted];
141 -> {142};
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {128};
146 -> {147} [style=dotted];
147 -> {148} [style=dotted];
148 -> {149};
149 -> {150};
subgraph cluster_46 { subgraph cluster_10 {
color=red color=red
151 [label="Enter function testDoWhileFalse" style="filled" fillcolor=red]; 32 [label="Enter function testFor" style="filled" fillcolor=red];
subgraph cluster_47 { 33 [label="Const: Int(0)"];
color=blue 34 [label="Const: Int(5)"];
152 [label="Enter do-while loop"]; 35 [label="Function call: Int(0).R|kotlin/Int.rangeTo|(Int(5))"];
subgraph cluster_48 { 36 [label="Variable declaration: lval <range>: R|kotlin/ranges/IntRange|"];
color=blue 37 [label="Access variable R|<local>/<range>|"];
153 [label="Enter loop block"]; 38 [label="Function call: R|<local>/<range>|.R|kotlin/ranges/IntProgression.iterator|()"];
subgraph cluster_49 { 39 [label="Variable declaration: lval <iterator>: R|kotlin/collections/IntIterator|"];
color=blue subgraph cluster_11 {
154 [label="Enter block"]; color=blue
155 [label="Const: Int(1)"]; 40 [label="Enter while loop"];
156 [label="Exit block"]; subgraph cluster_12 {
color=blue
41 [label="Enter loop condition"];
42 [label="Access variable R|<local>/<iterator>|"];
43 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/Iterator.hasNext|()"];
44 [label="Exit loop condition"];
}
subgraph cluster_13 {
color=blue
45 [label="Enter loop block"];
subgraph cluster_14 {
color=blue
46 [label="Enter block"];
47 [label="Access variable R|<local>/<iterator>|"];
48 [label="Function call: R|<local>/<iterator>|.R|kotlin/collections/IntIterator.next|()"];
49 [label="Variable declaration: lval i: R|kotlin/Int|"];
50 [label="Access variable R|<local>/x|"];
51 [label="Type operator: x is String"];
52 [label="Variable declaration: lval y: R|kotlin/Boolean|"];
53 [label="Exit block"];
}
54 [label="Exit loop block"];
}
55 [label="Exit whileloop"];
} }
157 [label="Exit loop block"]; 56 [label="Access variable R|<local>/x|"];
} 57 [label="Type operator: x is String"];
subgraph cluster_50 { 58 [label="Exit function testFor" style="filled" fillcolor=red];
color=blue
158 [label="Enter loop condition"];
159 [label="Const: Boolean(false)"];
160 [label="Exit loop condition"];
}
161 [label="Exit do-whileloop"];
} }
162 [label="Const: Int(1)"];
163 [label="Exit function testDoWhileFalse" style="filled" fillcolor=red];
}
164 [label="Stub" style="filled" fillcolor=gray];
151 -> {152}; 32 -> {33};
152 -> {153}; 33 -> {34};
153 -> {154}; 34 -> {35};
154 -> {155}; 35 -> {36};
155 -> {156}; 36 -> {37};
156 -> {157}; 37 -> {38};
157 -> {158}; 38 -> {39};
158 -> {159}; 39 -> {40};
159 -> {160}; 40 -> {41};
160 -> {161}; 41 -> {42};
160 -> {164} [style=dotted]; 42 -> {43};
161 -> {162}; 43 -> {44};
162 -> {163}; 44 -> {55 45};
164 -> {153} [style=dotted]; 45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {41};
55 -> {56};
56 -> {57};
57 -> {58};
subgraph cluster_15 {
color=red
59 [label="Enter function testWhileTrue" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
60 [label="Enter while loop"];
subgraph cluster_17 {
color=blue
61 [label="Enter loop condition"];
62 [label="Const: Boolean(true)"];
63 [label="Exit loop condition"];
}
subgraph cluster_18 {
color=blue
64 [label="Enter loop block"];
subgraph cluster_19 {
color=blue
65 [label="Enter block"];
66 [label="Const: Int(1)"];
67 [label="Exit block"];
}
68 [label="Exit loop block"];
}
69 [label="Exit whileloop" style="filled" fillcolor=gray];
}
70 [label="Const: Int(1)" style="filled" fillcolor=gray];
71 [label="Exit function testWhileTrue" style="filled" fillcolor=red style="filled" fillcolor=gray];
}
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
63 -> {69} [style=dotted];
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {61};
69 -> {70} [style=dotted];
70 -> {71} [style=dotted];
subgraph cluster_20 {
color=red
72 [label="Enter function testWhileTrueWithBreak" style="filled" fillcolor=red];
subgraph cluster_21 {
color=blue
73 [label="Enter while loop"];
subgraph cluster_22 {
color=blue
74 [label="Enter loop condition"];
75 [label="Const: Boolean(true)"];
76 [label="Exit loop condition"];
}
subgraph cluster_23 {
color=blue
77 [label="Enter loop block"];
subgraph cluster_24 {
color=blue
78 [label="Enter block"];
subgraph cluster_25 {
color=blue
79 [label="Enter when"];
subgraph cluster_26 {
color=blue
80 [label="Enter when branch condition "];
81 [label="Access variable R|<local>/b|"];
82 [label="Exit when branch condition"];
}
83 [label="Synthetic else branch"];
84 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
85 [label="Enter block"];
86 [label="Jump: break@@@[Boolean(true)] "];
87 [label="Stub" style="filled" fillcolor=gray];
88 [label="Exit block" style="filled" fillcolor=gray];
}
89 [label="Exit when branch result" style="filled" fillcolor=gray];
90 [label="Exit when"];
}
91 [label="Exit block"];
}
92 [label="Exit loop block"];
}
93 [label="Exit whileloop"];
}
94 [label="Const: Int(1)"];
95 [label="Exit function testWhileTrueWithBreak" style="filled" fillcolor=red];
}
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {77};
76 -> {93} [style=dotted];
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {84 83};
83 -> {90};
84 -> {85};
85 -> {86};
86 -> {93};
86 -> {87} [style=dotted];
87 -> {88} [style=dotted];
88 -> {89} [style=dotted];
89 -> {90} [style=dotted];
90 -> {91};
91 -> {92};
92 -> {74};
93 -> {94};
94 -> {95};
subgraph cluster_28 {
color=red
96 [label="Enter function testWhileFalse" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
97 [label="Enter while loop"];
subgraph cluster_30 {
color=blue
98 [label="Enter loop condition"];
99 [label="Const: Boolean(false)"];
100 [label="Exit loop condition"];
}
subgraph cluster_31 {
color=blue
101 [label="Enter loop block" style="filled" fillcolor=gray];
subgraph cluster_32 {
color=blue
102 [label="Enter block" style="filled" fillcolor=gray];
103 [label="Const: Int(1)" style="filled" fillcolor=gray];
104 [label="Exit block" style="filled" fillcolor=gray];
}
105 [label="Exit loop block" style="filled" fillcolor=gray];
}
106 [label="Exit whileloop"];
}
107 [label="Const: Int(1)"];
108 [label="Exit function testWhileFalse" style="filled" fillcolor=red];
}
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {106};
100 -> {101} [style=dotted];
101 -> {102} [style=dotted];
102 -> {103} [style=dotted];
103 -> {104} [style=dotted];
104 -> {105} [style=dotted];
105 -> {98} [style=dotted];
106 -> {107};
107 -> {108};
subgraph cluster_33 {
color=red
109 [label="Enter function testDoWhileTrue" style="filled" fillcolor=red];
subgraph cluster_34 {
color=blue
110 [label="Enter do-while loop"];
subgraph cluster_35 {
color=blue
111 [label="Enter loop block"];
subgraph cluster_36 {
color=blue
112 [label="Enter block"];
113 [label="Const: Int(1)"];
114 [label="Exit block"];
}
115 [label="Exit loop block"];
}
subgraph cluster_37 {
color=blue
116 [label="Enter loop condition"];
117 [label="Const: Boolean(true)"];
118 [label="Exit loop condition"];
}
119 [label="Exit do-whileloop" style="filled" fillcolor=gray];
}
120 [label="Const: Int(1)" style="filled" fillcolor=gray];
121 [label="Exit function testDoWhileTrue" style="filled" fillcolor=red style="filled" fillcolor=gray];
}
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {111};
118 -> {119} [style=dotted];
119 -> {120} [style=dotted];
120 -> {121} [style=dotted];
subgraph cluster_38 {
color=red
122 [label="Enter function testDoWhileTrueWithBreak" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
123 [label="Enter do-while loop"];
subgraph cluster_40 {
color=blue
124 [label="Enter loop block"];
subgraph cluster_41 {
color=blue
125 [label="Enter block"];
subgraph cluster_42 {
color=blue
126 [label="Enter when"];
subgraph cluster_43 {
color=blue
127 [label="Enter when branch condition "];
128 [label="Access variable R|<local>/b|"];
129 [label="Exit when branch condition"];
}
130 [label="Synthetic else branch"];
131 [label="Enter when branch result"];
subgraph cluster_44 {
color=blue
132 [label="Enter block"];
133 [label="Jump: break@@@[Boolean(true)] "];
134 [label="Stub" style="filled" fillcolor=gray];
135 [label="Exit block" style="filled" fillcolor=gray];
}
136 [label="Exit when branch result" style="filled" fillcolor=gray];
137 [label="Exit when"];
}
138 [label="Exit block"];
}
139 [label="Exit loop block"];
}
subgraph cluster_45 {
color=blue
140 [label="Enter loop condition"];
141 [label="Const: Boolean(true)"];
142 [label="Exit loop condition"];
}
143 [label="Exit do-whileloop"];
}
144 [label="Const: Int(1)"];
145 [label="Exit function testDoWhileTrueWithBreak" style="filled" fillcolor=red];
}
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {131 130};
130 -> {137};
131 -> {132};
132 -> {133};
133 -> {143};
133 -> {134} [style=dotted];
134 -> {135} [style=dotted];
135 -> {136} [style=dotted];
136 -> {137} [style=dotted];
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {124};
142 -> {143} [style=dotted];
143 -> {144};
144 -> {145};
subgraph cluster_46 {
color=red
146 [label="Enter function testDoWhileFalse" style="filled" fillcolor=red];
subgraph cluster_47 {
color=blue
147 [label="Enter do-while loop"];
subgraph cluster_48 {
color=blue
148 [label="Enter loop block"];
subgraph cluster_49 {
color=blue
149 [label="Enter block"];
150 [label="Const: Int(1)"];
151 [label="Exit block"];
}
152 [label="Exit loop block"];
}
subgraph cluster_50 {
color=blue
153 [label="Enter loop condition"];
154 [label="Const: Boolean(false)"];
155 [label="Exit loop condition"];
}
156 [label="Exit do-whileloop"];
}
157 [label="Const: Int(1)"];
158 [label="Exit function testDoWhileFalse" style="filled" fillcolor=red];
}
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {154};
154 -> {155};
155 -> {156};
155 -> {148} [style=dotted];
156 -> {157};
157 -> {158};
} }
@@ -1,132 +1,132 @@
digraph propertiesAndInitBlocks_kt { digraph propertiesAndInitBlocks_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function run" style="filled" fillcolor=red]; 0 [label="Enter function run" style="filled" fillcolor=red];
1 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 1 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
2 [label="Exit function run" style="filled" fillcolor=red]; 2 [label="Exit function run" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
3 [label="Enter function getter" style="filled" fillcolor=red];
4 [label="Exit function getter" style="filled" fillcolor=red];
}
3 -> {4};
subgraph cluster_2 {
color=red
5 [label="Enter property" style="filled" fillcolor=red];
6 [label="Const: Int(1)"];
7 [label="Exit property" style="filled" fillcolor=red];
}
5 -> {6};
6 -> {7};
subgraph cluster_3 {
color=red
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Const: Int(1)"];
10 [label="Jump: ^ Int(1)"];
11 [label="Stub" style="filled" fillcolor=gray];
12 [label="Exit function getter" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {12};
10 -> {11} [style=dotted];
11 -> {12} [style=dotted];
subgraph cluster_4 {
color=red
13 [label="Enter function setter" style="filled" fillcolor=red];
14 [label="Const: Int(1)"];
15 [label="Assignmenet: F|/x2|"];
16 [label="Exit function setter" style="filled" fillcolor=red];
}
13 -> {14};
14 -> {15};
15 -> {16};
subgraph cluster_5 {
color=red
17 [label="Enter property" style="filled" fillcolor=red];
18 [label="Const: Int(1)"];
19 [label="Exit property" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
subgraph cluster_6 {
color=red
20 [label="Enter function foo" style="filled" fillcolor=red];
21 [label="Const: Int(1)"];
22 [label="Const: Int(1)"];
23 [label="Function call: Int(1).R|kotlin/Int.plus|(Int(1))"];
24 [label="Variable declaration: lval c: R|kotlin/Int|"];
25 [label="Function call: R|java/lang/Exception.Exception|()"];
26 [label="Throw: throw R|java/lang/Exception.Exception|()"];
27 [label="Stub" style="filled" fillcolor=gray];
28 [label="Exit function foo" style="filled" fillcolor=red];
}
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {28};
26 -> {27} [style=dotted];
27 -> {28} [style=dotted];
subgraph cluster_7 {
color=red
29 [label="Enter function <init>" style="filled" fillcolor=red];
30 [label="Exit function <init>" style="filled" fillcolor=red];
}
29 -> {30};
subgraph cluster_8 {
color=red
31 [label="Enter function getter" style="filled" fillcolor=red];
32 [label="Exit function getter" style="filled" fillcolor=red];
}
31 -> {32};
subgraph cluster_9 {
color=red
33 [label="Enter function <init>" style="filled" fillcolor=red];
34 [label="Exit function <init>" style="filled" fillcolor=red];
}
33 -> {34};
subgraph cluster_10 {
color=red
35 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
36 [label="Enter function anonymousFunction"];
37 [label="Function call: R|java/lang/Exception.Exception|()"];
38 [label="Throw: throw R|java/lang/Exception.Exception|()"];
39 [label="Stub" style="filled" fillcolor=gray];
40 [label="Exit function anonymousFunction"];
} }
41 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
0 -> {1};
1 -> {2};
subgraph cluster_1 {
color=red
3 [label="Enter function getter" style="filled" fillcolor=red];
4 [label="Exit function getter" style="filled" fillcolor=red];
}
3 -> {4};
subgraph cluster_2 {
color=red
5 [label="Enter property" style="filled" fillcolor=red];
6 [label="Const: Int(1)"];
7 [label="Exit property" style="filled" fillcolor=red];
}
5 -> {6};
6 -> {7};
subgraph cluster_3 {
color=red
8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Const: Int(1)"];
10 [label="Jump: ^ Int(1)"];
11 [label="Stub" style="filled" fillcolor=gray];
12 [label="Exit function getter" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {12};
10 -> {11} [style=dotted];
11 -> {12} [style=dotted];
subgraph cluster_4 {
color=red
13 [label="Enter function setter" style="filled" fillcolor=red];
14 [label="Const: Int(1)"];
15 [label="Assignmenet: F|/x2|"];
16 [label="Exit function setter" style="filled" fillcolor=red];
}
13 -> {14};
14 -> {15};
15 -> {16};
subgraph cluster_5 {
color=red
17 [label="Enter property" style="filled" fillcolor=red];
18 [label="Const: Int(1)"];
19 [label="Exit property" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
subgraph cluster_6 {
color=red
20 [label="Enter function foo" style="filled" fillcolor=red];
21 [label="Const: Int(1)"];
22 [label="Const: Int(1)"];
23 [label="Function call: Int(1).R|kotlin/Int.plus|(Int(1))"];
24 [label="Variable declaration: lval c: R|kotlin/Int|"];
25 [label="Function call: R|java/lang/Exception.Exception|()"];
26 [label="Throw: throw R|java/lang/Exception.Exception|()"];
27 [label="Stub" style="filled" fillcolor=gray];
28 [label="Exit function foo" style="filled" fillcolor=red];
}
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {28};
26 -> {27} [style=dotted];
27 -> {28} [style=dotted];
subgraph cluster_7 {
color=red
29 [label="Enter function <init>" style="filled" fillcolor=red];
30 [label="Exit function <init>" style="filled" fillcolor=red];
}
29 -> {30};
subgraph cluster_8 {
color=red
31 [label="Enter function getter" style="filled" fillcolor=red];
32 [label="Exit function getter" style="filled" fillcolor=red];
}
31 -> {32};
subgraph cluster_9 {
color=red
33 [label="Enter function <init>" style="filled" fillcolor=red];
34 [label="Exit function <init>" style="filled" fillcolor=red];
}
33 -> {34};
subgraph cluster_10 {
color=red
35 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
36 [label="Enter function anonymousFunction"];
37 [label="Function call: R|java/lang/Exception.Exception|()"];
38 [label="Throw: throw R|java/lang/Exception.Exception|()"];
39 [label="Stub" style="filled" fillcolor=gray];
40 [label="Exit function anonymousFunction"];
}
41 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
local final fun foo(): R|kotlin/Unit| { local final fun foo(): R|kotlin/Unit| {
lval c: R|kotlin/Int| = Int(1).R|kotlin/Int.plus|(Int(1)) lval c: R|kotlin/Int| = Int(1).R|kotlin/Int.plus|(Int(1))
throw R|java/lang/Exception.Exception|() throw R|java/lang/Exception.Exception|()
@@ -147,87 +147,87 @@ digraph propertiesAndInitBlocks_kt {
throw R|java/lang/Exception.Exception|() throw R|java/lang/Exception.Exception|()
} }
)"]; )"];
42 [label="Exit property" style="filled" fillcolor=red]; 42 [label="Exit property" style="filled" fillcolor=red];
}
35 -> {36};
36 -> {40 37};
37 -> {38};
38 -> {42};
38 -> {39} [style=dotted];
39 -> {40} [style=dotted];
40 -> {36 41};
41 -> {42};
subgraph cluster_12 {
color=red
43 [label="Enter function getter" style="filled" fillcolor=red];
44 [label="Exit function getter" style="filled" fillcolor=red];
}
43 -> {44};
subgraph cluster_13 {
color=red
45 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
46 [label="Try expression enter"];
subgraph cluster_15 {
color=blue
47 [label="Try main block enter"];
subgraph cluster_16 {
color=blue
48 [label="Enter block"];
49 [label="Const: Int(1)"];
50 [label="Exit block"];
}
51 [label="Try main block exit"];
}
subgraph cluster_17 {
color=blue
52 [label="Enter finally"];
subgraph cluster_18 {
color=blue
53 [label="Enter block"];
54 [label="Const: IntegerLiteral(0)"];
55 [label="Exit block"];
}
56 [label="Exit finally"];
}
subgraph cluster_19 {
color=blue
57 [label="Catch enter"];
subgraph cluster_20 {
color=blue
58 [label="Enter block"];
59 [label="Const: Int(2)"];
60 [label="Exit block"];
}
61 [label="Catch exit"];
}
62 [label="Try expression exit"];
} }
63 [label="Exit property" style="filled" fillcolor=red];
}
45 -> {46}; 35 -> {36};
46 -> {47}; 36 -> {40 37};
47 -> {63 57 52 48}; 37 -> {38};
48 -> {49}; 38 -> {42};
49 -> {50}; 38 -> {39} [style=dotted];
50 -> {51}; 39 -> {40} [style=dotted];
51 -> {62}; 40 -> {36 41};
52 -> {53}; 41 -> {42};
53 -> {54};
54 -> {55}; subgraph cluster_12 {
55 -> {56}; color=red
56 -> {62}; 43 [label="Enter function getter" style="filled" fillcolor=red];
57 -> {63 58}; 44 [label="Exit function getter" style="filled" fillcolor=red];
58 -> {59}; }
59 -> {60};
60 -> {61}; 43 -> {44};
61 -> {62};
62 -> {63}; subgraph cluster_13 {
color=red
45 [label="Enter property" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
46 [label="Try expression enter"];
subgraph cluster_15 {
color=blue
47 [label="Try main block enter"];
subgraph cluster_16 {
color=blue
48 [label="Enter block"];
49 [label="Const: Int(1)"];
50 [label="Exit block"];
}
51 [label="Try main block exit"];
}
subgraph cluster_17 {
color=blue
52 [label="Enter finally"];
subgraph cluster_18 {
color=blue
53 [label="Enter block"];
54 [label="Const: IntegerLiteral(0)"];
55 [label="Exit block"];
}
56 [label="Exit finally"];
}
subgraph cluster_19 {
color=blue
57 [label="Catch enter"];
subgraph cluster_20 {
color=blue
58 [label="Enter block"];
59 [label="Const: Int(2)"];
60 [label="Exit block"];
}
61 [label="Catch exit"];
}
62 [label="Try expression exit"];
}
63 [label="Exit property" style="filled" fillcolor=red];
}
45 -> {46};
46 -> {47};
47 -> {63 57 52 48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {62};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {62};
57 -> {63 58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
} }
@@ -1,56 +1,56 @@
digraph returnValuesFromLambda_kt { digraph returnValuesFromLambda_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red]; 1 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Exit function <init>" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
5 [label="Enter function anonymousFunction"];
subgraph cluster_4 {
color=blue
6 [label="Enter when"];
subgraph cluster_5 {
color=blue
7 [label="Enter when branch condition "];
8 [label="Access variable R|<local>/b|"];
9 [label="Exit when branch condition"];
}
10 [label="Synthetic else branch"];
11 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
12 [label="Enter block"];
13 [label="Function call: R|/B.B|()"];
14 [label="Jump: ^@run R|/B.B|()"];
15 [label="Stub" style="filled" fillcolor=gray];
16 [label="Exit block" style="filled" fillcolor=gray];
}
17 [label="Exit when branch result" style="filled" fillcolor=gray];
18 [label="Exit when"];
}
19 [label="Function call: R|/C.C|()"];
20 [label="Exit function anonymousFunction"];
} }
21 [label="Function call: R|kotlin/run|<R|A|>(<L> = run@fun <anonymous>(): R|A| <kind=EXACTLY_ONCE> {
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function <init>" style="filled" fillcolor=red];
3 [label="Exit function <init>" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
5 [label="Enter function anonymousFunction"];
subgraph cluster_4 {
color=blue
6 [label="Enter when"];
subgraph cluster_5 {
color=blue
7 [label="Enter when branch condition "];
8 [label="Access variable R|<local>/b|"];
9 [label="Exit when branch condition"];
}
10 [label="Synthetic else branch"];
11 [label="Enter when branch result"];
subgraph cluster_6 {
color=blue
12 [label="Enter block"];
13 [label="Function call: R|/B.B|()"];
14 [label="Jump: ^@run R|/B.B|()"];
15 [label="Stub" style="filled" fillcolor=gray];
16 [label="Exit block" style="filled" fillcolor=gray];
}
17 [label="Exit when branch result" style="filled" fillcolor=gray];
18 [label="Exit when"];
}
19 [label="Function call: R|/C.C|()"];
20 [label="Exit function anonymousFunction"];
}
21 [label="Function call: R|kotlin/run|<R|A|>(<L> = run@fun <anonymous>(): R|A| <kind=EXACTLY_ONCE> {
when () { when () {
R|<local>/b| -> { R|<local>/b| -> {
^@run R|/B.B|() ^@run R|/B.B|()
@@ -60,87 +60,87 @@ digraph returnValuesFromLambda_kt {
R|/C.C|() R|/C.C|()
} }
)"]; )"];
22 [label="Variable declaration: lval x: R|A|"]; 22 [label="Variable declaration: lval x: R|A|"];
23 [label="Exit function test_1" style="filled" fillcolor=red]; 23 [label="Exit function test_1" style="filled" fillcolor=red];
}
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {11 10};
10 -> {18};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {20};
14 -> {15} [style=dotted];
15 -> {16} [style=dotted];
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
subgraph cluster_7 {
color=red
24 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
25 [label="Enter function anonymousFunction"];
26 [label="Function call: R|/C.C|()"];
27 [label="Jump: ^@run R|/C.C|()"];
28 [label="Stub" style="filled" fillcolor=gray];
29 [label="Exit function anonymousFunction"];
} }
30 [label="Function call: R|kotlin/run|<R|C|>(<L> = run@fun <anonymous>(): R|C| <kind=EXACTLY_ONCE> {
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {11 10};
10 -> {18};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {20};
14 -> {15} [style=dotted];
15 -> {16} [style=dotted];
16 -> {17} [style=dotted];
17 -> {18} [style=dotted];
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
subgraph cluster_7 {
color=red
24 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_8 {
color=blue
25 [label="Enter function anonymousFunction"];
26 [label="Function call: R|/C.C|()"];
27 [label="Jump: ^@run R|/C.C|()"];
28 [label="Stub" style="filled" fillcolor=gray];
29 [label="Exit function anonymousFunction"];
}
30 [label="Function call: R|kotlin/run|<R|C|>(<L> = run@fun <anonymous>(): R|C| <kind=EXACTLY_ONCE> {
^@run R|/C.C|() ^@run R|/C.C|()
} }
)"]; )"];
31 [label="Variable declaration: lval x: R|C|"]; 31 [label="Variable declaration: lval x: R|C|"];
32 [label="Exit function test_2" style="filled" fillcolor=red]; 32 [label="Exit function test_2" style="filled" fillcolor=red];
}
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {29};
27 -> {28} [style=dotted];
28 -> {29} [style=dotted];
29 -> {30};
30 -> {31};
31 -> {32};
subgraph cluster_9 {
color=red
33 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
34 [label="Enter function anonymousFunction"];
35 [label="Jump: ^test_3 Unit"];
36 [label="Stub" style="filled" fillcolor=gray];
37 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
} }
38 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(<L> = run@fun <anonymous>(): R|kotlin/Nothing| <kind=EXACTLY_ONCE> {
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {29};
27 -> {28} [style=dotted];
28 -> {29} [style=dotted];
29 -> {30};
30 -> {31};
31 -> {32};
subgraph cluster_9 {
color=red
33 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
34 [label="Enter function anonymousFunction"];
35 [label="Jump: ^test_3 Unit"];
36 [label="Stub" style="filled" fillcolor=gray];
37 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
38 [label="Function call: R|kotlin/run|<R|kotlin/Nothing|>(<L> = run@fun <anonymous>(): R|kotlin/Nothing| <kind=EXACTLY_ONCE> {
^test_3 Unit ^test_3 Unit
} }
)" style="filled" fillcolor=gray]; )" style="filled" fillcolor=gray];
39 [label="Stub" style="filled" fillcolor=gray]; 39 [label="Stub" style="filled" fillcolor=gray];
40 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray]; 40 [label="Variable declaration: lval x: R|kotlin/Nothing|" style="filled" fillcolor=gray];
41 [label="Exit function test_3" style="filled" fillcolor=red]; 41 [label="Exit function test_3" style="filled" fillcolor=red];
} }
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {41}; 35 -> {41};
35 -> {36} [style=dotted]; 35 -> {36} [style=dotted];
36 -> {37} [style=dotted]; 36 -> {37} [style=dotted];
37 -> {38} [style=dotted]; 37 -> {38} [style=dotted];
38 -> {41 39} [style=dotted]; 38 -> {41 39} [style=dotted];
39 -> {40} [style=dotted]; 39 -> {40} [style=dotted];
40 -> {41} [style=dotted]; 40 -> {41} [style=dotted];
} }
+79 -79
View File
@@ -1,98 +1,98 @@
digraph safeCalls_kt { digraph safeCalls_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function bar" style="filled" fillcolor=red]; 2 [label="Enter function bar" style="filled" fillcolor=red];
3 [label="Exit function bar" style="filled" fillcolor=red]; 3 [label="Exit function bar" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function getter" style="filled" fillcolor=red]; 4 [label="Enter function getter" style="filled" fillcolor=red];
5 [label="Exit function getter" style="filled" fillcolor=red]; 5 [label="Exit function getter" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
6 [label="Enter property" style="filled" fillcolor=red]; 6 [label="Enter property" style="filled" fillcolor=red];
7 [label="Exit property" style="filled" fillcolor=red]; 7 [label="Exit property" style="filled" fillcolor=red];
} }
6 -> {7}; 6 -> {7};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
8 [label="Enter function getter" style="filled" fillcolor=red]; 8 [label="Enter function getter" style="filled" fillcolor=red];
9 [label="Exit function getter" style="filled" fillcolor=red]; 9 [label="Exit function getter" style="filled" fillcolor=red];
} }
8 -> {9}; 8 -> {9};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
10 [label="Enter property" style="filled" fillcolor=red]; 10 [label="Enter property" style="filled" fillcolor=red];
11 [label="Exit property" style="filled" fillcolor=red]; 11 [label="Exit property" style="filled" fillcolor=red];
} }
10 -> {11}; 10 -> {11};
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
12 [label="Enter function test_1" style="filled" fillcolor=red]; 12 [label="Enter function test_1" style="filled" fillcolor=red];
13 [label="Access variable R|<local>/x|"]; 13 [label="Access variable R|<local>/x|"];
14 [label="Enter safe call"]; 14 [label="Enter safe call"];
15 [label="Function call: R|<local>/x|?.R|/A.foo|()"]; 15 [label="Function call: R|<local>/x|?.R|/A.foo|()"];
16 [label="Exit safe call"]; 16 [label="Exit safe call"];
17 [label="Enter safe call"]; 17 [label="Enter safe call"];
18 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"]; 18 [label="Function call: R|<local>/x|?.R|/A.foo|()?.R|/A.bar|()"];
19 [label="Exit safe call"]; 19 [label="Exit safe call"];
20 [label="Exit function test_1" style="filled" fillcolor=red]; 20 [label="Exit function test_1" style="filled" fillcolor=red];
} }
12 -> {13}; 12 -> {13};
13 -> {14 16}; 13 -> {14 16};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17 19}; 16 -> {17 19};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
21 [label="Enter function test_2" style="filled" fillcolor=red]; 21 [label="Enter function test_2" style="filled" fillcolor=red];
22 [label="Access variable R|<local>/x|"]; 22 [label="Access variable R|<local>/x|"];
23 [label="Enter safe call"]; 23 [label="Enter safe call"];
24 [label="Access variable R|/B.foo|"]; 24 [label="Access variable R|/B.foo|"];
25 [label="Exit safe call"]; 25 [label="Exit safe call"];
26 [label="Enter safe call"]; 26 [label="Enter safe call"];
27 [label="Access variable R|/B.bar|"]; 27 [label="Access variable R|/B.bar|"];
28 [label="Exit safe call"]; 28 [label="Exit safe call"];
29 [label="Exit function test_2" style="filled" fillcolor=red]; 29 [label="Exit function test_2" style="filled" fillcolor=red];
} }
21 -> {22}; 21 -> {22};
22 -> {23 25}; 22 -> {23 25};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26 28}; 25 -> {26 28};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
} }
+29 -29
View File
@@ -1,36 +1,36 @@
digraph simple_kt { digraph simple_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function test" style="filled" fillcolor=red]; 2 [label="Enter function test" style="filled" fillcolor=red];
3 [label="Const: Int(1)"]; 3 [label="Const: Int(1)"];
4 [label="Variable declaration: lval x: R|kotlin/Int|"]; 4 [label="Variable declaration: lval x: R|kotlin/Int|"];
5 [label="Access variable R|<local>/x|"]; 5 [label="Access variable R|<local>/x|"];
6 [label="Const: Int(1)"]; 6 [label="Const: Int(1)"];
7 [label="Function call: R|<local>/x|.R|kotlin/Int.plus|(Int(1))"]; 7 [label="Function call: R|<local>/x|.R|kotlin/Int.plus|(Int(1))"];
8 [label="Variable declaration: lval y: R|kotlin/Int|"]; 8 [label="Variable declaration: lval y: R|kotlin/Int|"];
9 [label="Function call: R|/foo|()"]; 9 [label="Function call: R|/foo|()"];
10 [label="Exit function test" style="filled" fillcolor=red]; 10 [label="Exit function test" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
} }
+288 -290
View File
@@ -1,306 +1,304 @@
digraph tryCatch_kt { digraph tryCatch_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue
1 [label="Try expression enter"];
subgraph cluster_2 {
color=blue
2 [label="Try main block enter"];
subgraph cluster_3 {
color=blue
3 [label="Enter block"];
4 [label="Const: Int(1)"];
5 [label="Variable declaration: lval x: R|kotlin/Int|"];
6 [label="Exit block"];
}
7 [label="Try main block exit"];
}
subgraph cluster_4 {
color=blue
8 [label="Catch enter"];
subgraph cluster_5 {
color=blue
9 [label="Enter block"];
10 [label="Const: Int(3)"];
11 [label="Variable declaration: lval z: R|kotlin/Int|"];
12 [label="Exit block"];
}
13 [label="Catch exit"];
}
subgraph cluster_6 {
color=blue
14 [label="Catch enter"];
subgraph cluster_7 {
color=blue
15 [label="Enter block"];
16 [label="Const: Int(2)"];
17 [label="Variable declaration: lval y: R|kotlin/Int|"];
18 [label="Exit block"];
}
19 [label="Catch exit"];
}
20 [label="Try expression exit"];
}
21 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {21 14 8 3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {20};
8 -> {21 9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {20};
14 -> {21 15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
subgraph cluster_8 {
color=red
22 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
23 [label="Try expression enter"];
subgraph cluster_10 {
color=blue
24 [label="Try main block enter"];
subgraph cluster_11 {
color=blue
25 [label="Enter block"];
26 [label="Const: Int(1)"];
27 [label="Exit block"];
}
28 [label="Try main block exit"];
}
subgraph cluster_12 {
color=blue
29 [label="Catch enter"];
subgraph cluster_13 {
color=blue
30 [label="Enter block"];
31 [label="Const: Int(2)"];
32 [label="Exit block"];
}
33 [label="Catch exit"];
}
34 [label="Try expression exit"];
}
35 [label="Variable declaration: lval x: R|kotlin/Int|"];
36 [label="Exit function test_2" style="filled" fillcolor=red];
}
22 -> {23};
23 -> {24};
24 -> {36 29 25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {34};
29 -> {36 30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
subgraph cluster_14 {
color=red
37 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
38 [label="Enter while loop"];
subgraph cluster_16 {
color=blue
39 [label="Enter loop condition"];
40 [label="Const: Boolean(true)"];
41 [label="Exit loop condition"];
}
subgraph cluster_17 {
color=blue
42 [label="Enter loop block"];
subgraph cluster_18 {
color=blue
43 [label="Enter block"];
subgraph cluster_19 {
color=blue color=blue
44 [label="Try expression enter"]; 1 [label="Try expression enter"];
subgraph cluster_20 { subgraph cluster_2 {
color=blue
45 [label="Try main block enter"];
subgraph cluster_21 {
color=blue color=blue
46 [label="Enter block"]; 2 [label="Try main block enter"];
subgraph cluster_22 { subgraph cluster_3 {
color=blue
47 [label="Enter when"];
subgraph cluster_23 {
color=blue color=blue
48 [label="Enter when branch condition "]; 3 [label="Enter block"];
49 [label="Access variable R|<local>/b|"]; 4 [label="Const: Int(1)"];
50 [label="Exit when branch condition"]; 5 [label="Variable declaration: lval x: R|kotlin/Int|"];
} 6 [label="Exit block"];
51 [label="Synthetic else branch"];
52 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
53 [label="Enter block"];
54 [label="Jump: ^test_3 Unit"];
55 [label="Stub" style="filled" fillcolor=gray];
56 [label="Exit block" style="filled" fillcolor=gray];
}
57 [label="Exit when branch result" style="filled" fillcolor=gray];
58 [label="Exit when"];
} }
59 [label="Const: Int(1)"]; 7 [label="Try main block exit"];
60 [label="Variable declaration: lval x: R|kotlin/Int|"]; }
subgraph cluster_25 { subgraph cluster_4 {
color=blue color=blue
61 [label="Enter when"]; 8 [label="Catch enter"];
subgraph cluster_26 { subgraph cluster_5 {
color=blue color=blue
62 [label="Enter when branch condition "]; 9 [label="Enter block"];
63 [label="Access variable R|<local>/b|"]; 10 [label="Const: Int(3)"];
64 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 11 [label="Variable declaration: lval z: R|kotlin/Int|"];
65 [label="Exit when branch condition"]; 12 [label="Exit block"];
}
66 [label="Synthetic else branch"];
67 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
68 [label="Enter block"];
69 [label="Jump: break@@@[Boolean(true)] "];
70 [label="Stub" style="filled" fillcolor=gray];
71 [label="Exit block" style="filled" fillcolor=gray];
}
72 [label="Exit when branch result" style="filled" fillcolor=gray];
73 [label="Exit when"];
} }
74 [label="Exit block"]; 13 [label="Catch exit"];
}
75 [label="Try main block exit"];
} }
subgraph cluster_28 { subgraph cluster_6 {
color=blue
76 [label="Catch enter"];
subgraph cluster_29 {
color=blue color=blue
77 [label="Enter block"]; 14 [label="Catch enter"];
78 [label="Jump: break@@@[Boolean(true)] "]; subgraph cluster_7 {
79 [label="Stub" style="filled" fillcolor=gray]; color=blue
80 [label="Exit block" style="filled" fillcolor=gray]; 15 [label="Enter block"];
} 16 [label="Const: Int(2)"];
81 [label="Catch exit" style="filled" fillcolor=gray]; 17 [label="Variable declaration: lval y: R|kotlin/Int|"];
18 [label="Exit block"];
}
19 [label="Catch exit"];
} }
subgraph cluster_30 { 20 [label="Try expression exit"];
color=blue
82 [label="Catch enter"];
subgraph cluster_31 {
color=blue
83 [label="Enter block"];
84 [label="Jump: continue@@@[Boolean(true)] "];
85 [label="Stub" style="filled" fillcolor=gray];
86 [label="Exit block" style="filled" fillcolor=gray];
}
87 [label="Catch exit" style="filled" fillcolor=gray];
}
88 [label="Try expression exit"];
}
89 [label="Const: Int(2)"];
90 [label="Variable declaration: lval y: R|kotlin/Int|"];
91 [label="Exit block"];
} }
92 [label="Exit loop block"]; 21 [label="Exit function test_1" style="filled" fillcolor=red];
}
93 [label="Stub" style="filled" fillcolor=gray];
94 [label="Exit whileloop"];
} }
95 [label="Const: Int(3)"];
96 [label="Variable declaration: lval z: R|kotlin/Int|"];
97 [label="Exit function test_3" style="filled" fillcolor=red];
}
37 -> {38}; 0 -> {1};
38 -> {39}; 1 -> {2};
39 -> {40}; 2 -> {21 14 8 3};
40 -> {41}; 3 -> {4};
41 -> {42}; 4 -> {5};
41 -> {93} [style=dotted]; 5 -> {6};
42 -> {43}; 6 -> {7};
43 -> {44}; 7 -> {20};
44 -> {45}; 8 -> {21 9};
45 -> {97 82 76 46}; 9 -> {10};
46 -> {47}; 10 -> {11};
47 -> {48}; 11 -> {12};
48 -> {49}; 12 -> {13};
49 -> {50}; 13 -> {20};
50 -> {52 51}; 14 -> {21 15};
51 -> {58}; 15 -> {16};
52 -> {53}; 16 -> {17};
53 -> {54}; 17 -> {18};
54 -> {97}; 18 -> {19};
54 -> {55} [style=dotted]; 19 -> {20};
55 -> {56} [style=dotted]; 20 -> {21};
56 -> {57} [style=dotted];
57 -> {58} [style=dotted]; subgraph cluster_8 {
58 -> {59}; color=red
59 -> {60}; 22 [label="Enter function test_2" style="filled" fillcolor=red];
60 -> {61}; subgraph cluster_9 {
61 -> {62}; color=blue
62 -> {63}; 23 [label="Try expression enter"];
63 -> {64}; subgraph cluster_10 {
64 -> {65}; color=blue
65 -> {67 66}; 24 [label="Try main block enter"];
66 -> {73}; subgraph cluster_11 {
67 -> {68}; color=blue
68 -> {69}; 25 [label="Enter block"];
69 -> {94}; 26 [label="Const: Int(1)"];
69 -> {70} [style=dotted]; 27 [label="Exit block"];
70 -> {71} [style=dotted]; }
71 -> {72} [style=dotted]; 28 [label="Try main block exit"];
72 -> {73} [style=dotted]; }
73 -> {74}; subgraph cluster_12 {
74 -> {75}; color=blue
75 -> {88}; 29 [label="Catch enter"];
76 -> {97 77}; subgraph cluster_13 {
77 -> {78}; color=blue
78 -> {94}; 30 [label="Enter block"];
78 -> {79} [style=dotted]; 31 [label="Const: Int(2)"];
79 -> {80} [style=dotted]; 32 [label="Exit block"];
80 -> {81} [style=dotted]; }
81 -> {88} [style=dotted]; 33 [label="Catch exit"];
82 -> {97 83}; }
83 -> {84}; 34 [label="Try expression exit"];
84 -> {38}; }
84 -> {85} [style=dotted]; 35 [label="Variable declaration: lval x: R|kotlin/Int|"];
85 -> {86} [style=dotted]; 36 [label="Exit function test_2" style="filled" fillcolor=red];
86 -> {87} [style=dotted]; }
87 -> {88} [style=dotted];
88 -> {89}; 22 -> {23};
89 -> {90}; 23 -> {24};
90 -> {91}; 24 -> {36 29 25};
91 -> {92}; 25 -> {26};
92 -> {39}; 26 -> {27};
93 -> {94} [style=dotted]; 27 -> {28};
94 -> {95}; 28 -> {34};
95 -> {96}; 29 -> {36 30};
96 -> {97}; 30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
subgraph cluster_14 {
color=red
37 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
38 [label="Enter while loop"];
subgraph cluster_16 {
color=blue
39 [label="Enter loop condition"];
40 [label="Const: Boolean(true)"];
41 [label="Exit loop condition"];
}
subgraph cluster_17 {
color=blue
42 [label="Enter loop block"];
subgraph cluster_18 {
color=blue
43 [label="Enter block"];
subgraph cluster_19 {
color=blue
44 [label="Try expression enter"];
subgraph cluster_20 {
color=blue
45 [label="Try main block enter"];
subgraph cluster_21 {
color=blue
46 [label="Enter block"];
subgraph cluster_22 {
color=blue
47 [label="Enter when"];
subgraph cluster_23 {
color=blue
48 [label="Enter when branch condition "];
49 [label="Access variable R|<local>/b|"];
50 [label="Exit when branch condition"];
}
51 [label="Synthetic else branch"];
52 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
53 [label="Enter block"];
54 [label="Jump: ^test_3 Unit"];
55 [label="Stub" style="filled" fillcolor=gray];
56 [label="Exit block" style="filled" fillcolor=gray];
}
57 [label="Exit when branch result" style="filled" fillcolor=gray];
58 [label="Exit when"];
}
59 [label="Const: Int(1)"];
60 [label="Variable declaration: lval x: R|kotlin/Int|"];
subgraph cluster_25 {
color=blue
61 [label="Enter when"];
subgraph cluster_26 {
color=blue
62 [label="Enter when branch condition "];
63 [label="Access variable R|<local>/b|"];
64 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
65 [label="Exit when branch condition"];
}
66 [label="Synthetic else branch"];
67 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
68 [label="Enter block"];
69 [label="Jump: break@@@[Boolean(true)] "];
70 [label="Stub" style="filled" fillcolor=gray];
71 [label="Exit block" style="filled" fillcolor=gray];
}
72 [label="Exit when branch result" style="filled" fillcolor=gray];
73 [label="Exit when"];
}
74 [label="Exit block"];
}
75 [label="Try main block exit"];
}
subgraph cluster_28 {
color=blue
76 [label="Catch enter"];
subgraph cluster_29 {
color=blue
77 [label="Enter block"];
78 [label="Jump: break@@@[Boolean(true)] "];
79 [label="Stub" style="filled" fillcolor=gray];
80 [label="Exit block" style="filled" fillcolor=gray];
}
81 [label="Catch exit" style="filled" fillcolor=gray];
}
subgraph cluster_30 {
color=blue
82 [label="Catch enter"];
subgraph cluster_31 {
color=blue
83 [label="Enter block"];
84 [label="Jump: continue@@@[Boolean(true)] "];
85 [label="Stub" style="filled" fillcolor=gray];
86 [label="Exit block" style="filled" fillcolor=gray];
}
87 [label="Catch exit" style="filled" fillcolor=gray];
}
88 [label="Try expression exit"];
}
89 [label="Const: Int(2)"];
90 [label="Variable declaration: lval y: R|kotlin/Int|"];
91 [label="Exit block"];
}
92 [label="Exit loop block"];
}
93 [label="Exit whileloop"];
}
94 [label="Const: Int(3)"];
95 [label="Variable declaration: lval z: R|kotlin/Int|"];
96 [label="Exit function test_3" style="filled" fillcolor=red];
}
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
41 -> {93} [style=dotted];
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {96 82 76 46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {52 51};
51 -> {58};
52 -> {53};
53 -> {54};
54 -> {96};
54 -> {55} [style=dotted];
55 -> {56} [style=dotted];
56 -> {57} [style=dotted];
57 -> {58} [style=dotted];
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {67 66};
66 -> {73};
67 -> {68};
68 -> {69};
69 -> {93};
69 -> {70} [style=dotted];
70 -> {71} [style=dotted];
71 -> {72} [style=dotted];
72 -> {73} [style=dotted];
73 -> {74};
74 -> {75};
75 -> {88};
76 -> {96 77};
77 -> {78};
78 -> {93};
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {88} [style=dotted];
82 -> {96 83};
83 -> {84};
84 -> {38};
84 -> {85} [style=dotted];
85 -> {86} [style=dotted];
86 -> {87} [style=dotted];
87 -> {88} [style=dotted];
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {39};
93 -> {94};
94 -> {95};
95 -> {96};
} }
+183 -183
View File
@@ -1,190 +1,190 @@
digraph when_kt { digraph when_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter when"]; 1 [label="Enter when"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
2 [label="Enter when branch condition "]; 2 [label="Enter when branch condition "];
3 [label="Access variable R|<local>/x|"]; 3 [label="Access variable R|<local>/x|"];
4 [label="Const: Int(1)"]; 4 [label="Const: Int(1)"];
5 [label="Operator =="]; 5 [label="Operator =="];
6 [label="Exit when branch condition"]; 6 [label="Exit when branch condition"];
} }
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
7 [label="Enter when branch condition "]; 7 [label="Enter when branch condition "];
8 [label="Access variable R|<local>/x|"]; 8 [label="Access variable R|<local>/x|"];
9 [label="Const: Int(2)"]; 9 [label="Const: Int(2)"];
10 [label="Function call: R|<local>/x|.R|kotlin/Int.rem|(Int(2))"]; 10 [label="Function call: R|<local>/x|.R|kotlin/Int.rem|(Int(2))"];
11 [label="Const: Int(0)"]; 11 [label="Const: Int(0)"];
12 [label="Operator =="]; 12 [label="Operator =="];
13 [label="Exit when branch condition"]; 13 [label="Exit when branch condition"];
} }
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
14 [label="Enter when branch condition "]; 14 [label="Enter when branch condition "];
15 [label="Const: Int(1)"]; 15 [label="Const: Int(1)"];
16 [label="Const: Int(1)"]; 16 [label="Const: Int(1)"];
17 [label="Function call: Int(1).R|kotlin/Int.minus|(Int(1))"]; 17 [label="Function call: Int(1).R|kotlin/Int.minus|(Int(1))"];
18 [label="Const: Int(0)"]; 18 [label="Const: Int(0)"];
19 [label="Operator =="]; 19 [label="Operator =="];
20 [label="Exit when branch condition"]; 20 [label="Exit when branch condition"];
} }
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
21 [label="Enter when branch condition else"]; 21 [label="Enter when branch condition else"];
22 [label="Exit when branch condition"]; 22 [label="Exit when branch condition"];
} }
23 [label="Enter when branch result"]; 23 [label="Enter when branch result"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
24 [label="Enter block"]; 24 [label="Enter block"];
25 [label="Const: Int(5)"]; 25 [label="Const: Int(5)"];
26 [label="Exit block"]; 26 [label="Exit block"];
} }
27 [label="Exit when branch result"]; 27 [label="Exit when branch result"];
28 [label="Enter when branch result"]; 28 [label="Enter when branch result"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
29 [label="Enter block"]; 29 [label="Enter block"];
30 [label="Jump: ^test_1 Unit"]; 30 [label="Jump: ^test_1 Unit"];
31 [label="Stub" style="filled" fillcolor=gray]; 31 [label="Stub" style="filled" fillcolor=gray];
32 [label="Exit block" style="filled" fillcolor=gray]; 32 [label="Exit block" style="filled" fillcolor=gray];
} }
33 [label="Exit when branch result" style="filled" fillcolor=gray]; 33 [label="Exit when branch result" style="filled" fillcolor=gray];
34 [label="Enter when branch result"]; 34 [label="Enter when branch result"];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
35 [label="Enter block"]; 35 [label="Enter block"];
36 [label="Const: Int(20)"]; 36 [label="Const: Int(20)"];
37 [label="Exit block"]; 37 [label="Exit block"];
} }
38 [label="Exit when branch result"]; 38 [label="Exit when branch result"];
39 [label="Enter when branch result"]; 39 [label="Enter when branch result"];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
40 [label="Enter block"]; 40 [label="Enter block"];
41 [label="Const: Int(10)"]; 41 [label="Const: Int(10)"];
42 [label="Exit block"]; 42 [label="Exit block"];
} }
43 [label="Exit when branch result"]; 43 [label="Exit when branch result"];
44 [label="Exit when"]; 44 [label="Exit when"];
}
45 [label="Variable declaration: lval y: R|kotlin/Int|"];
46 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {39 7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {34 14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {28 21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {44};
28 -> {29};
29 -> {30};
30 -> {46};
30 -> {31} [style=dotted];
31 -> {32} [style=dotted];
32 -> {33} [style=dotted];
33 -> {44} [style=dotted];
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {44};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
subgraph cluster_10 {
color=red
47 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
48 [label="Enter when"];
subgraph cluster_12 {
color=blue
49 [label="Enter when branch condition "];
subgraph cluster_13 {
color=blue
50 [label="Enter &&"];
51 [label="Access variable R|<local>/x|"];
52 [label="Type operator: x is A"];
53 [label="Exit left part of &&"];
54 [label="Enter right part of &&"];
55 [label="Access variable R|<local>/x|"];
56 [label="Type operator: x is B"];
57 [label="Exit &&"];
} }
58 [label="Exit when branch condition"]; 45 [label="Variable declaration: lval y: R|kotlin/Int|"];
} 46 [label="Exit function test_1" style="filled" fillcolor=red];
59 [label="Synthetic else branch"];
60 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
61 [label="Enter block"];
62 [label="Access variable R|<local>/x|"];
63 [label="Type operator: x is A"];
64 [label="Exit block"];
}
65 [label="Exit when branch result"];
66 [label="Exit when"];
} }
67 [label="Exit function test_2" style="filled" fillcolor=red];
}
47 -> {48}; 0 -> {1};
48 -> {49}; 1 -> {2};
49 -> {50}; 2 -> {3};
50 -> {51}; 3 -> {4};
51 -> {52}; 4 -> {5};
52 -> {53}; 5 -> {6};
53 -> {57 54}; 6 -> {39 7};
54 -> {55}; 7 -> {8};
55 -> {56}; 8 -> {9};
56 -> {57}; 9 -> {10};
57 -> {58}; 10 -> {11};
58 -> {60 59}; 11 -> {12};
59 -> {66}; 12 -> {13};
60 -> {61}; 13 -> {34 14};
61 -> {62}; 14 -> {15};
62 -> {63}; 15 -> {16};
63 -> {64}; 16 -> {17};
64 -> {65}; 17 -> {18};
65 -> {66}; 18 -> {19};
66 -> {67}; 19 -> {20};
20 -> {28 21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {44};
28 -> {29};
29 -> {30};
30 -> {46};
30 -> {31} [style=dotted];
31 -> {32} [style=dotted];
32 -> {33} [style=dotted];
33 -> {44} [style=dotted];
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {44};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
subgraph cluster_10 {
color=red
47 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
48 [label="Enter when"];
subgraph cluster_12 {
color=blue
49 [label="Enter when branch condition "];
subgraph cluster_13 {
color=blue
50 [label="Enter &&"];
51 [label="Access variable R|<local>/x|"];
52 [label="Type operator: x is A"];
53 [label="Exit left part of &&"];
54 [label="Enter right part of &&"];
55 [label="Access variable R|<local>/x|"];
56 [label="Type operator: x is B"];
57 [label="Exit &&"];
}
58 [label="Exit when branch condition"];
}
59 [label="Synthetic else branch"];
60 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
61 [label="Enter block"];
62 [label="Access variable R|<local>/x|"];
63 [label="Type operator: x is A"];
64 [label="Exit block"];
}
65 [label="Exit when branch result"];
66 [label="Exit when"];
}
67 [label="Exit function test_2" style="filled" fillcolor=red];
}
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {57 54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {60 59};
59 -> {66};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
} }
@@ -1,463 +1,463 @@
digraph anotherBoundSmartcasts_kt { digraph anotherBoundSmartcasts_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red]; 1 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
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];
}
2 -> {3};
3 -> {4};
4 -> {6};
4 -> {5} [style=dotted];
5 -> {6} [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];
}
7 -> {8};
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];
}
9 -> {10};
10 -> {11};
subgraph cluster_4 {
color=red
12 [label="Enter function bar" style="filled" fillcolor=red];
13 [label="Exit function bar" style="filled" fillcolor=red];
}
12 -> {13};
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?|"];
subgraph cluster_6 {
color=blue
20 [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"];
}
26 [label="Synthetic else branch"];
27 [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"];
}
32 [label="Exit when branch result"];
33 [label="Exit when"];
} }
34 [label="Exit function test_1" style="filled" fillcolor=red];
}
14 -> {15}; 0 -> {1};
15 -> {16 18};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {27 26};
26 -> {33};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
subgraph cluster_9 { subgraph cluster_1 {
color=red color=red
35 [label="Enter function test_2" style="filled" fillcolor=red]; 2 [label="Enter function foo" style="filled" fillcolor=red];
36 [label="Access variable R|<local>/a|"]; 3 [label="Const: Int(1)"];
37 [label="Enter safe call"]; 4 [label="Jump: ^foo Int(1)"];
38 [label="Function call: R|<local>/a|?.R|/A.foo|()"]; 5 [label="Stub" style="filled" fillcolor=gray];
39 [label="Exit safe call"]; 6 [label="Exit function foo" style="filled" fillcolor=red];
40 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_10 {
color=blue
41 [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"];
}
47 [label="Synthetic else branch"];
48 [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"];
}
53 [label="Exit when branch result"];
54 [label="Exit when"];
} }
55 [label="Exit function test_2" style="filled" fillcolor=red];
}
35 -> {36}; 2 -> {3};
36 -> {37 39}; 3 -> {4};
37 -> {38}; 4 -> {6};
38 -> {39}; 4 -> {5} [style=dotted];
39 -> {40}; 5 -> {6} [style=dotted];
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {48 47};
47 -> {54};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
subgraph cluster_13 { subgraph cluster_2 {
color=red color=red
56 [label="Enter function test_3" style="filled" fillcolor=red]; 7 [label="Enter function getter" style="filled" fillcolor=red];
subgraph cluster_14 { 8 [label="Exit function getter" style="filled" fillcolor=red];
color=blue
57 [label="Enter when"];
58 [label="Access variable R|<local>/x|"];
59 [label="Type operator: x as? A"];
60 [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"];
}
subgraph cluster_16 {
color=blue
65 [label="Enter when branch condition else"];
66 [label="Exit when branch condition"];
}
67 [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"];
}
71 [label="Exit when branch result"];
72 [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];
}
77 [label="Exit when branch result" style="filled" fillcolor=gray];
78 [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];
}
56 -> {57}; 7 -> {8};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {72 65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {78};
72 -> {73};
73 -> {74};
74 -> {84};
74 -> {75} [style=dotted];
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
subgraph cluster_19 { subgraph cluster_3 {
color=red color=red
85 [label="Enter function foo" style="filled" fillcolor=red]; 9 [label="Enter property" style="filled" fillcolor=red];
86 [label="Exit function foo" style="filled" fillcolor=red]; 10 [label="Const: Int(1)"];
} 11 [label="Exit property" style="filled" fillcolor=red];
85 -> {86};
subgraph cluster_20 {
color=red
87 [label="Enter function getter" style="filled" fillcolor=red];
88 [label="Exit function getter" style="filled" fillcolor=red];
}
87 -> {88};
subgraph cluster_21 {
color=red
89 [label="Enter property" style="filled" fillcolor=red];
90 [label="Exit property" style="filled" fillcolor=red];
}
89 -> {90};
subgraph cluster_22 {
color=red
91 [label="Enter function bar" style="filled" fillcolor=red];
92 [label="Exit function bar" style="filled" fillcolor=red];
}
91 -> {92};
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?|"];
subgraph cluster_24 {
color=blue
99 [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"];
}
105 [label="Synthetic else branch"];
106 [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"];
}
111 [label="Exit when branch result"];
112 [label="Exit when"];
} }
113 [label="Exit function test_1" style="filled" fillcolor=red];
}
93 -> {94}; 9 -> {10};
94 -> {95 97}; 10 -> {11};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {106 105};
105 -> {112};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
subgraph cluster_27 { subgraph cluster_4 {
color=red color=red
114 [label="Enter function test_2" style="filled" fillcolor=red]; 12 [label="Enter function bar" style="filled" fillcolor=red];
115 [label="Access variable R|<local>/a|"]; 13 [label="Exit function bar" style="filled" fillcolor=red];
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?|"];
subgraph cluster_28 {
color=blue
120 [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"];
}
126 [label="Synthetic else branch"];
127 [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"];
}
132 [label="Exit when branch result"];
133 [label="Exit when"];
} }
134 [label="Exit function test_2" style="filled" fillcolor=red];
}
114 -> {115}; 12 -> {13};
115 -> {116 118};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {127 126};
126 -> {133};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
subgraph cluster_31 { subgraph cluster_5 {
color=red color=red
135 [label="Enter function test_3" style="filled" fillcolor=red]; 14 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_32 { 15 [label="Access variable R|<local>/a|"];
color=blue 16 [label="Enter safe call"];
136 [label="Enter when"]; 17 [label="Access variable R|/A.x|"];
137 [label="Access variable R|<local>/x|"]; 18 [label="Exit safe call"];
138 [label="Type operator: x as? B"]; 19 [label="Variable declaration: lval x: R|kotlin/Int?|"];
139 [label="Variable declaration: lval <elvis>: R|B?|"]; subgraph cluster_6 {
subgraph cluster_33 { color=blue
color=blue 20 [label="Enter when"];
140 [label="Enter when branch condition "]; subgraph cluster_7 {
141 [label="Const: Null(null)"]; color=blue
142 [label="Operator =="]; 21 [label="Enter when branch condition "];
143 [label="Exit when branch condition"]; 22 [label="Access variable R|<local>/x|"];
} 23 [label="Const: Null(null)"];
subgraph cluster_34 { 24 [label="Operator !="];
color=blue 25 [label="Exit when branch condition"];
144 [label="Enter when branch condition else"]; }
145 [label="Exit when branch condition"]; 26 [label="Synthetic else branch"];
} 27 [label="Enter when branch result"];
146 [label="Enter when branch result"]; subgraph cluster_8 {
subgraph cluster_35 { color=blue
color=blue 28 [label="Enter block"];
147 [label="Enter block"]; 29 [label="Access variable R|<local>/a|"];
148 [label="Access variable R|<local>/<elvis>|"]; 30 [label="Function call: R|<local>/a|.R|/A.bar|()"];
149 [label="Exit block"]; 31 [label="Exit block"];
} }
150 [label="Exit when branch result"]; 32 [label="Exit when branch result"];
151 [label="Enter when branch result"]; 33 [label="Exit when"];
subgraph cluster_36 { }
color=blue 34 [label="Exit function test_1" style="filled" fillcolor=red];
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];
}
156 [label="Exit when branch result" style="filled" fillcolor=gray];
157 [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];
}
135 -> {136}; 14 -> {15};
136 -> {137}; 15 -> {16 18};
137 -> {138}; 16 -> {17};
138 -> {139}; 17 -> {18};
139 -> {140}; 18 -> {19};
140 -> {141}; 19 -> {20};
141 -> {142}; 20 -> {21};
142 -> {143}; 21 -> {22};
143 -> {151 144}; 22 -> {23};
144 -> {145}; 23 -> {24};
145 -> {146}; 24 -> {25};
146 -> {147}; 25 -> {27 26};
147 -> {148}; 26 -> {33};
148 -> {149}; 27 -> {28};
149 -> {150}; 28 -> {29};
150 -> {157}; 29 -> {30};
151 -> {152}; 30 -> {31};
152 -> {153}; 31 -> {32};
153 -> {163}; 32 -> {33};
153 -> {154} [style=dotted]; 33 -> {34};
154 -> {155} [style=dotted];
155 -> {156} [style=dotted]; subgraph cluster_9 {
156 -> {157} [style=dotted]; color=red
157 -> {158}; 35 [label="Enter function test_2" style="filled" fillcolor=red];
158 -> {159}; 36 [label="Access variable R|<local>/a|"];
159 -> {160}; 37 [label="Enter safe call"];
160 -> {161}; 38 [label="Function call: R|<local>/a|?.R|/A.foo|()"];
161 -> {162}; 39 [label="Exit safe call"];
162 -> {163}; 40 [label="Variable declaration: lval x: R|kotlin/Int?|"];
subgraph cluster_10 {
color=blue
41 [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"];
}
47 [label="Synthetic else branch"];
48 [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"];
}
53 [label="Exit when branch result"];
54 [label="Exit when"];
}
55 [label="Exit function test_2" style="filled" fillcolor=red];
}
35 -> {36};
36 -> {37 39};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {48 47};
47 -> {54};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
subgraph cluster_13 {
color=red
56 [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: x as? A"];
60 [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"];
}
subgraph cluster_16 {
color=blue
65 [label="Enter when branch condition else"];
66 [label="Exit when branch condition"];
}
67 [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"];
}
71 [label="Exit when branch result"];
72 [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];
}
77 [label="Exit when branch result" style="filled" fillcolor=gray];
78 [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];
}
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {72 65};
65 -> {66};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {78};
72 -> {73};
73 -> {74};
74 -> {84};
74 -> {75} [style=dotted];
75 -> {76} [style=dotted];
76 -> {77} [style=dotted];
77 -> {78} [style=dotted];
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
subgraph cluster_19 {
color=red
85 [label="Enter function foo" style="filled" fillcolor=red];
86 [label="Exit function foo" style="filled" fillcolor=red];
}
85 -> {86};
subgraph cluster_20 {
color=red
87 [label="Enter function getter" style="filled" fillcolor=red];
88 [label="Exit function getter" style="filled" fillcolor=red];
}
87 -> {88};
subgraph cluster_21 {
color=red
89 [label="Enter property" style="filled" fillcolor=red];
90 [label="Exit property" style="filled" fillcolor=red];
}
89 -> {90};
subgraph cluster_22 {
color=red
91 [label="Enter function bar" style="filled" fillcolor=red];
92 [label="Exit function bar" style="filled" fillcolor=red];
}
91 -> {92};
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?|"];
subgraph cluster_24 {
color=blue
99 [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"];
}
105 [label="Synthetic else branch"];
106 [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"];
}
111 [label="Exit when branch result"];
112 [label="Exit when"];
}
113 [label="Exit function test_1" style="filled" fillcolor=red];
}
93 -> {94};
94 -> {95 97};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {106 105};
105 -> {112};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
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?|"];
subgraph cluster_28 {
color=blue
120 [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"];
}
126 [label="Synthetic else branch"];
127 [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"];
}
132 [label="Exit when branch result"];
133 [label="Exit when"];
}
134 [label="Exit function test_2" style="filled" fillcolor=red];
}
114 -> {115};
115 -> {116 118};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {127 126};
126 -> {133};
127 -> {128};
128 -> {129};
129 -> {130};
130 -> {131};
131 -> {132};
132 -> {133};
133 -> {134};
subgraph cluster_31 {
color=red
135 [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: x as? B"];
139 [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"];
}
subgraph cluster_34 {
color=blue
144 [label="Enter when branch condition else"];
145 [label="Exit when branch condition"];
}
146 [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"];
}
150 [label="Exit when branch result"];
151 [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];
}
156 [label="Exit when branch result" style="filled" fillcolor=gray];
157 [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];
}
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
141 -> {142};
142 -> {143};
143 -> {151 144};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {149};
149 -> {150};
150 -> {157};
151 -> {152};
152 -> {153};
153 -> {163};
153 -> {154} [style=dotted];
154 -> {155} [style=dotted];
155 -> {156} [style=dotted];
156 -> {157} [style=dotted];
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
162 -> {163};
} }
+331 -331
View File
@@ -1,357 +1,357 @@
digraph bangbang_kt { digraph bangbang_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function test_0" style="filled" fillcolor=red];
3 [label="Access variable R|<local>/a|"];
4 [label="Check not null: R|<local>/a|!!"];
5 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
6 [label="Access variable R|<local>/a|"];
7 [label="Function call: R|<local>/a|.R|/A.foo|()"];
8 [label="Exit function test_0" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
subgraph cluster_2 {
color=red
9 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
10 [label="Enter when"];
subgraph cluster_4 {
color=blue
11 [label="Enter when branch condition "];
12 [label="Access variable R|<local>/a|"];
13 [label="Check not null: R|<local>/a|!!"];
14 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
15 [label="Exit when branch condition"];
}
16 [label="Synthetic else branch"];
17 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
18 [label="Enter block"];
19 [label="Access variable R|<local>/a|"];
20 [label="Function call: R|<local>/a|.R|/A.foo|()"];
21 [label="Exit block"];
}
22 [label="Exit when branch result"];
23 [label="Exit when"];
} }
24 [label="Access variable R|<local>/a|"];
25 [label="Function call: R|<local>/a|.R|/A.foo|()"];
26 [label="Exit function test_1" style="filled" fillcolor=red];
}
9 -> {10}; 0 -> {1};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {17 16};
16 -> {23};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
subgraph cluster_6 { subgraph cluster_1 {
color=red color=red
27 [label="Enter function test_2" style="filled" fillcolor=red]; 2 [label="Enter function test_0" style="filled" fillcolor=red];
subgraph cluster_7 { 3 [label="Access variable R|<local>/a|"];
color=blue 4 [label="Check not null: R|<local>/a|!!"];
28 [label="Enter when"]; 5 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
subgraph cluster_8 { 6 [label="Access variable R|<local>/a|"];
color=blue 7 [label="Function call: R|<local>/a|.R|/A.foo|()"];
29 [label="Enter when branch condition "]; 8 [label="Exit function test_0" style="filled" fillcolor=red];
subgraph cluster_9 { }
color=blue
30 [label="Enter &&"]; 2 -> {3};
31 [label="Access variable R|<local>/a|"]; 3 -> {4};
32 [label="Check not null: R|<local>/a|!!"]; 4 -> {5};
33 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 5 -> {6};
34 [label="Exit left part of &&"]; 6 -> {7};
35 [label="Enter right part of &&"]; 7 -> {8};
36 [label="Access variable R|<local>/b|"];
37 [label="Exit &&"]; subgraph cluster_2 {
color=red
9 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_3 {
color=blue
10 [label="Enter when"];
subgraph cluster_4 {
color=blue
11 [label="Enter when branch condition "];
12 [label="Access variable R|<local>/a|"];
13 [label="Check not null: R|<local>/a|!!"];
14 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
15 [label="Exit when branch condition"];
}
16 [label="Synthetic else branch"];
17 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
18 [label="Enter block"];
19 [label="Access variable R|<local>/a|"];
20 [label="Function call: R|<local>/a|.R|/A.foo|()"];
21 [label="Exit block"];
}
22 [label="Exit when branch result"];
23 [label="Exit when"];
} }
38 [label="Exit when branch condition"]; 24 [label="Access variable R|<local>/a|"];
} 25 [label="Function call: R|<local>/a|.R|/A.foo|()"];
39 [label="Synthetic else branch"]; 26 [label="Exit function test_1" style="filled" fillcolor=red];
40 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
41 [label="Enter block"];
42 [label="Access variable R|<local>/a|"];
43 [label="Function call: R|<local>/a|.R|/A.foo|()"];
44 [label="Exit block"];
}
45 [label="Exit when branch result"];
46 [label="Exit when"];
} }
47 [label="Access variable R|<local>/a|"];
48 [label="Function call: R|<local>/a|.R|/A.foo|()"];
49 [label="Exit function test_2" style="filled" fillcolor=red];
}
27 -> {28}; 9 -> {10};
28 -> {29}; 10 -> {11};
29 -> {30}; 11 -> {12};
30 -> {31}; 12 -> {13};
31 -> {32}; 13 -> {14};
32 -> {33}; 14 -> {15};
33 -> {34}; 15 -> {17 16};
34 -> {37 35}; 16 -> {23};
35 -> {36}; 17 -> {18};
36 -> {37}; 18 -> {19};
37 -> {38}; 19 -> {20};
38 -> {40 39}; 20 -> {21};
39 -> {46}; 21 -> {22};
40 -> {41}; 22 -> {23};
41 -> {42}; 23 -> {24};
42 -> {43}; 24 -> {25};
43 -> {44}; 25 -> {26};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
subgraph cluster_11 { subgraph cluster_6 {
color=red color=red
50 [label="Enter function test_3" style="filled" fillcolor=red]; 27 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_12 { subgraph cluster_7 {
color=blue color=blue
51 [label="Enter when"]; 28 [label="Enter when"];
subgraph cluster_13 { subgraph cluster_8 {
color=blue color=blue
52 [label="Enter when branch condition "]; 29 [label="Enter when branch condition "];
subgraph cluster_14 { subgraph cluster_9 {
color=blue color=blue
53 [label="Enter &&"]; 30 [label="Enter &&"];
54 [label="Access variable R|<local>/b|"]; 31 [label="Access variable R|<local>/a|"];
55 [label="Exit left part of &&"]; 32 [label="Check not null: R|<local>/a|!!"];
56 [label="Enter right part of &&"]; 33 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
57 [label="Access variable R|<local>/a|"]; 34 [label="Exit left part of &&"];
58 [label="Check not null: R|<local>/a|!!"]; 35 [label="Enter right part of &&"];
59 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 36 [label="Access variable R|<local>/b|"];
60 [label="Exit &&"]; 37 [label="Exit &&"];
}
38 [label="Exit when branch condition"];
}
39 [label="Synthetic else branch"];
40 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
41 [label="Enter block"];
42 [label="Access variable R|<local>/a|"];
43 [label="Function call: R|<local>/a|.R|/A.foo|()"];
44 [label="Exit block"];
}
45 [label="Exit when branch result"];
46 [label="Exit when"];
} }
61 [label="Exit when branch condition"]; 47 [label="Access variable R|<local>/a|"];
} 48 [label="Function call: R|<local>/a|.R|/A.foo|()"];
62 [label="Synthetic else branch"]; 49 [label="Exit function test_2" style="filled" fillcolor=red];
63 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
64 [label="Enter block"];
65 [label="Access variable R|<local>/a|"];
66 [label="Function call: R|<local>/a|.R|/A.foo|()"];
67 [label="Exit block"];
}
68 [label="Exit when branch result"];
69 [label="Exit when"];
} }
70 [label="Access variable R|<local>/a|"];
71 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
72 [label="Exit function test_3" style="filled" fillcolor=red];
}
50 -> {51}; 27 -> {28};
51 -> {52}; 28 -> {29};
52 -> {53}; 29 -> {30};
53 -> {54}; 30 -> {31};
54 -> {55}; 31 -> {32};
55 -> {60 56}; 32 -> {33};
56 -> {57}; 33 -> {34};
57 -> {58}; 34 -> {37 35};
58 -> {59}; 35 -> {36};
59 -> {60}; 36 -> {37};
60 -> {61}; 37 -> {38};
61 -> {63 62}; 38 -> {40 39};
62 -> {69}; 39 -> {46};
63 -> {64}; 40 -> {41};
64 -> {65}; 41 -> {42};
65 -> {66}; 42 -> {43};
66 -> {67}; 43 -> {44};
67 -> {68}; 44 -> {45};
68 -> {69}; 45 -> {46};
69 -> {70}; 46 -> {47};
70 -> {71}; 47 -> {48};
71 -> {72}; 48 -> {49};
subgraph cluster_16 { subgraph cluster_11 {
color=red color=red
73 [label="Enter function test_4" style="filled" fillcolor=red]; 50 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_17 { subgraph cluster_12 {
color=blue color=blue
74 [label="Enter when"]; 51 [label="Enter when"];
subgraph cluster_18 { subgraph cluster_13 {
color=blue color=blue
75 [label="Enter when branch condition "]; 52 [label="Enter when branch condition "];
subgraph cluster_19 { subgraph cluster_14 {
color=blue color=blue
76 [label="Enter ||"]; 53 [label="Enter &&"];
77 [label="Access variable R|<local>/a|"]; 54 [label="Access variable R|<local>/b|"];
78 [label="Check not null: R|<local>/a|!!"]; 55 [label="Exit left part of &&"];
79 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 56 [label="Enter right part of &&"];
80 [label="Exit left part of ||"]; 57 [label="Access variable R|<local>/a|"];
81 [label="Enter right part of ||"]; 58 [label="Check not null: R|<local>/a|!!"];
82 [label="Access variable R|<local>/b|"]; 59 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
83 [label="Exit ||"]; 60 [label="Exit &&"];
}
61 [label="Exit when branch condition"];
}
62 [label="Synthetic else branch"];
63 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
64 [label="Enter block"];
65 [label="Access variable R|<local>/a|"];
66 [label="Function call: R|<local>/a|.R|/A.foo|()"];
67 [label="Exit block"];
}
68 [label="Exit when branch result"];
69 [label="Exit when"];
} }
84 [label="Exit when branch condition"]; 70 [label="Access variable R|<local>/a|"];
} 71 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
85 [label="Synthetic else branch"]; 72 [label="Exit function test_3" style="filled" fillcolor=red];
86 [label="Enter when branch result"];
subgraph cluster_20 {
color=blue
87 [label="Enter block"];
88 [label="Access variable R|<local>/a|"];
89 [label="Function call: R|<local>/a|.R|/A.foo|()"];
90 [label="Exit block"];
}
91 [label="Exit when branch result"];
92 [label="Exit when"];
} }
93 [label="Access variable R|<local>/a|"];
94 [label="Function call: R|<local>/a|.R|/A.foo|()"];
95 [label="Exit function test_4" style="filled" fillcolor=red];
}
73 -> {74}; 50 -> {51};
74 -> {75}; 51 -> {52};
75 -> {76}; 52 -> {53};
76 -> {77}; 53 -> {54};
77 -> {78}; 54 -> {55};
78 -> {79}; 55 -> {60 56};
79 -> {80}; 56 -> {57};
80 -> {83 81}; 57 -> {58};
81 -> {82}; 58 -> {59};
82 -> {83}; 59 -> {60};
83 -> {84}; 60 -> {61};
84 -> {86 85}; 61 -> {63 62};
85 -> {92}; 62 -> {69};
86 -> {87}; 63 -> {64};
87 -> {88}; 64 -> {65};
88 -> {89}; 65 -> {66};
89 -> {90}; 66 -> {67};
90 -> {91}; 67 -> {68};
91 -> {92}; 68 -> {69};
92 -> {93}; 69 -> {70};
93 -> {94}; 70 -> {71};
94 -> {95}; 71 -> {72};
subgraph cluster_21 { subgraph cluster_16 {
color=red color=red
96 [label="Enter function test_5" style="filled" fillcolor=red]; 73 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_22 { subgraph cluster_17 {
color=blue color=blue
97 [label="Enter when"]; 74 [label="Enter when"];
subgraph cluster_23 { subgraph cluster_18 {
color=blue color=blue
98 [label="Enter when branch condition "]; 75 [label="Enter when branch condition "];
subgraph cluster_24 { subgraph cluster_19 {
color=blue color=blue
99 [label="Enter ||"]; 76 [label="Enter ||"];
100 [label="Access variable R|<local>/b|"]; 77 [label="Access variable R|<local>/a|"];
101 [label="Exit left part of ||"]; 78 [label="Check not null: R|<local>/a|!!"];
102 [label="Enter right part of ||"]; 79 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
103 [label="Access variable R|<local>/a|"]; 80 [label="Exit left part of ||"];
104 [label="Check not null: R|<local>/a|!!"]; 81 [label="Enter right part of ||"];
105 [label="Function call: R|<local>/a|!!.R|/A.foo|()"]; 82 [label="Access variable R|<local>/b|"];
106 [label="Exit ||"]; 83 [label="Exit ||"];
}
84 [label="Exit when branch condition"];
}
85 [label="Synthetic else branch"];
86 [label="Enter when branch result"];
subgraph cluster_20 {
color=blue
87 [label="Enter block"];
88 [label="Access variable R|<local>/a|"];
89 [label="Function call: R|<local>/a|.R|/A.foo|()"];
90 [label="Exit block"];
}
91 [label="Exit when branch result"];
92 [label="Exit when"];
} }
107 [label="Exit when branch condition"]; 93 [label="Access variable R|<local>/a|"];
} 94 [label="Function call: R|<local>/a|.R|/A.foo|()"];
108 [label="Synthetic else branch"]; 95 [label="Exit function test_4" style="filled" fillcolor=red];
109 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
110 [label="Enter block"];
111 [label="Access variable R|<local>/a|"];
112 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
113 [label="Exit block"];
}
114 [label="Exit when branch result"];
115 [label="Exit when"];
} }
116 [label="Access variable R|<local>/a|"];
117 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
118 [label="Exit function test_5" style="filled" fillcolor=red];
}
96 -> {97}; 73 -> {74};
97 -> {98}; 74 -> {75};
98 -> {99}; 75 -> {76};
99 -> {100}; 76 -> {77};
100 -> {101}; 77 -> {78};
101 -> {106 102}; 78 -> {79};
102 -> {103}; 79 -> {80};
103 -> {104}; 80 -> {83 81};
104 -> {105}; 81 -> {82};
105 -> {106}; 82 -> {83};
106 -> {107}; 83 -> {84};
107 -> {109 108}; 84 -> {86 85};
108 -> {115}; 85 -> {92};
109 -> {110}; 86 -> {87};
110 -> {111}; 87 -> {88};
111 -> {112}; 88 -> {89};
112 -> {113}; 89 -> {90};
113 -> {114}; 90 -> {91};
114 -> {115}; 91 -> {92};
115 -> {116}; 92 -> {93};
116 -> {117}; 93 -> {94};
117 -> {118}; 94 -> {95};
subgraph cluster_26 { subgraph cluster_21 {
color=red color=red
119 [label="Enter function test_6" style="filled" fillcolor=red]; 96 [label="Enter function test_5" style="filled" fillcolor=red];
120 [label="Access variable R|<local>/x|"]; subgraph cluster_22 {
121 [label="Check not null: R|<local>/x|!!"]; color=blue
122 [label="Function call: R|<local>/x|!!.R|/A.foo|()"]; 97 [label="Enter when"];
123 [label="Exit function test_6" style="filled" fillcolor=red]; subgraph cluster_23 {
} color=blue
98 [label="Enter when branch condition "];
subgraph cluster_24 {
color=blue
99 [label="Enter ||"];
100 [label="Access variable R|<local>/b|"];
101 [label="Exit left part of ||"];
102 [label="Enter right part of ||"];
103 [label="Access variable R|<local>/a|"];
104 [label="Check not null: R|<local>/a|!!"];
105 [label="Function call: R|<local>/a|!!.R|/A.foo|()"];
106 [label="Exit ||"];
}
107 [label="Exit when branch condition"];
}
108 [label="Synthetic else branch"];
109 [label="Enter when branch result"];
subgraph cluster_25 {
color=blue
110 [label="Enter block"];
111 [label="Access variable R|<local>/a|"];
112 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
113 [label="Exit block"];
}
114 [label="Exit when branch result"];
115 [label="Exit when"];
}
116 [label="Access variable R|<local>/a|"];
117 [label="Function call: R|<local>/a|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
118 [label="Exit function test_5" style="filled" fillcolor=red];
}
119 -> {120}; 96 -> {97};
120 -> {121}; 97 -> {98};
121 -> {122}; 98 -> {99};
122 -> {123}; 99 -> {100};
100 -> {101};
101 -> {106 102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {109 108};
108 -> {115};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
subgraph cluster_27 { subgraph cluster_26 {
color=red color=red
124 [label="Enter function test_7" style="filled" fillcolor=red]; 119 [label="Enter function test_6" style="filled" fillcolor=red];
125 [label="Access variable R|<local>/x|"]; 120 [label="Access variable R|<local>/x|"];
126 [label="Check not null: R|<local>/x|!!"]; 121 [label="Check not null: R|<local>/x|!!"];
127 [label="Function call: R|<local>/x|!!.R|/A.foo|()"]; 122 [label="Function call: R|<local>/x|!!.R|/A.foo|()"];
128 [label="Exit function test_7" style="filled" fillcolor=red]; 123 [label="Exit function test_6" style="filled" fillcolor=red];
} }
124 -> {125}; 119 -> {120};
125 -> {126}; 120 -> {121};
126 -> {127}; 121 -> {122};
127 -> {128}; 122 -> {123};
subgraph cluster_27 {
color=red
124 [label="Enter function test_7" style="filled" fillcolor=red];
125 [label="Access variable R|<local>/x|"];
126 [label="Check not null: R|<local>/x|!!"];
127 [label="Function call: R|<local>/x|!!.R|/A.foo|()"];
128 [label="Exit function test_7" style="filled" fillcolor=red];
}
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
} }
File diff suppressed because it is too large Load Diff
@@ -41,26 +41,68 @@ fun test_4(x: Any) {
x.<!UNRESOLVED_REFERENCE!>length<!> x.<!UNRESOLVED_REFERENCE!>length<!>
} }
fun test_5(x: A?) { fun test_5(x: Any) {
if (x != null || false) {
x.<!INAPPLICABLE_CANDIDATE!>foo<!>()
}
}
fun test_6(x: A?) {
if (false || x != null) {
x.<!INAPPLICABLE_CANDIDATE!>foo<!>()
}
}
fun test_7(x: Any) {
if (x is A && x.bool()) { if (x is A && x.bool()) {
x.foo() x.foo()
} }
} }
fun test_8(x: Any) { fun test_6(x: Any) {
if ((x !is A).not()) { if ((x !is A).not()) {
x.foo() x.foo()
} }
} }
// || and const
fun test_7(x: Any) {
if (x is A || false) {
// TODO: should be smartcast
x.<!UNRESOLVED_REFERENCE!>foo<!>()
}
}
fun test_8(x: Any) {
if (false || x is A) {
// TODO: should be smartcast
x.<!UNRESOLVED_REFERENCE!>foo<!>()
}
}
fun test_9(x: Any) {
if (x is A || true) {
x.<!UNRESOLVED_REFERENCE!>foo<!>()
}
}
fun test_10(x: Any) {
if (true || x is A) {
x.<!UNRESOLVED_REFERENCE!>foo<!>()
}
}
// && and const
fun test_11(x: Any, b: Boolean) {
if (false && x is A) {
x.foo()
}
}
fun test_12(x: Any, b: Boolean) {
if (x is A && false) {
x.foo()
}
}
fun test_13(x: Any, b: Boolean) {
if (true && x is A) {
x.foo()
}
}
fun test_14(x: Any, b: Boolean) {
if (x is A && false) {
x.foo()
}
}
@@ -50,23 +50,7 @@ FILE: booleanOperators.kt
R|<local>/x|.<Unresolved name: length># R|<local>/x|.<Unresolved name: length>#
} }
public final fun test_5(x: R|A?|): R|kotlin/Unit| { public final fun test_5(x: R|kotlin/Any|): R|kotlin/Unit| {
when () {
!=(R|<local>/x|, Null(null)) || Boolean(false) -> {
R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()
}
}
}
public final fun test_6(x: R|A?|): R|kotlin/Unit| {
when () {
Boolean(false) || !=(R|<local>/x|, Null(null)) -> {
R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()
}
}
}
public final fun test_7(x: R|kotlin/Any|): R|kotlin/Unit| {
when () { when () {
(R|<local>/x| is R|A|) && R|<local>/x|.R|/A.bool|() -> { (R|<local>/x| is R|A|) && R|<local>/x|.R|/A.bool|() -> {
R|<local>/x|.R|/A.foo|() R|<local>/x|.R|/A.foo|()
@@ -74,7 +58,7 @@ FILE: booleanOperators.kt
} }
} }
public final fun test_8(x: R|kotlin/Any|): R|kotlin/Unit| { public final fun test_6(x: R|kotlin/Any|): R|kotlin/Unit| {
when () { when () {
(R|<local>/x| !is R|A|).R|kotlin/Boolean.not|() -> { (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|() -> {
R|<local>/x|.R|/A.foo|() R|<local>/x|.R|/A.foo|()
@@ -82,3 +66,67 @@ FILE: booleanOperators.kt
} }
} }
public final fun test_7(x: R|kotlin/Any|): R|kotlin/Unit| {
when () {
(R|<local>/x| is R|A|) || Boolean(false) -> {
R|<local>/x|.<Unresolved name: foo>#()
}
}
}
public final fun test_8(x: R|kotlin/Any|): R|kotlin/Unit| {
when () {
Boolean(false) || (R|<local>/x| is R|A|) -> {
R|<local>/x|.<Unresolved name: foo>#()
}
}
}
public final fun test_9(x: R|kotlin/Any|): R|kotlin/Unit| {
when () {
(R|<local>/x| is R|A|) || Boolean(true) -> {
R|<local>/x|.<Unresolved name: foo>#()
}
}
}
public final fun test_10(x: R|kotlin/Any|): R|kotlin/Unit| {
when () {
Boolean(true) || (R|<local>/x| is R|A|) -> {
R|<local>/x|.<Unresolved name: foo>#()
}
}
}
public final fun test_11(x: R|kotlin/Any|, b: R|kotlin/Boolean|): R|kotlin/Unit| {
when () {
Boolean(false) && (R|<local>/x| is R|A|) -> {
R|<local>/x|.R|/A.foo|()
}
}
}
public final fun test_12(x: R|kotlin/Any|, b: R|kotlin/Boolean|): R|kotlin/Unit| {
when () {
(R|<local>/x| is R|A|) && Boolean(false) -> {
R|<local>/x|.R|/A.foo|()
}
}
}
public final fun test_13(x: R|kotlin/Any|, b: R|kotlin/Boolean|): R|kotlin/Unit| {
when () {
Boolean(true) && (R|<local>/x| is R|A|) -> {
R|<local>/x|.R|/A.foo|()
}
}
}
public final fun test_14(x: R|kotlin/Any|, b: R|kotlin/Boolean|): R|kotlin/Unit| {
when () {
(R|<local>/x| is R|A|) && Boolean(false) -> {
R|<local>/x|.R|/A.foo|()
}
}
}
@@ -0,0 +1,503 @@
digraph booleanOperators_kt {
graph [splines=ortho nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function bool" style="filled" fillcolor=red];
3 [label="Exit function bool" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function bar" style="filled" fillcolor=red];
5 [label="Exit function bar" style="filled" fillcolor=red];
}
4 -> {5};
subgraph cluster_3 {
color=red
6 [label="Enter function baz" style="filled" fillcolor=red];
7 [label="Exit function baz" style="filled" fillcolor=red];
}
6 -> {7};
subgraph cluster_4 {
color=red
8 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_5 {
color=blue
9 [label="Enter when"];
subgraph cluster_6 {
color=blue
10 [label="Enter when branch condition "];
subgraph cluster_7 {
color=blue
11 [label="Enter &&"];
12 [label="Access variable R|<local>/x|"];
13 [label="Type operator: x is B"];
14 [label="Exit left part of &&"];
15 [label="Enter right part of &&"];
16 [label="Access variable R|<local>/x|"];
17 [label="Type operator: x is C"];
18 [label="Exit &&"];
}
19 [label="Exit when branch condition"];
}
20 [label="Synthetic else branch"];
21 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
22 [label="Enter block"];
23 [label="Access variable R|<local>/x|"];
24 [label="Function call: R|<local>/x|.R|/A.foo|()"];
25 [label="Access variable R|<local>/x|"];
26 [label="Function call: R|<local>/x|.R|/B.bar|()"];
27 [label="Access variable R|<local>/x|"];
28 [label="Function call: R|<local>/x|.R|/C.baz|()"];
29 [label="Exit block"];
}
30 [label="Exit when branch result"];
31 [label="Exit when"];
}
32 [label="Exit function test_1" style="filled" fillcolor=red];
}
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {18 15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {21 20};
20 -> {31};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
subgraph cluster_9 {
color=red
33 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_10 {
color=blue
34 [label="Enter when"];
subgraph cluster_11 {
color=blue
35 [label="Enter when branch condition "];
subgraph cluster_12 {
color=blue
36 [label="Enter ||"];
37 [label="Access variable R|<local>/x|"];
38 [label="Type operator: x is B"];
39 [label="Exit left part of ||"];
40 [label="Enter right part of ||"];
41 [label="Access variable R|<local>/x|"];
42 [label="Type operator: x is C"];
43 [label="Exit ||"];
}
44 [label="Exit when branch condition"];
}
45 [label="Synthetic else branch"];
46 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
47 [label="Enter block"];
48 [label="Access variable R|<local>/x|"];
49 [label="Function call: R|<local>/x|.R|/A.foo|()"];
50 [label="Access variable R|<local>/x|"];
51 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
54 [label="Exit block"];
}
55 [label="Exit when branch result"];
56 [label="Exit when"];
}
57 [label="Exit function test_2" style="filled" fillcolor=red];
}
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {43 40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {46 45};
45 -> {56};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
subgraph cluster_14 {
color=red
58 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
59 [label="Enter when"];
subgraph cluster_16 {
color=blue
60 [label="Enter when branch condition "];
61 [label="Access variable R|<local>/x|"];
62 [label="Type operator: x !is A"];
63 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()"];
64 [label="Exit when branch condition"];
}
65 [label="Synthetic else branch"];
66 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
67 [label="Enter block"];
68 [label="Access variable R|<local>/x|"];
69 [label="Function call: R|<local>/x|.R|/A.foo|()"];
70 [label="Exit block"];
}
71 [label="Exit when branch result"];
72 [label="Exit when"];
}
73 [label="Exit function test_3" style="filled" fillcolor=red];
}
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {66 65};
65 -> {72};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
subgraph cluster_18 {
color=red
74 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_19 {
color=blue
75 [label="Enter when"];
subgraph cluster_20 {
color=blue
76 [label="Enter when branch condition "];
subgraph cluster_21 {
color=blue
77 [label="Enter ||"];
78 [label="Access variable R|<local>/x|"];
79 [label="Type operator: x !is String"];
80 [label="Exit left part of ||"];
81 [label="Enter right part of ||"];
82 [label="Access variable R|<local>/x|"];
83 [label="Access variable R|kotlin/String.length|"];
84 [label="Const: Int(0)"];
85 [label="Operator =="];
86 [label="Exit ||"];
}
87 [label="Exit when branch condition"];
}
88 [label="Synthetic else branch"];
89 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
90 [label="Enter block"];
91 [label="Access variable R|<local>/x|"];
92 [label="Access variable <Unresolved name: length>#"];
93 [label="Exit block"];
}
94 [label="Exit when branch result"];
95 [label="Exit when"];
}
96 [label="Access variable R|<local>/x|"];
97 [label="Access variable <Unresolved name: length>#"];
98 [label="Exit function test_4" style="filled" fillcolor=red];
}
74 -> {75};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {86 81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {89 88};
88 -> {95};
89 -> {90};
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
subgraph cluster_23 {
color=red
99 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_24 {
color=blue
100 [label="Enter when"];
subgraph cluster_25 {
color=blue
101 [label="Enter when branch condition "];
subgraph cluster_26 {
color=blue
102 [label="Enter ||"];
103 [label="Access variable R|<local>/x|"];
104 [label="Const: Null(null)"];
105 [label="Operator !="];
106 [label="Exit left part of ||"];
107 [label="Enter right part of ||"];
108 [label="Const: Boolean(false)"];
109 [label="Exit ||"];
}
110 [label="Exit when branch condition"];
}
111 [label="Synthetic else branch"];
112 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
113 [label="Enter block"];
114 [label="Access variable R|<local>/x|"];
115 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
116 [label="Exit block"];
}
117 [label="Exit when branch result"];
118 [label="Exit when"];
}
119 [label="Exit function test_5" style="filled" fillcolor=red];
}
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {109 107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {112 111};
111 -> {118};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
subgraph cluster_28 {
color=red
120 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_29 {
color=blue
121 [label="Enter when"];
subgraph cluster_30 {
color=blue
122 [label="Enter when branch condition "];
subgraph cluster_31 {
color=blue
123 [label="Enter ||"];
124 [label="Const: Boolean(false)"];
125 [label="Exit left part of ||"];
126 [label="Enter right part of ||"];
127 [label="Access variable R|<local>/x|"];
128 [label="Const: Null(null)"];
129 [label="Operator !="];
130 [label="Stub" style="filled" fillcolor=gray];
131 [label="Exit ||"];
}
132 [label="Exit when branch condition"];
}
133 [label="Synthetic else branch"];
134 [label="Enter when branch result"];
subgraph cluster_32 {
color=blue
135 [label="Enter block"];
136 [label="Access variable R|<local>/x|"];
137 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
138 [label="Exit block"];
}
139 [label="Exit when branch result"];
140 [label="Exit when"];
}
141 [label="Exit function test_6" style="filled" fillcolor=red];
}
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
125 -> {130} [style=dotted];
126 -> {127};
127 -> {128};
128 -> {129};
129 -> {131};
130 -> {131} [style=dotted];
131 -> {132};
132 -> {134 133};
133 -> {140};
134 -> {135};
135 -> {136};
136 -> {137};
137 -> {138};
138 -> {139};
139 -> {140};
140 -> {141};
subgraph cluster_33 {
color=red
142 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_34 {
color=blue
143 [label="Enter when"];
subgraph cluster_35 {
color=blue
144 [label="Enter when branch condition "];
subgraph cluster_36 {
color=blue
145 [label="Enter &&"];
146 [label="Access variable R|<local>/x|"];
147 [label="Type operator: x is A"];
148 [label="Exit left part of &&"];
149 [label="Enter right part of &&"];
150 [label="Access variable R|<local>/x|"];
151 [label="Function call: R|<local>/x|.R|/A.bool|()"];
152 [label="Exit &&"];
}
153 [label="Exit when branch condition"];
}
154 [label="Synthetic else branch"];
155 [label="Enter when branch result"];
subgraph cluster_37 {
color=blue
156 [label="Enter block"];
157 [label="Access variable R|<local>/x|"];
158 [label="Function call: R|<local>/x|.R|/A.foo|()"];
159 [label="Exit block"];
}
160 [label="Exit when branch result"];
161 [label="Exit when"];
}
162 [label="Exit function test_7" style="filled" fillcolor=red];
}
142 -> {143};
143 -> {144};
144 -> {145};
145 -> {146};
146 -> {147};
147 -> {148};
148 -> {152 149};
149 -> {150};
150 -> {151};
151 -> {152};
152 -> {153};
153 -> {155 154};
154 -> {161};
155 -> {156};
156 -> {157};
157 -> {158};
158 -> {159};
159 -> {160};
160 -> {161};
161 -> {162};
subgraph cluster_38 {
color=red
163 [label="Enter function test_8" style="filled" fillcolor=red];
subgraph cluster_39 {
color=blue
164 [label="Enter when"];
subgraph cluster_40 {
color=blue
165 [label="Enter when branch condition "];
166 [label="Access variable R|<local>/x|"];
167 [label="Type operator: x !is A"];
168 [label="Function call: (R|<local>/x| !is R|A|).R|kotlin/Boolean.not|()"];
169 [label="Exit when branch condition"];
}
170 [label="Synthetic else branch"];
171 [label="Enter when branch result"];
subgraph cluster_41 {
color=blue
172 [label="Enter block"];
173 [label="Access variable R|<local>/x|"];
174 [label="Function call: R|<local>/x|.R|/A.foo|()"];
175 [label="Exit block"];
}
176 [label="Exit when branch result"];
177 [label="Exit when"];
}
178 [label="Exit function test_8" style="filled" fillcolor=red];
}
163 -> {164};
164 -> {165};
165 -> {166};
166 -> {167};
167 -> {168};
168 -> {169};
169 -> {171 170};
170 -> {177};
171 -> {172};
172 -> {173};
173 -> {174};
174 -> {175};
175 -> {176};
176 -> {177};
177 -> {178};
}
@@ -1,281 +1,281 @@
digraph boundSmartcasts_kt { digraph boundSmartcasts_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function bar" style="filled" fillcolor=red];
3 [label="Exit function bar" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function test_1" style="filled" fillcolor=red];
5 [label="Access variable R|<local>/x|"];
6 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_3 {
color=blue
7 [label="Enter when"];
subgraph cluster_4 {
color=blue
8 [label="Enter when branch condition "];
9 [label="Access variable R|<local>/x|"];
10 [label="Type operator: x is A"];
11 [label="Exit when branch condition"];
}
12 [label="Synthetic else branch"];
13 [label="Enter when branch result"];
subgraph cluster_5 {
color=blue
14 [label="Enter block"];
15 [label="Access variable R|<local>/x|"];
16 [label="Function call: R|<local>/x|.R|/A.foo|()"];
17 [label="Access variable R|<local>/y|"];
18 [label="Function call: R|<local>/y|.R|/A.foo|()"];
19 [label="Exit block"];
}
20 [label="Exit when branch result"];
21 [label="Exit when"];
} }
22 [label="Exit function test_1" style="filled" fillcolor=red];
}
4 -> {5}; 0 -> {1};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {11};
11 -> {13 12};
12 -> {21};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
subgraph cluster_6 { subgraph cluster_1 {
color=red color=red
23 [label="Enter function test_2" style="filled" fillcolor=red]; 2 [label="Enter function bar" style="filled" fillcolor=red];
24 [label="Access variable R|<local>/x|"]; 3 [label="Exit function bar" style="filled" fillcolor=red];
25 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_7 {
color=blue
26 [label="Enter when"];
subgraph cluster_8 {
color=blue
27 [label="Enter when branch condition "];
28 [label="Access variable R|<local>/y|"];
29 [label="Type operator: y is A"];
30 [label="Exit when branch condition"];
}
31 [label="Synthetic else branch"];
32 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
33 [label="Enter block"];
34 [label="Access variable R|<local>/x|"];
35 [label="Function call: R|<local>/x|.R|/A.foo|()"];
36 [label="Access variable R|<local>/y|"];
37 [label="Function call: R|<local>/y|.R|/A.foo|()"];
38 [label="Exit block"];
}
39 [label="Exit when branch result"];
40 [label="Exit when"];
} }
41 [label="Exit function test_2" style="filled" fillcolor=red];
}
23 -> {24}; 2 -> {3};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {32 31};
31 -> {40};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
subgraph cluster_10 { subgraph cluster_2 {
color=red color=red
42 [label="Enter function test_3" style="filled" fillcolor=red]; 4 [label="Enter function test_1" style="filled" fillcolor=red];
43 [label="Access variable R|<local>/x|"]; 5 [label="Access variable R|<local>/x|"];
44 [label="Variable declaration: lvar z: R|kotlin/Any|"]; 6 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_11 { subgraph cluster_3 {
color=blue color=blue
45 [label="Enter when"]; 7 [label="Enter when"];
subgraph cluster_12 { subgraph cluster_4 {
color=blue color=blue
46 [label="Enter when branch condition "]; 8 [label="Enter when branch condition "];
47 [label="Access variable R|<local>/x|"]; 9 [label="Access variable R|<local>/x|"];
48 [label="Type operator: x is A"]; 10 [label="Type operator: x is A"];
49 [label="Exit when branch condition"]; 11 [label="Exit when branch condition"];
} }
50 [label="Synthetic else branch"]; 12 [label="Synthetic else branch"];
51 [label="Enter when branch result"]; 13 [label="Enter when branch result"];
subgraph cluster_13 { subgraph cluster_5 {
color=blue color=blue
52 [label="Enter block"]; 14 [label="Enter block"];
53 [label="Access variable R|<local>/z|"]; 15 [label="Access variable R|<local>/x|"];
54 [label="Function call: R|<local>/z|.R|/A.foo|()"]; 16 [label="Function call: R|<local>/x|.R|/A.foo|()"];
55 [label="Exit block"]; 17 [label="Access variable R|<local>/y|"];
} 18 [label="Function call: R|<local>/y|.R|/A.foo|()"];
56 [label="Exit when branch result"]; 19 [label="Exit block"];
57 [label="Exit when"]; }
20 [label="Exit when branch result"];
21 [label="Exit when"];
}
22 [label="Exit function test_1" style="filled" fillcolor=red];
} }
58 [label="Access variable R|<local>/y|"];
59 [label="Assignmenet: R|<local>/z|"]; 4 -> {5};
subgraph cluster_14 { 5 -> {6};
color=blue 6 -> {7};
60 [label="Enter when"]; 7 -> {8};
subgraph cluster_15 { 8 -> {9};
color=blue 9 -> {10};
61 [label="Enter when branch condition "]; 10 -> {11};
62 [label="Access variable R|<local>/y|"]; 11 -> {13 12};
63 [label="Type operator: y is B"]; 12 -> {21};
64 [label="Exit when branch condition"]; 13 -> {14};
} 14 -> {15};
65 [label="Synthetic else branch"]; 15 -> {16};
66 [label="Enter when branch result"]; 16 -> {17};
subgraph cluster_16 { 17 -> {18};
color=blue 18 -> {19};
67 [label="Enter block"]; 19 -> {20};
68 [label="Access variable R|<local>/z|"]; 20 -> {21};
69 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()"]; 21 -> {22};
70 [label="Access variable R|<local>/z|"];
71 [label="Function call: R|<local>/z|.R|/B.bar|()"]; subgraph cluster_6 {
72 [label="Exit block"]; color=red
} 23 [label="Enter function test_2" style="filled" fillcolor=red];
73 [label="Exit when branch result"]; 24 [label="Access variable R|<local>/x|"];
74 [label="Exit when"]; 25 [label="Variable declaration: lval y: R|kotlin/Any|"];
subgraph cluster_7 {
color=blue
26 [label="Enter when"];
subgraph cluster_8 {
color=blue
27 [label="Enter when branch condition "];
28 [label="Access variable R|<local>/y|"];
29 [label="Type operator: y is A"];
30 [label="Exit when branch condition"];
}
31 [label="Synthetic else branch"];
32 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
33 [label="Enter block"];
34 [label="Access variable R|<local>/x|"];
35 [label="Function call: R|<local>/x|.R|/A.foo|()"];
36 [label="Access variable R|<local>/y|"];
37 [label="Function call: R|<local>/y|.R|/A.foo|()"];
38 [label="Exit block"];
}
39 [label="Exit when branch result"];
40 [label="Exit when"];
}
41 [label="Exit function test_2" style="filled" fillcolor=red];
} }
75 [label="Exit function test_3" style="filled" fillcolor=red];
}
42 -> {43}; 23 -> {24};
43 -> {44}; 24 -> {25};
44 -> {45}; 25 -> {26};
45 -> {46}; 26 -> {27};
46 -> {47}; 27 -> {28};
47 -> {48}; 28 -> {29};
48 -> {49}; 29 -> {30};
49 -> {51 50}; 30 -> {32 31};
50 -> {57}; 31 -> {40};
51 -> {52}; 32 -> {33};
52 -> {53}; 33 -> {34};
53 -> {54}; 34 -> {35};
54 -> {55}; 35 -> {36};
55 -> {56}; 36 -> {37};
56 -> {57}; 37 -> {38};
57 -> {58}; 38 -> {39};
58 -> {59}; 39 -> {40};
59 -> {60}; 40 -> {41};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {66 65};
65 -> {74};
66 -> {67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
subgraph cluster_17 { subgraph cluster_10 {
color=red color=red
76 [label="Enter function test_4" style="filled" fillcolor=red]; 42 [label="Enter function test_3" style="filled" fillcolor=red];
77 [label="Const: Int(1)"]; 43 [label="Access variable R|<local>/x|"];
78 [label="Variable declaration: lvar x: R|kotlin/Any|"]; 44 [label="Variable declaration: lvar z: R|kotlin/Any|"];
79 [label="Access variable R|<local>/x|"]; subgraph cluster_11 {
80 [label="Type operator: x as Int"]; color=blue
81 [label="Access variable R|<local>/x|"]; 45 [label="Enter when"];
82 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; subgraph cluster_12 {
83 [label="Access variable R|<local>/y|"]; color=blue
84 [label="Assignmenet: R|<local>/x|"]; 46 [label="Enter when branch condition "];
85 [label="Access variable R|<local>/x|"]; 47 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.<Ambiguity: inc, [kotlin/inc, kotlin/inc]>#()"]; 48 [label="Type operator: x is A"];
subgraph cluster_18 { 49 [label="Exit when branch condition"];
color=blue }
87 [label="Enter when"]; 50 [label="Synthetic else branch"];
subgraph cluster_19 { 51 [label="Enter when branch result"];
color=blue subgraph cluster_13 {
88 [label="Enter when branch condition "]; color=blue
89 [label="Access variable R|<local>/y|"]; 52 [label="Enter block"];
90 [label="Type operator: y is A"]; 53 [label="Access variable R|<local>/z|"];
91 [label="Exit when branch condition"]; 54 [label="Function call: R|<local>/z|.R|/A.foo|()"];
} 55 [label="Exit block"];
92 [label="Synthetic else branch"]; }
93 [label="Enter when branch result"]; 56 [label="Exit when branch result"];
subgraph cluster_20 { 57 [label="Exit when"];
color=blue }
94 [label="Enter block"]; 58 [label="Access variable R|<local>/y|"];
95 [label="Access variable R|<local>/x|"]; 59 [label="Assignmenet: R|<local>/z|"];
96 [label="Function call: R|<local>/x|.R|/A.foo|()"]; subgraph cluster_14 {
97 [label="Access variable R|<local>/y|"]; color=blue
98 [label="Function call: R|<local>/y|.R|/A.foo|()"]; 60 [label="Enter when"];
99 [label="Exit block"]; subgraph cluster_15 {
} color=blue
100 [label="Exit when branch result"]; 61 [label="Enter when branch condition "];
101 [label="Exit when"]; 62 [label="Access variable R|<local>/y|"];
63 [label="Type operator: y is B"];
64 [label="Exit when branch condition"];
}
65 [label="Synthetic else branch"];
66 [label="Enter when branch result"];
subgraph cluster_16 {
color=blue
67 [label="Enter block"];
68 [label="Access variable R|<local>/z|"];
69 [label="Function call: R|<local>/z|.<Unresolved name: foo>#()"];
70 [label="Access variable R|<local>/z|"];
71 [label="Function call: R|<local>/z|.R|/B.bar|()"];
72 [label="Exit block"];
}
73 [label="Exit when branch result"];
74 [label="Exit when"];
}
75 [label="Exit function test_3" style="filled" fillcolor=red];
} }
102 [label="Exit function test_4" style="filled" fillcolor=red];
}
76 -> {77}; 42 -> {43};
77 -> {78}; 43 -> {44};
78 -> {79}; 44 -> {45};
79 -> {80}; 45 -> {46};
80 -> {81}; 46 -> {47};
81 -> {82}; 47 -> {48};
82 -> {83}; 48 -> {49};
83 -> {84}; 49 -> {51 50};
84 -> {85}; 50 -> {57};
85 -> {86}; 51 -> {52};
86 -> {87}; 52 -> {53};
87 -> {88}; 53 -> {54};
88 -> {89}; 54 -> {55};
89 -> {90}; 55 -> {56};
90 -> {91}; 56 -> {57};
91 -> {93 92}; 57 -> {58};
92 -> {101}; 58 -> {59};
93 -> {94}; 59 -> {60};
94 -> {95}; 60 -> {61};
95 -> {96}; 61 -> {62};
96 -> {97}; 62 -> {63};
97 -> {98}; 63 -> {64};
98 -> {99}; 64 -> {66 65};
99 -> {100}; 65 -> {74};
100 -> {101}; 66 -> {67};
101 -> {102}; 67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
subgraph cluster_17 {
color=red
76 [label="Enter function test_4" style="filled" fillcolor=red];
77 [label="Const: Int(1)"];
78 [label="Variable declaration: lvar x: R|kotlin/Any|"];
79 [label="Access variable R|<local>/x|"];
80 [label="Type operator: x as Int"];
81 [label="Access variable R|<local>/x|"];
82 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
83 [label="Access variable R|<local>/y|"];
84 [label="Assignmenet: R|<local>/x|"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.<Ambiguity: inc, [kotlin/inc, kotlin/inc]>#()"];
subgraph cluster_18 {
color=blue
87 [label="Enter when"];
subgraph cluster_19 {
color=blue
88 [label="Enter when branch condition "];
89 [label="Access variable R|<local>/y|"];
90 [label="Type operator: y is A"];
91 [label="Exit when branch condition"];
}
92 [label="Synthetic else branch"];
93 [label="Enter when branch result"];
subgraph cluster_20 {
color=blue
94 [label="Enter block"];
95 [label="Access variable R|<local>/x|"];
96 [label="Function call: R|<local>/x|.R|/A.foo|()"];
97 [label="Access variable R|<local>/y|"];
98 [label="Function call: R|<local>/y|.R|/A.foo|()"];
99 [label="Exit block"];
}
100 [label="Exit when branch result"];
101 [label="Exit when"];
}
102 [label="Exit function test_4" style="filled" fillcolor=red];
}
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {93 92};
92 -> {101};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
} }
+355 -355
View File
@@ -1,371 +1,371 @@
digraph casts_kt { digraph casts_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
1 [label="Access variable R|<local>/x|"]; 1 [label="Access variable R|<local>/x|"];
2 [label="Type operator: x as String"]; 2 [label="Type operator: x as String"];
3 [label="Access variable R|<local>/x|"]; 3 [label="Access variable R|<local>/x|"];
4 [label="Access variable R|kotlin/String.length|"]; 4 [label="Access variable R|kotlin/String.length|"];
5 [label="Exit function test_1" style="filled" fillcolor=red]; 5 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
subgraph cluster_1 {
color=red
6 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
7 [label="Enter when"];
subgraph cluster_3 {
color=blue
8 [label="Enter when branch condition "];
9 [label="Access variable R|<local>/x|"];
10 [label="Type operator: x as Boolean"];
11 [label="Exit when branch condition"];
}
12 [label="Synthetic else branch"];
13 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
14 [label="Enter block"];
15 [label="Access variable R|<local>/x|"];
16 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"];
17 [label="Exit block"];
}
18 [label="Exit when branch result"];
19 [label="Exit when"];
} }
20 [label="Access variable R|<local>/x|"];
21 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"];
22 [label="Exit function test_2" style="filled" fillcolor=red];
}
6 -> {7}; 0 -> {1};
7 -> {8}; 1 -> {2};
8 -> {9}; 2 -> {3};
9 -> {10}; 3 -> {4};
10 -> {11}; 4 -> {5};
11 -> {13 12};
12 -> {19};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
subgraph cluster_5 { subgraph cluster_1 {
color=red color=red
23 [label="Enter function test_3" style="filled" fillcolor=red]; 6 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_6 { subgraph cluster_2 {
color=blue color=blue
24 [label="Enter when"]; 7 [label="Enter when"];
subgraph cluster_7 { subgraph cluster_3 {
color=blue color=blue
25 [label="Enter when branch condition "]; 8 [label="Enter when branch condition "];
subgraph cluster_8 { 9 [label="Access variable R|<local>/x|"];
color=blue 10 [label="Type operator: x as Boolean"];
26 [label="Enter &&"]; 11 [label="Exit when branch condition"];
27 [label="Access variable R|<local>/b|"]; }
28 [label="Exit left part of &&"]; 12 [label="Synthetic else branch"];
29 [label="Enter right part of &&"]; 13 [label="Enter when branch result"];
30 [label="Access variable R|<local>/x|"]; subgraph cluster_4 {
31 [label="Type operator: x as Boolean"]; color=blue
32 [label="Exit &&"]; 14 [label="Enter block"];
15 [label="Access variable R|<local>/x|"];
16 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"];
17 [label="Exit block"];
}
18 [label="Exit when branch result"];
19 [label="Exit when"];
} }
33 [label="Exit when branch condition"]; 20 [label="Access variable R|<local>/x|"];
} 21 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"];
34 [label="Synthetic else branch"]; 22 [label="Exit function test_2" style="filled" fillcolor=red];
35 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
36 [label="Enter block"];
37 [label="Access variable R|<local>/x|"];
38 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"];
39 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Exit when"];
} }
42 [label="Access variable R|<local>/x|"];
43 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"]; 6 -> {7};
subgraph cluster_10 { 7 -> {8};
color=blue 8 -> {9};
44 [label="Enter when"]; 9 -> {10};
subgraph cluster_11 { 10 -> {11};
color=blue 11 -> {13 12};
45 [label="Enter when branch condition "]; 12 -> {19};
subgraph cluster_12 { 13 -> {14};
color=blue 14 -> {15};
46 [label="Enter &&"]; 15 -> {16};
47 [label="Access variable R|<local>/b|"]; 16 -> {17};
48 [label="Exit left part of &&"]; 17 -> {18};
49 [label="Enter right part of &&"]; 18 -> {19};
50 [label="Access variable R|<local>/x|"]; 19 -> {20};
51 [label="Type operator: x as Boolean"]; 20 -> {21};
52 [label="Const: Boolean(true)"]; 21 -> {22};
53 [label="Operator =="];
54 [label="Exit &&"]; subgraph cluster_5 {
color=red
23 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_6 {
color=blue
24 [label="Enter when"];
subgraph cluster_7 {
color=blue
25 [label="Enter when branch condition "];
subgraph cluster_8 {
color=blue
26 [label="Enter &&"];
27 [label="Access variable R|<local>/b|"];
28 [label="Exit left part of &&"];
29 [label="Enter right part of &&"];
30 [label="Access variable R|<local>/x|"];
31 [label="Type operator: x as Boolean"];
32 [label="Exit &&"];
}
33 [label="Exit when branch condition"];
}
34 [label="Synthetic else branch"];
35 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
36 [label="Enter block"];
37 [label="Access variable R|<local>/x|"];
38 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"];
39 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Exit when"];
} }
55 [label="Exit when branch condition"]; 42 [label="Access variable R|<local>/x|"];
} 43 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"];
56 [label="Synthetic else branch"]; subgraph cluster_10 {
57 [label="Enter when branch result"]; color=blue
subgraph cluster_13 { 44 [label="Enter when"];
color=blue subgraph cluster_11 {
58 [label="Enter block"]; color=blue
59 [label="Access variable R|<local>/x|"]; 45 [label="Enter when branch condition "];
60 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"]; subgraph cluster_12 {
61 [label="Exit block"]; color=blue
} 46 [label="Enter &&"];
62 [label="Exit when branch result"]; 47 [label="Access variable R|<local>/b|"];
63 [label="Exit when"]; 48 [label="Exit left part of &&"];
} 49 [label="Enter right part of &&"];
64 [label="Access variable R|<local>/x|"]; 50 [label="Access variable R|<local>/x|"];
65 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"]; 51 [label="Type operator: x as Boolean"];
subgraph cluster_14 { 52 [label="Const: Boolean(true)"];
color=blue 53 [label="Operator =="];
66 [label="Enter when"]; 54 [label="Exit &&"];
subgraph cluster_15 { }
color=blue 55 [label="Exit when branch condition"];
67 [label="Enter when branch condition "]; }
subgraph cluster_16 { 56 [label="Synthetic else branch"];
color=blue 57 [label="Enter when branch result"];
68 [label="Enter ||"]; subgraph cluster_13 {
69 [label="Access variable R|<local>/b|"]; color=blue
70 [label="Exit left part of ||"]; 58 [label="Enter block"];
71 [label="Enter right part of ||"]; 59 [label="Access variable R|<local>/x|"];
72 [label="Access variable R|<local>/x|"]; 60 [label="Function call: R|<local>/x|.R|kotlin/Boolean.not|()"];
73 [label="Type operator: x as Boolean"]; 61 [label="Exit block"];
74 [label="Exit ||"]; }
62 [label="Exit when branch result"];
63 [label="Exit when"];
} }
75 [label="Exit when branch condition"]; 64 [label="Access variable R|<local>/x|"];
} 65 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"];
76 [label="Synthetic else branch"]; subgraph cluster_14 {
77 [label="Enter when branch result"]; color=blue
subgraph cluster_17 { 66 [label="Enter when"];
color=blue subgraph cluster_15 {
78 [label="Enter block"]; color=blue
79 [label="Access variable R|<local>/x|"]; 67 [label="Enter when branch condition "];
80 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"]; subgraph cluster_16 {
81 [label="Exit block"]; color=blue
} 68 [label="Enter ||"];
82 [label="Exit when branch result"]; 69 [label="Access variable R|<local>/b|"];
83 [label="Exit when"]; 70 [label="Exit left part of ||"];
71 [label="Enter right part of ||"];
72 [label="Access variable R|<local>/x|"];
73 [label="Type operator: x as Boolean"];
74 [label="Exit ||"];
}
75 [label="Exit when branch condition"];
}
76 [label="Synthetic else branch"];
77 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
78 [label="Enter block"];
79 [label="Access variable R|<local>/x|"];
80 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"];
81 [label="Exit block"];
}
82 [label="Exit when branch result"];
83 [label="Exit when"];
}
84 [label="Access variable R|<local>/x|"];
85 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"];
86 [label="Exit function test_3" style="filled" fillcolor=red];
} }
84 [label="Access variable R|<local>/x|"];
85 [label="Function call: R|<local>/x|.<Unresolved name: not>#()"];
86 [label="Exit function test_3" style="filled" fillcolor=red];
}
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {32 29}; 28 -> {32 29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {35 34}; 33 -> {35 34};
34 -> {41}; 34 -> {41};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {54 49}; 48 -> {54 49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {57 56}; 55 -> {57 56};
56 -> {63}; 56 -> {63};
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
68 -> {69}; 68 -> {69};
69 -> {70}; 69 -> {70};
70 -> {74 71}; 70 -> {74 71};
71 -> {72}; 71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {77 76}; 75 -> {77 76};
76 -> {83}; 76 -> {83};
77 -> {78}; 77 -> {78};
78 -> {79}; 78 -> {79};
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {81};
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {86}; 85 -> {86};
subgraph cluster_18 { subgraph cluster_18 {
color=red color=red
87 [label="Enter function test_4" style="filled" fillcolor=red]; 87 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
88 [label="Enter when"]; 88 [label="Enter when"];
subgraph cluster_20 { subgraph cluster_20 {
color=blue color=blue
89 [label="Enter when branch condition "]; 89 [label="Enter when branch condition "];
90 [label="Access variable R|<local>/b|"]; 90 [label="Access variable R|<local>/b|"];
91 [label="Type operator: b as? Boolean"]; 91 [label="Type operator: b as? Boolean"];
92 [label="Const: Null(null)"]; 92 [label="Const: Null(null)"];
93 [label="Operator !="]; 93 [label="Operator !="];
94 [label="Exit when branch condition"]; 94 [label="Exit when branch condition"];
} }
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
95 [label="Enter when branch condition else"]; 95 [label="Enter when branch condition else"];
96 [label="Exit when branch condition"]; 96 [label="Exit when branch condition"];
} }
97 [label="Enter when branch result"]; 97 [label="Enter when branch result"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
98 [label="Enter block"]; 98 [label="Enter block"];
99 [label="Access variable R|<local>/b|"]; 99 [label="Access variable R|<local>/b|"];
100 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"]; 100 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
101 [label="Exit block"]; 101 [label="Exit block"];
} }
102 [label="Exit when branch result"]; 102 [label="Exit when branch result"];
103 [label="Enter when branch result"]; 103 [label="Enter when branch result"];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
104 [label="Enter block"]; 104 [label="Enter block"];
105 [label="Access variable R|<local>/b|"]; 105 [label="Access variable R|<local>/b|"];
106 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"]; 106 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
107 [label="Exit block"]; 107 [label="Exit block"];
} }
108 [label="Exit when branch result"]; 108 [label="Exit when branch result"];
109 [label="Exit when"]; 109 [label="Exit when"];
}
110 [label="Access variable R|<local>/b|"];
111 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
subgraph cluster_24 {
color=blue
112 [label="Enter when"];
subgraph cluster_25 {
color=blue
113 [label="Enter when branch condition "];
114 [label="Access variable R|<local>/b|"];
115 [label="Type operator: b as? Boolean"];
116 [label="Const: Null(null)"];
117 [label="Operator =="];
118 [label="Exit when branch condition"];
}
subgraph cluster_26 {
color=blue
119 [label="Enter when branch condition else"];
120 [label="Exit when branch condition"];
}
121 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
122 [label="Enter block"];
123 [label="Access variable R|<local>/b|"];
124 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
125 [label="Exit block"];
}
126 [label="Exit when branch result"];
127 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
128 [label="Enter block"];
129 [label="Access variable R|<local>/b|"];
130 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
131 [label="Exit block"];
}
132 [label="Exit when branch result"];
133 [label="Exit when"];
}
134 [label="Access variable R|<local>/b|"];
135 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
136 [label="Exit function test_4" style="filled" fillcolor=red];
} }
110 [label="Access variable R|<local>/b|"];
111 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
subgraph cluster_24 {
color=blue
112 [label="Enter when"];
subgraph cluster_25 {
color=blue
113 [label="Enter when branch condition "];
114 [label="Access variable R|<local>/b|"];
115 [label="Type operator: b as? Boolean"];
116 [label="Const: Null(null)"];
117 [label="Operator =="];
118 [label="Exit when branch condition"];
}
subgraph cluster_26 {
color=blue
119 [label="Enter when branch condition else"];
120 [label="Exit when branch condition"];
}
121 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
122 [label="Enter block"];
123 [label="Access variable R|<local>/b|"];
124 [label="Function call: R|<local>/b|.R|kotlin/Boolean.not|()"];
125 [label="Exit block"];
}
126 [label="Exit when branch result"];
127 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
128 [label="Enter block"];
129 [label="Access variable R|<local>/b|"];
130 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
131 [label="Exit block"];
}
132 [label="Exit when branch result"];
133 [label="Exit when"];
}
134 [label="Access variable R|<local>/b|"];
135 [label="Function call: R|<local>/b|.<Unresolved name: not>#()"];
136 [label="Exit function test_4" style="filled" fillcolor=red];
}
87 -> {88}; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {93}; 92 -> {93};
93 -> {94}; 93 -> {94};
94 -> {103 95}; 94 -> {103 95};
95 -> {96}; 95 -> {96};
96 -> {97}; 96 -> {97};
97 -> {98}; 97 -> {98};
98 -> {99}; 98 -> {99};
99 -> {100}; 99 -> {100};
100 -> {101}; 100 -> {101};
101 -> {102}; 101 -> {102};
102 -> {109}; 102 -> {109};
103 -> {104}; 103 -> {104};
104 -> {105}; 104 -> {105};
105 -> {106}; 105 -> {106};
106 -> {107}; 106 -> {107};
107 -> {108}; 107 -> {108};
108 -> {109}; 108 -> {109};
109 -> {110}; 109 -> {110};
110 -> {111}; 110 -> {111};
111 -> {112}; 111 -> {112};
112 -> {113}; 112 -> {113};
113 -> {114}; 113 -> {114};
114 -> {115}; 114 -> {115};
115 -> {116}; 115 -> {116};
116 -> {117}; 116 -> {117};
117 -> {118}; 117 -> {118};
118 -> {127 119}; 118 -> {127 119};
119 -> {120}; 119 -> {120};
120 -> {121}; 120 -> {121};
121 -> {122}; 121 -> {122};
122 -> {123}; 122 -> {123};
123 -> {124}; 123 -> {124};
124 -> {125}; 124 -> {125};
125 -> {126}; 125 -> {126};
126 -> {133}; 126 -> {133};
127 -> {128}; 127 -> {128};
128 -> {129}; 128 -> {129};
129 -> {130}; 129 -> {130};
130 -> {131}; 130 -> {131};
131 -> {132}; 131 -> {132};
132 -> {133}; 132 -> {133};
133 -> {134}; 133 -> {134};
134 -> {135}; 134 -> {135};
135 -> {136}; 135 -> {136};
} }
@@ -1,77 +1,77 @@
digraph dataFlowInfoFromWhileCondition_kt { digraph dataFlowInfoFromWhileCondition_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function test" style="filled" fillcolor=red];
3 [label="Const: Null(null)"];
4 [label="Variable declaration: lvar a: R|A?|"];
subgraph cluster_2 {
color=blue
5 [label="Enter while loop"];
subgraph cluster_3 {
color=blue
6 [label="Enter loop condition"];
subgraph cluster_4 {
color=blue
7 [label="Enter ||"];
8 [label="Access variable R|<local>/a|"];
9 [label="Type operator: a is B"];
10 [label="Exit left part of ||"];
11 [label="Enter right part of ||"];
12 [label="Access variable R|<local>/a|"];
13 [label="Type operator: a is C"];
14 [label="Exit ||"];
}
15 [label="Exit loop condition"];
}
subgraph cluster_5 {
color=blue
16 [label="Enter loop block"];
subgraph cluster_6 {
color=blue
17 [label="Enter block"];
18 [label="Access variable R|<local>/a|"];
19 [label="Function call: R|<local>/a|.R|/A.foo|()"];
20 [label="Exit block"];
}
21 [label="Exit loop block"];
}
22 [label="Exit whileloop"];
} }
23 [label="Exit function test" style="filled" fillcolor=red];
}
2 -> {3}; 0 -> {1};
3 -> {4};
4 -> {5}; subgraph cluster_1 {
5 -> {6}; color=red
6 -> {7}; 2 [label="Enter function test" style="filled" fillcolor=red];
7 -> {8}; 3 [label="Const: Null(null)"];
8 -> {9}; 4 [label="Variable declaration: lvar a: R|A?|"];
9 -> {10}; subgraph cluster_2 {
10 -> {14 11}; color=blue
11 -> {12}; 5 [label="Enter while loop"];
12 -> {13}; subgraph cluster_3 {
13 -> {14}; color=blue
14 -> {15}; 6 [label="Enter loop condition"];
15 -> {22 16}; subgraph cluster_4 {
16 -> {17}; color=blue
17 -> {18}; 7 [label="Enter ||"];
18 -> {19}; 8 [label="Access variable R|<local>/a|"];
19 -> {20}; 9 [label="Type operator: a is B"];
20 -> {21}; 10 [label="Exit left part of ||"];
21 -> {6}; 11 [label="Enter right part of ||"];
22 -> {23}; 12 [label="Access variable R|<local>/a|"];
13 [label="Type operator: a is C"];
14 [label="Exit ||"];
}
15 [label="Exit loop condition"];
}
subgraph cluster_5 {
color=blue
16 [label="Enter loop block"];
subgraph cluster_6 {
color=blue
17 [label="Enter block"];
18 [label="Access variable R|<local>/a|"];
19 [label="Function call: R|<local>/a|.R|/A.foo|()"];
20 [label="Exit block"];
}
21 [label="Exit loop block"];
}
22 [label="Exit whileloop"];
}
23 [label="Exit function test" style="filled" fillcolor=red];
}
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
10 -> {14 11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {22 16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {6};
22 -> {23};
} }
@@ -1,93 +1,93 @@
digraph delayedAssignment_kt { digraph delayedAssignment_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function <init>" style="filled" fillcolor=red]; 0 [label="Enter function <init>" style="filled" fillcolor=red];
1 [label="Exit function <init>" style="filled" fillcolor=red]; 1 [label="Exit function <init>" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red];
}
2 -> {3};
subgraph cluster_2 {
color=red
4 [label="Enter function test" style="filled" fillcolor=red];
5 [label="Variable declaration: lval a: R|A?|"];
subgraph cluster_3 {
color=blue
6 [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"];
}
subgraph cluster_5 {
color=blue
10 [label="Enter when branch condition else"];
11 [label="Exit when branch condition"];
}
12 [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"];
}
17 [label="Exit when branch result"];
18 [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"];
}
25 [label="Exit when branch result"];
26 [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];
}
4 -> {5}; 0 -> {1};
5 -> {6};
6 -> {7}; subgraph cluster_1 {
7 -> {8}; color=red
8 -> {9}; 2 [label="Enter function foo" style="filled" fillcolor=red];
9 -> {18 10}; 3 [label="Exit function foo" style="filled" fillcolor=red];
10 -> {11}; }
11 -> {12};
12 -> {13}; 2 -> {3};
13 -> {14};
14 -> {15}; subgraph cluster_2 {
15 -> {16}; color=red
16 -> {17}; 4 [label="Enter function test" style="filled" fillcolor=red];
17 -> {26}; 5 [label="Variable declaration: lval a: R|A?|"];
18 -> {19}; subgraph cluster_3 {
19 -> {20}; color=blue
20 -> {21}; 6 [label="Enter when"];
21 -> {22}; subgraph cluster_4 {
22 -> {23}; color=blue
23 -> {24}; 7 [label="Enter when branch condition "];
24 -> {25}; 8 [label="Access variable R|<local>/b|"];
25 -> {26}; 9 [label="Exit when branch condition"];
26 -> {27}; }
27 -> {28}; subgraph cluster_5 {
28 -> {29}; color=blue
10 [label="Enter when branch condition else"];
11 [label="Exit when branch condition"];
}
12 [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"];
}
17 [label="Exit when branch result"];
18 [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"];
}
25 [label="Exit when branch result"];
26 [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];
}
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {18 10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {26};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
} }
+261 -261
View File
@@ -1,220 +1,220 @@
digraph elvis_kt { digraph elvis_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function getter" style="filled" fillcolor=red]; 2 [label="Enter function getter" style="filled" fillcolor=red];
3 [label="Exit function getter" style="filled" fillcolor=red]; 3 [label="Exit function getter" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter property" style="filled" fillcolor=red]; 4 [label="Enter property" style="filled" fillcolor=red];
5 [label="Exit property" style="filled" fillcolor=red]; 5 [label="Exit property" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
6 [label="Enter function test_1" style="filled" fillcolor=red]; 6 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_4 { subgraph cluster_4 {
color=blue
7 [label="Enter when"];
subgraph cluster_5 {
color=blue
8 [label="Enter when branch condition "];
subgraph cluster_6 {
color=blue
9 [label="Enter when"];
10 [label="Access variable R|<local>/x|"];
11 [label="Enter safe call"];
12 [label="Access variable R|/A.b|"];
13 [label="Exit safe call"];
14 [label="Variable declaration: lval <elvis>: R|kotlin/Boolean?|"];
subgraph cluster_7 {
color=blue color=blue
15 [label="Enter when branch condition "]; 7 [label="Enter when"];
16 [label="Const: Null(null)"]; subgraph cluster_5 {
17 [label="Operator =="]; color=blue
18 [label="Exit when branch condition"]; 8 [label="Enter when branch condition "];
} subgraph cluster_6 {
subgraph cluster_8 { color=blue
color=blue 9 [label="Enter when"];
19 [label="Enter when branch condition else"]; 10 [label="Access variable R|<local>/x|"];
20 [label="Exit when branch condition"]; 11 [label="Enter safe call"];
} 12 [label="Access variable R|/A.b|"];
21 [label="Enter when branch result"]; 13 [label="Exit safe call"];
subgraph cluster_9 { 14 [label="Variable declaration: lval <elvis>: R|kotlin/Boolean?|"];
color=blue subgraph cluster_7 {
22 [label="Enter block"]; color=blue
23 [label="Access variable R|<local>/<elvis>|"]; 15 [label="Enter when branch condition "];
24 [label="Exit block"]; 16 [label="Const: Null(null)"];
} 17 [label="Operator =="];
25 [label="Exit when branch result"]; 18 [label="Exit when branch condition"];
26 [label="Enter when branch result"]; }
subgraph cluster_10 { subgraph cluster_8 {
color=blue color=blue
27 [label="Enter block"]; 19 [label="Enter when branch condition else"];
28 [label="Jump: ^test_1 Unit"]; 20 [label="Exit when branch condition"];
29 [label="Stub" style="filled" fillcolor=gray]; }
30 [label="Exit block" style="filled" fillcolor=gray]; 21 [label="Enter when branch result"];
} subgraph cluster_9 {
31 [label="Exit when branch result" style="filled" fillcolor=gray]; color=blue
32 [label="Exit when"]; 22 [label="Enter block"];
23 [label="Access variable R|<local>/<elvis>|"];
24 [label="Exit block"];
}
25 [label="Exit when branch result"];
26 [label="Enter when branch result"];
subgraph cluster_10 {
color=blue
27 [label="Enter block"];
28 [label="Jump: ^test_1 Unit"];
29 [label="Stub" style="filled" fillcolor=gray];
30 [label="Exit block" style="filled" fillcolor=gray];
}
31 [label="Exit when branch result" style="filled" fillcolor=gray];
32 [label="Exit when"];
}
33 [label="Exit when branch condition"];
}
34 [label="Synthetic else branch"];
35 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
36 [label="Enter block"];
37 [label="Access variable R|<local>/x|"];
38 [label="Function call: R|<local>/x|.R|/A.foo|()"];
39 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Exit when"];
} }
33 [label="Exit when branch condition"]; 42 [label="Exit function test_1" style="filled" fillcolor=red];
}
34 [label="Synthetic else branch"];
35 [label="Enter when branch result"];
subgraph cluster_11 {
color=blue
36 [label="Enter block"];
37 [label="Access variable R|<local>/x|"];
38 [label="Function call: R|<local>/x|.R|/A.foo|()"];
39 [label="Exit block"];
}
40 [label="Exit when branch result"];
41 [label="Exit when"];
} }
42 [label="Exit function test_1" style="filled" fillcolor=red];
}
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11 13}; 10 -> {11 13};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {26 19}; 18 -> {26 19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {32}; 25 -> {32};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {42}; 28 -> {42};
28 -> {29} [style=dotted]; 28 -> {29} [style=dotted];
29 -> {30} [style=dotted]; 29 -> {30} [style=dotted];
30 -> {31} [style=dotted]; 30 -> {31} [style=dotted];
31 -> {32} [style=dotted]; 31 -> {32} [style=dotted];
32 -> {33}; 32 -> {33};
33 -> {35 34}; 33 -> {35 34};
34 -> {41}; 34 -> {41};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
43 [label="Enter function test2" style="filled" fillcolor=red]; 43 [label="Enter function test2" style="filled" fillcolor=red];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
44 [label="Enter when"]; 44 [label="Enter when"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
45 [label="Enter when branch condition "]; 45 [label="Enter when branch condition "];
46 [label="Access variable R|<local>/b|"]; 46 [label="Access variable R|<local>/b|"];
47 [label="Type operator: b !is String"]; 47 [label="Type operator: b !is String"];
48 [label="Exit when branch condition"]; 48 [label="Exit when branch condition"];
} }
49 [label="Synthetic else branch"]; 49 [label="Synthetic else branch"];
50 [label="Enter when branch result"]; 50 [label="Enter when branch result"];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
51 [label="Enter block"]; 51 [label="Enter block"];
52 [label="Const: String()"]; 52 [label="Const: String()"];
53 [label="Jump: ^test2 String()"]; 53 [label="Jump: ^test2 String()"];
54 [label="Stub" style="filled" fillcolor=gray]; 54 [label="Stub" style="filled" fillcolor=gray];
55 [label="Exit block" style="filled" fillcolor=gray]; 55 [label="Exit block" style="filled" fillcolor=gray];
} }
56 [label="Exit when branch result" style="filled" fillcolor=gray]; 56 [label="Exit when branch result" style="filled" fillcolor=gray];
57 [label="Exit when"]; 57 [label="Exit when"];
} }
subgraph cluster_16 { subgraph cluster_16 {
color=blue color=blue
58 [label="Enter when"]; 58 [label="Enter when"];
subgraph cluster_17 { subgraph cluster_17 {
color=blue color=blue
59 [label="Enter when branch condition "]; 59 [label="Enter when branch condition "];
60 [label="Access variable R|<local>/a|"]; 60 [label="Access variable R|<local>/a|"];
61 [label="Type operator: a !is String?"]; 61 [label="Type operator: a !is String?"];
62 [label="Exit when branch condition"]; 62 [label="Exit when branch condition"];
} }
63 [label="Synthetic else branch"]; 63 [label="Synthetic else branch"];
64 [label="Enter when branch result"]; 64 [label="Enter when branch result"];
subgraph cluster_18 { subgraph cluster_18 {
color=blue color=blue
65 [label="Enter block"]; 65 [label="Enter block"];
66 [label="Const: String()"]; 66 [label="Const: String()"];
67 [label="Jump: ^test2 String()"]; 67 [label="Jump: ^test2 String()"];
68 [label="Stub" style="filled" fillcolor=gray]; 68 [label="Stub" style="filled" fillcolor=gray];
69 [label="Exit block" style="filled" fillcolor=gray]; 69 [label="Exit block" style="filled" fillcolor=gray];
} }
70 [label="Exit when branch result" style="filled" fillcolor=gray]; 70 [label="Exit when branch result" style="filled" fillcolor=gray];
71 [label="Exit when"]; 71 [label="Exit when"];
} }
subgraph cluster_19 { subgraph cluster_19 {
color=blue color=blue
72 [label="Enter when"]; 72 [label="Enter when"];
73 [label="Access variable R|<local>/a|"]; 73 [label="Access variable R|<local>/a|"];
74 [label="Variable declaration: lval <elvis>: R|kotlin/String?|"]; 74 [label="Variable declaration: lval <elvis>: R|kotlin/String?|"];
subgraph cluster_20 { subgraph cluster_20 {
color=blue color=blue
75 [label="Enter when branch condition "]; 75 [label="Enter when branch condition "];
76 [label="Const: Null(null)"]; 76 [label="Const: Null(null)"];
77 [label="Operator =="]; 77 [label="Operator =="];
78 [label="Exit when branch condition"]; 78 [label="Exit when branch condition"];
} }
subgraph cluster_21 { subgraph cluster_21 {
color=blue color=blue
79 [label="Enter when branch condition else"]; 79 [label="Enter when branch condition else"];
80 [label="Exit when branch condition"]; 80 [label="Exit when branch condition"];
} }
81 [label="Enter when branch result"]; 81 [label="Enter when branch result"];
subgraph cluster_22 { subgraph cluster_22 {
color=blue color=blue
82 [label="Enter block"]; 82 [label="Enter block"];
83 [label="Access variable R|<local>/<elvis>|"]; 83 [label="Access variable R|<local>/<elvis>|"];
84 [label="Exit block"]; 84 [label="Exit block"];
} }
85 [label="Exit when branch result"]; 85 [label="Exit when branch result"];
86 [label="Enter when branch result"]; 86 [label="Enter when branch result"];
subgraph cluster_23 { subgraph cluster_23 {
color=blue color=blue
87 [label="Enter block"]; 87 [label="Enter block"];
88 [label="Access variable R|<local>/b|"]; 88 [label="Access variable R|<local>/b|"];
89 [label="Exit block"]; 89 [label="Exit block"];
} }
90 [label="Exit when branch result"]; 90 [label="Exit when branch result"];
91 [label="Exit when"]; 91 [label="Exit when"];
} }
92 [label="Jump: ^test2 when (lval <elvis>: R|kotlin/String?| = R|<local>/a|) { 92 [label="Jump: ^test2 when (lval <elvis>: R|kotlin/String?| = R|<local>/a|) {
==($subj$, Null(null)) -> { ==($subj$, Null(null)) -> {
R|<local>/b| R|<local>/b|
} }
@@ -223,63 +223,63 @@ digraph elvis_kt {
} }
} }
"]; "];
93 [label="Stub" style="filled" fillcolor=gray]; 93 [label="Stub" style="filled" fillcolor=gray];
94 [label="Exit function test2" style="filled" fillcolor=red]; 94 [label="Exit function test2" style="filled" fillcolor=red];
} }
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {50 49}; 48 -> {50 49};
49 -> {57}; 49 -> {57};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {94}; 53 -> {94};
53 -> {54} [style=dotted]; 53 -> {54} [style=dotted];
54 -> {55} [style=dotted]; 54 -> {55} [style=dotted];
55 -> {56} [style=dotted]; 55 -> {56} [style=dotted];
56 -> {57} [style=dotted]; 56 -> {57} [style=dotted];
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {64 63}; 62 -> {64 63};
63 -> {71}; 63 -> {71};
64 -> {65}; 64 -> {65};
65 -> {66}; 65 -> {66};
66 -> {67}; 66 -> {67};
67 -> {94}; 67 -> {94};
67 -> {68} [style=dotted]; 67 -> {68} [style=dotted];
68 -> {69} [style=dotted]; 68 -> {69} [style=dotted];
69 -> {70} [style=dotted]; 69 -> {70} [style=dotted];
70 -> {71} [style=dotted]; 70 -> {71} [style=dotted];
71 -> {72}; 71 -> {72};
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
74 -> {75}; 74 -> {75};
75 -> {76}; 75 -> {76};
76 -> {77}; 76 -> {77};
77 -> {78}; 77 -> {78};
78 -> {86 79}; 78 -> {86 79};
79 -> {80}; 79 -> {80};
80 -> {81}; 80 -> {81};
81 -> {82}; 81 -> {82};
82 -> {83}; 82 -> {83};
83 -> {84}; 83 -> {84};
84 -> {85}; 84 -> {85};
85 -> {91}; 85 -> {91};
86 -> {87}; 86 -> {87};
87 -> {88}; 87 -> {88};
88 -> {89}; 88 -> {89};
89 -> {90}; 89 -> {90};
90 -> {91}; 90 -> {91};
91 -> {92}; 91 -> {92};
92 -> {94}; 92 -> {94};
92 -> {93} [style=dotted]; 92 -> {93} [style=dotted];
93 -> {94} [style=dotted]; 93 -> {94} [style=dotted];
} }
File diff suppressed because it is too large Load Diff
@@ -1,322 +1,322 @@
digraph equalsAndIdentity_kt { digraph equalsAndIdentity_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
}
0 -> {1};
subgraph cluster_1 {
color=red
2 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_2 {
color=blue
3 [label="Enter when"];
subgraph cluster_3 {
color=blue
4 [label="Enter when branch condition "];
5 [label="Access variable R|<local>/x|"];
6 [label="Access variable R|<local>/y|"];
7 [label="Operator =="];
8 [label="Exit when branch condition"];
}
9 [label="Synthetic else branch"];
10 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
11 [label="Enter block"];
12 [label="Access variable R|<local>/x|"];
13 [label="Function call: R|<local>/x|.R|/A.foo|()"];
14 [label="Access variable R|<local>/y|"];
15 [label="Function call: R|<local>/y|.R|/A.foo|()"];
16 [label="Exit block"];
}
17 [label="Exit when branch result"];
18 [label="Exit when"];
} }
subgraph cluster_5 {
color=blue
19 [label="Enter when"];
subgraph cluster_6 {
color=blue
20 [label="Enter when branch condition "];
21 [label="Access variable R|<local>/x|"];
22 [label="Access variable R|<local>/y|"];
23 [label="Operator ==="];
24 [label="Exit when branch condition"];
}
25 [label="Synthetic else branch"];
26 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
27 [label="Enter block"];
28 [label="Access variable R|<local>/x|"];
29 [label="Function call: R|<local>/x|.R|/A.foo|()"];
30 [label="Access variable R|<local>/y|"];
31 [label="Function call: R|<local>/y|.R|/A.foo|()"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
}
35 [label="Exit function test_1" style="filled" fillcolor=red];
}
2 -> {3}; 0 -> {1};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {10 9};
9 -> {18};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {26 25};
25 -> {34};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
subgraph cluster_8 { subgraph cluster_1 {
color=red color=red
36 [label="Enter function test_2" style="filled" fillcolor=red]; 2 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_2 {
color=blue color=blue
37 [label="Enter when"]; 3 [label="Enter when"];
subgraph cluster_10 { subgraph cluster_3 {
color=blue color=blue
38 [label="Enter when branch condition "]; 4 [label="Enter when branch condition "];
39 [label="Access variable R|<local>/x|"]; 5 [label="Access variable R|<local>/x|"];
40 [label="Access variable R|<local>/y|"]; 6 [label="Access variable R|<local>/y|"];
41 [label="Operator =="]; 7 [label="Operator =="];
42 [label="Exit when branch condition"]; 8 [label="Exit when branch condition"];
} }
43 [label="Synthetic else branch"]; 9 [label="Synthetic else branch"];
44 [label="Enter when branch result"]; 10 [label="Enter when branch result"];
subgraph cluster_11 { subgraph cluster_4 {
color=blue color=blue
45 [label="Enter block"]; 11 [label="Enter block"];
46 [label="Access variable R|<local>/x|"]; 12 [label="Access variable R|<local>/x|"];
47 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 13 [label="Function call: R|<local>/x|.R|/A.foo|()"];
48 [label="Access variable R|<local>/y|"]; 14 [label="Access variable R|<local>/y|"];
49 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"]; 15 [label="Function call: R|<local>/y|.R|/A.foo|()"];
50 [label="Exit block"]; 16 [label="Exit block"];
} }
51 [label="Exit when branch result"]; 17 [label="Exit when branch result"];
52 [label="Exit when"]; 18 [label="Exit when"];
}
subgraph cluster_5 {
color=blue
19 [label="Enter when"];
subgraph cluster_6 {
color=blue
20 [label="Enter when branch condition "];
21 [label="Access variable R|<local>/x|"];
22 [label="Access variable R|<local>/y|"];
23 [label="Operator ==="];
24 [label="Exit when branch condition"];
}
25 [label="Synthetic else branch"];
26 [label="Enter when branch result"];
subgraph cluster_7 {
color=blue
27 [label="Enter block"];
28 [label="Access variable R|<local>/x|"];
29 [label="Function call: R|<local>/x|.R|/A.foo|()"];
30 [label="Access variable R|<local>/y|"];
31 [label="Function call: R|<local>/y|.R|/A.foo|()"];
32 [label="Exit block"];
}
33 [label="Exit when branch result"];
34 [label="Exit when"];
}
35 [label="Exit function test_1" style="filled" fillcolor=red];
} }
subgraph cluster_12 {
color=blue
53 [label="Enter when"];
subgraph cluster_13 {
color=blue
54 [label="Enter when branch condition "];
55 [label="Access variable R|<local>/x|"];
56 [label="Access variable R|<local>/y|"];
57 [label="Operator ==="];
58 [label="Exit when branch condition"];
}
59 [label="Synthetic else branch"];
60 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
61 [label="Enter block"];
62 [label="Access variable R|<local>/x|"];
63 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
64 [label="Access variable R|<local>/y|"];
65 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
66 [label="Exit block"];
}
67 [label="Exit when branch result"];
68 [label="Exit when"];
}
69 [label="Exit function test_2" style="filled" fillcolor=red];
}
36 -> {37}; 2 -> {3};
37 -> {38}; 3 -> {4};
38 -> {39}; 4 -> {5};
39 -> {40}; 5 -> {6};
40 -> {41}; 6 -> {7};
41 -> {42}; 7 -> {8};
42 -> {44 43}; 8 -> {10 9};
43 -> {52}; 9 -> {18};
44 -> {45}; 10 -> {11};
45 -> {46}; 11 -> {12};
46 -> {47}; 12 -> {13};
47 -> {48}; 13 -> {14};
48 -> {49}; 14 -> {15};
49 -> {50}; 15 -> {16};
50 -> {51}; 16 -> {17};
51 -> {52}; 17 -> {18};
52 -> {53}; 18 -> {19};
53 -> {54}; 19 -> {20};
54 -> {55}; 20 -> {21};
55 -> {56}; 21 -> {22};
56 -> {57}; 22 -> {23};
57 -> {58}; 23 -> {24};
58 -> {60 59}; 24 -> {26 25};
59 -> {68}; 25 -> {34};
60 -> {61}; 26 -> {27};
61 -> {62}; 27 -> {28};
62 -> {63}; 28 -> {29};
63 -> {64}; 29 -> {30};
64 -> {65}; 30 -> {31};
65 -> {66}; 31 -> {32};
66 -> {67}; 32 -> {33};
67 -> {68}; 33 -> {34};
68 -> {69}; 34 -> {35};
subgraph cluster_15 { subgraph cluster_8 {
color=red color=red
70 [label="Enter function test_3" style="filled" fillcolor=red]; 36 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_16 { subgraph cluster_9 {
color=blue color=blue
71 [label="Enter when"]; 37 [label="Enter when"];
subgraph cluster_17 { subgraph cluster_10 {
color=blue color=blue
72 [label="Enter when branch condition "]; 38 [label="Enter when branch condition "];
73 [label="Access variable R|<local>/y|"]; 39 [label="Access variable R|<local>/x|"];
74 [label="Const: Null(null)"]; 40 [label="Access variable R|<local>/y|"];
75 [label="Operator =="]; 41 [label="Operator =="];
76 [label="Exit when branch condition"]; 42 [label="Exit when branch condition"];
} }
77 [label="Synthetic else branch"]; 43 [label="Synthetic else branch"];
78 [label="Enter when branch result"]; 44 [label="Enter when branch result"];
subgraph cluster_18 { subgraph cluster_11 {
color=blue color=blue
79 [label="Enter block"]; 45 [label="Enter block"];
80 [label="Jump: ^test_3 Unit"]; 46 [label="Access variable R|<local>/x|"];
81 [label="Stub" style="filled" fillcolor=gray]; 47 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
82 [label="Exit block" style="filled" fillcolor=gray]; 48 [label="Access variable R|<local>/y|"];
} 49 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
83 [label="Exit when branch result" style="filled" fillcolor=gray]; 50 [label="Exit block"];
84 [label="Exit when"]; }
51 [label="Exit when branch result"];
52 [label="Exit when"];
}
subgraph cluster_12 {
color=blue
53 [label="Enter when"];
subgraph cluster_13 {
color=blue
54 [label="Enter when branch condition "];
55 [label="Access variable R|<local>/x|"];
56 [label="Access variable R|<local>/y|"];
57 [label="Operator ==="];
58 [label="Exit when branch condition"];
}
59 [label="Synthetic else branch"];
60 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
61 [label="Enter block"];
62 [label="Access variable R|<local>/x|"];
63 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
64 [label="Access variable R|<local>/y|"];
65 [label="Function call: R|<local>/y|.<Inapplicable(WRONG_RECEIVER): [/A.foo]>#()"];
66 [label="Exit block"];
}
67 [label="Exit when branch result"];
68 [label="Exit when"];
}
69 [label="Exit function test_2" style="filled" fillcolor=red];
} }
subgraph cluster_19 {
color=blue
85 [label="Enter when"];
subgraph cluster_20 {
color=blue
86 [label="Enter when branch condition "];
87 [label="Access variable R|<local>/x|"];
88 [label="Access variable R|<local>/y|"];
89 [label="Operator =="];
90 [label="Exit when branch condition"];
}
91 [label="Synthetic else branch"];
92 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
93 [label="Enter block"];
94 [label="Access variable R|<local>/x|"];
95 [label="Function call: R|<local>/x|.R|/A.foo|()"];
96 [label="Access variable R|<local>/y|"];
97 [label="Function call: R|<local>/y|.R|/A.foo|()"];
98 [label="Exit block"];
}
99 [label="Exit when branch result"];
100 [label="Exit when"];
}
subgraph cluster_22 {
color=blue
101 [label="Enter when"];
subgraph cluster_23 {
color=blue
102 [label="Enter when branch condition "];
103 [label="Access variable R|<local>/x|"];
104 [label="Access variable R|<local>/y|"];
105 [label="Operator ==="];
106 [label="Exit when branch condition"];
}
107 [label="Synthetic else branch"];
108 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
109 [label="Enter block"];
110 [label="Access variable R|<local>/x|"];
111 [label="Function call: R|<local>/x|.R|/A.foo|()"];
112 [label="Access variable R|<local>/y|"];
113 [label="Function call: R|<local>/y|.R|/A.foo|()"];
114 [label="Exit block"];
}
115 [label="Exit when branch result"];
116 [label="Exit when"];
}
117 [label="Exit function test_3" style="filled" fillcolor=red];
}
70 -> {71}; 36 -> {37};
71 -> {72}; 37 -> {38};
72 -> {73}; 38 -> {39};
73 -> {74}; 39 -> {40};
74 -> {75}; 40 -> {41};
75 -> {76}; 41 -> {42};
76 -> {78 77}; 42 -> {44 43};
77 -> {84}; 43 -> {52};
78 -> {79}; 44 -> {45};
79 -> {80}; 45 -> {46};
80 -> {117}; 46 -> {47};
80 -> {81} [style=dotted]; 47 -> {48};
81 -> {82} [style=dotted]; 48 -> {49};
82 -> {83} [style=dotted]; 49 -> {50};
83 -> {84} [style=dotted]; 50 -> {51};
84 -> {85}; 51 -> {52};
85 -> {86}; 52 -> {53};
86 -> {87}; 53 -> {54};
87 -> {88}; 54 -> {55};
88 -> {89}; 55 -> {56};
89 -> {90}; 56 -> {57};
90 -> {92 91}; 57 -> {58};
91 -> {100}; 58 -> {60 59};
92 -> {93}; 59 -> {68};
93 -> {94}; 60 -> {61};
94 -> {95}; 61 -> {62};
95 -> {96}; 62 -> {63};
96 -> {97}; 63 -> {64};
97 -> {98}; 64 -> {65};
98 -> {99}; 65 -> {66};
99 -> {100}; 66 -> {67};
100 -> {101}; 67 -> {68};
101 -> {102}; 68 -> {69};
102 -> {103};
103 -> {104}; subgraph cluster_15 {
104 -> {105}; color=red
105 -> {106}; 70 [label="Enter function test_3" style="filled" fillcolor=red];
106 -> {108 107}; subgraph cluster_16 {
107 -> {116}; color=blue
108 -> {109}; 71 [label="Enter when"];
109 -> {110}; subgraph cluster_17 {
110 -> {111}; color=blue
111 -> {112}; 72 [label="Enter when branch condition "];
112 -> {113}; 73 [label="Access variable R|<local>/y|"];
113 -> {114}; 74 [label="Const: Null(null)"];
114 -> {115}; 75 [label="Operator =="];
115 -> {116}; 76 [label="Exit when branch condition"];
116 -> {117}; }
77 [label="Synthetic else branch"];
78 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
79 [label="Enter block"];
80 [label="Jump: ^test_3 Unit"];
81 [label="Stub" style="filled" fillcolor=gray];
82 [label="Exit block" style="filled" fillcolor=gray];
}
83 [label="Exit when branch result" style="filled" fillcolor=gray];
84 [label="Exit when"];
}
subgraph cluster_19 {
color=blue
85 [label="Enter when"];
subgraph cluster_20 {
color=blue
86 [label="Enter when branch condition "];
87 [label="Access variable R|<local>/x|"];
88 [label="Access variable R|<local>/y|"];
89 [label="Operator =="];
90 [label="Exit when branch condition"];
}
91 [label="Synthetic else branch"];
92 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
93 [label="Enter block"];
94 [label="Access variable R|<local>/x|"];
95 [label="Function call: R|<local>/x|.R|/A.foo|()"];
96 [label="Access variable R|<local>/y|"];
97 [label="Function call: R|<local>/y|.R|/A.foo|()"];
98 [label="Exit block"];
}
99 [label="Exit when branch result"];
100 [label="Exit when"];
}
subgraph cluster_22 {
color=blue
101 [label="Enter when"];
subgraph cluster_23 {
color=blue
102 [label="Enter when branch condition "];
103 [label="Access variable R|<local>/x|"];
104 [label="Access variable R|<local>/y|"];
105 [label="Operator ==="];
106 [label="Exit when branch condition"];
}
107 [label="Synthetic else branch"];
108 [label="Enter when branch result"];
subgraph cluster_24 {
color=blue
109 [label="Enter block"];
110 [label="Access variable R|<local>/x|"];
111 [label="Function call: R|<local>/x|.R|/A.foo|()"];
112 [label="Access variable R|<local>/y|"];
113 [label="Function call: R|<local>/y|.R|/A.foo|()"];
114 [label="Exit block"];
}
115 [label="Exit when branch result"];
116 [label="Exit when"];
}
117 [label="Exit function test_3" style="filled" fillcolor=red];
}
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {76};
76 -> {78 77};
77 -> {84};
78 -> {79};
79 -> {80};
80 -> {117};
80 -> {81} [style=dotted];
81 -> {82} [style=dotted];
82 -> {83} [style=dotted];
83 -> {84} [style=dotted];
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {92 91};
91 -> {100};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {108 107};
107 -> {116};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
} }
File diff suppressed because it is too large Load Diff
@@ -1,60 +1,60 @@
digraph implicitReceiverAsWhenSubject_kt { digraph implicitReceiverAsWhenSubject_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter when"]; 1 [label="Enter when"];
2 [label="Access variable this@R|/test_1|"]; 2 [label="Access variable this@R|/test_1|"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
3 [label="Enter when branch condition "]; 3 [label="Enter when branch condition "];
4 [label="Type operator: List<*>"]; 4 [label="Type operator: List<*>"];
5 [label="Exit when branch condition"]; 5 [label="Exit when branch condition"];
} }
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter when branch condition "]; 6 [label="Enter when branch condition "];
7 [label="Type operator: String"]; 7 [label="Type operator: String"];
8 [label="Exit when branch condition"]; 8 [label="Exit when branch condition"];
} }
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
9 [label="Enter when branch condition else"]; 9 [label="Enter when branch condition else"];
10 [label="Exit when branch condition"]; 10 [label="Exit when branch condition"];
} }
11 [label="Enter when branch result"]; 11 [label="Enter when branch result"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
12 [label="Enter block"]; 12 [label="Enter block"];
13 [label="Const: Int(0)"]; 13 [label="Const: Int(0)"];
14 [label="Exit block"]; 14 [label="Exit block"];
} }
15 [label="Exit when branch result"]; 15 [label="Exit when branch result"];
16 [label="Enter when branch result"]; 16 [label="Enter when branch result"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
17 [label="Enter block"]; 17 [label="Enter block"];
18 [label="Access variable R|kotlin/String.length|"]; 18 [label="Access variable R|kotlin/String.length|"];
19 [label="Exit block"]; 19 [label="Exit block"];
} }
20 [label="Exit when branch result"]; 20 [label="Exit when branch result"];
21 [label="Enter when branch result"]; 21 [label="Enter when branch result"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
22 [label="Enter block"]; 22 [label="Enter block"];
23 [label="Access variable this@R|/test_1|"]; 23 [label="Access variable this@R|/test_1|"];
24 [label="Access variable R|kotlin/collections/List.size|"]; 24 [label="Access variable R|kotlin/collections/List.size|"];
25 [label="Exit block"]; 25 [label="Exit block"];
} }
26 [label="Exit when branch result"]; 26 [label="Exit when branch result"];
27 [label="Exit when"]; 27 [label="Exit when"];
} }
28 [label="Jump: ^test_1 when (this@R|/test_1|) { 28 [label="Jump: ^test_1 when (this@R|/test_1|) {
($subj$ is R|kotlin/collections/List<*>|) -> { ($subj$ is R|kotlin/collections/List<*>|) -> {
this@R|/test_1|.R|kotlin/collections/List.size| this@R|/test_1|.R|kotlin/collections/List.size|
} }
@@ -66,99 +66,99 @@ digraph implicitReceiverAsWhenSubject_kt {
} }
} }
"]; "];
29 [label="Stub" style="filled" fillcolor=gray]; 29 [label="Stub" style="filled" fillcolor=gray];
30 [label="Exit function test_1" style="filled" fillcolor=red]; 30 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {21 6};
6 -> {7};
7 -> {8};
8 -> {16 9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {27};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {27};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {30};
28 -> {29} [style=dotted];
29 -> {30} [style=dotted];
subgraph cluster_8 {
color=red
31 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
32 [label="Enter when"];
33 [label="Access variable this@R|/test_2|"];
34 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_10 {
color=blue
35 [label="Enter when branch condition "];
36 [label="Type operator: List<*>"];
37 [label="Exit when branch condition"];
}
subgraph cluster_11 {
color=blue
38 [label="Enter when branch condition "];
39 [label="Type operator: String"];
40 [label="Exit when branch condition"];
}
subgraph cluster_12 {
color=blue
41 [label="Enter when branch condition else"];
42 [label="Exit when branch condition"];
}
43 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
44 [label="Enter block"];
45 [label="Const: Int(0)"];
46 [label="Exit block"];
}
47 [label="Exit when branch result"];
48 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
49 [label="Enter block"];
50 [label="Access variable R|<local>/x|"];
51 [label="Access variable R|kotlin/String.length|"];
52 [label="Access variable R|kotlin/String.length|"];
53 [label="Exit block"];
}
54 [label="Exit when branch result"];
55 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
56 [label="Enter block"];
57 [label="Access variable R|<local>/x|"];
58 [label="Access variable R|kotlin/collections/List.size|"];
59 [label="Access variable this@R|/test_2|"];
60 [label="Access variable R|kotlin/collections/List.size|"];
61 [label="Exit block"];
}
62 [label="Exit when branch result"];
63 [label="Exit when"];
} }
64 [label="Jump: ^test_2 when (lval x: R|kotlin/Any| = this@R|/test_2|) {
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {21 6};
6 -> {7};
7 -> {8};
8 -> {16 9};
9 -> {10};
10 -> {11};
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {27};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {27};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {30};
28 -> {29} [style=dotted];
29 -> {30} [style=dotted];
subgraph cluster_8 {
color=red
31 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_9 {
color=blue
32 [label="Enter when"];
33 [label="Access variable this@R|/test_2|"];
34 [label="Variable declaration: lval x: R|kotlin/Any|"];
subgraph cluster_10 {
color=blue
35 [label="Enter when branch condition "];
36 [label="Type operator: List<*>"];
37 [label="Exit when branch condition"];
}
subgraph cluster_11 {
color=blue
38 [label="Enter when branch condition "];
39 [label="Type operator: String"];
40 [label="Exit when branch condition"];
}
subgraph cluster_12 {
color=blue
41 [label="Enter when branch condition else"];
42 [label="Exit when branch condition"];
}
43 [label="Enter when branch result"];
subgraph cluster_13 {
color=blue
44 [label="Enter block"];
45 [label="Const: Int(0)"];
46 [label="Exit block"];
}
47 [label="Exit when branch result"];
48 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
49 [label="Enter block"];
50 [label="Access variable R|<local>/x|"];
51 [label="Access variable R|kotlin/String.length|"];
52 [label="Access variable R|kotlin/String.length|"];
53 [label="Exit block"];
}
54 [label="Exit when branch result"];
55 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
56 [label="Enter block"];
57 [label="Access variable R|<local>/x|"];
58 [label="Access variable R|kotlin/collections/List.size|"];
59 [label="Access variable this@R|/test_2|"];
60 [label="Access variable R|kotlin/collections/List.size|"];
61 [label="Exit block"];
}
62 [label="Exit when branch result"];
63 [label="Exit when"];
}
64 [label="Jump: ^test_2 when (lval x: R|kotlin/Any| = this@R|/test_2|) {
($subj$ is R|kotlin/collections/List<*>|) -> { ($subj$ is R|kotlin/collections/List<*>|) -> {
R|<local>/x|.R|kotlin/collections/List.size| R|<local>/x|.R|kotlin/collections/List.size|
this@R|/test_2|.R|kotlin/collections/List.size| this@R|/test_2|.R|kotlin/collections/List.size|
@@ -172,45 +172,45 @@ digraph implicitReceiverAsWhenSubject_kt {
} }
} }
"]; "];
65 [label="Stub" style="filled" fillcolor=gray]; 65 [label="Stub" style="filled" fillcolor=gray];
66 [label="Exit function test_2" style="filled" fillcolor=red]; 66 [label="Exit function test_2" style="filled" fillcolor=red];
} }
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {55 38}; 37 -> {55 38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {48 41}; 40 -> {48 41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {63}; 47 -> {63};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {63}; 54 -> {63};
55 -> {56}; 55 -> {56};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {60}; 59 -> {60};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {66}; 64 -> {66};
64 -> {65} [style=dotted]; 64 -> {65} [style=dotted];
65 -> {66} [style=dotted]; 65 -> {66} [style=dotted];
} }
File diff suppressed because it is too large Load Diff
@@ -1,179 +1,179 @@
digraph inPlaceLambdas_kt { digraph inPlaceLambdas_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function bar" style="filled" fillcolor=red]; 2 [label="Enter function bar" style="filled" fillcolor=red];
3 [label="Exit function bar" style="filled" fillcolor=red]; 3 [label="Exit function bar" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function run" style="filled" fillcolor=red]; 4 [label="Enter function run" style="filled" fillcolor=red];
5 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 5 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
6 [label="Exit function run" style="filled" fillcolor=red]; 6 [label="Exit function run" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
7 [label="Enter function test_1" style="filled" fillcolor=red]; 7 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
8 [label="Enter when"]; 8 [label="Enter when"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
9 [label="Enter when branch condition "]; 9 [label="Enter when branch condition "];
10 [label="Access variable R|<local>/x|"]; 10 [label="Access variable R|<local>/x|"];
11 [label="Type operator: x is A"]; 11 [label="Type operator: x is A"];
12 [label="Exit when branch condition"]; 12 [label="Exit when branch condition"];
} }
13 [label="Synthetic else branch"]; 13 [label="Synthetic else branch"];
14 [label="Enter when branch result"]; 14 [label="Enter when branch result"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
15 [label="Enter block"]; 15 [label="Enter block"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
16 [label="Enter function anonymousFunction"]; 16 [label="Enter function anonymousFunction"];
17 [label="Access variable R|<local>/x|"]; 17 [label="Access variable R|<local>/x|"];
18 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 18 [label="Function call: R|<local>/x|.R|/A.foo|()"];
19 [label="Exit function anonymousFunction"]; 19 [label="Exit function anonymousFunction"];
} }
20 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { 20 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
R|<local>/x|.R|/A.foo|() R|<local>/x|.R|/A.foo|()
} }
)"]; )"];
21 [label="Exit block"]; 21 [label="Exit block"];
} }
22 [label="Exit when branch result"]; 22 [label="Exit when branch result"];
23 [label="Exit when"]; 23 [label="Exit when"];
}
24 [label="Exit function test_1" style="filled" fillcolor=red];
} }
24 [label="Exit function test_1" style="filled" fillcolor=red];
}
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {14 13}; 12 -> {14 13};
13 -> {23}; 13 -> {23};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {19 17}; 16 -> {19 17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {16 20}; 19 -> {16 20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
25 [label="Enter function test_2" style="filled" fillcolor=red]; 25 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
26 [label="Enter function anonymousFunction"]; 26 [label="Enter function anonymousFunction"];
27 [label="Access variable R|<local>/x|"]; 27 [label="Access variable R|<local>/x|"];
28 [label="Type operator: x as B"]; 28 [label="Type operator: x as B"];
29 [label="Exit function anonymousFunction"]; 29 [label="Exit function anonymousFunction"];
} }
30 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { 30 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
(R|<local>/x| as R|B|) (R|<local>/x| as R|B|)
} }
)"]; )"];
31 [label="Access variable R|<local>/x|"]; 31 [label="Access variable R|<local>/x|"];
32 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 32 [label="Function call: R|<local>/x|.R|/B.bar|()"];
33 [label="Exit function test_2" style="filled" fillcolor=red]; 33 [label="Exit function test_2" style="filled" fillcolor=red];
} }
25 -> {26}; 25 -> {26};
26 -> {29 27}; 26 -> {29 27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {26 30}; 29 -> {26 30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
subgraph cluster_10 { subgraph cluster_10 {
color=red color=red
34 [label="Enter function test_3" style="filled" fillcolor=red]; 34 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
35 [label="Enter when"]; 35 [label="Enter when"];
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
36 [label="Enter when branch condition "]; 36 [label="Enter when branch condition "];
37 [label="Access variable R|<local>/x|"]; 37 [label="Access variable R|<local>/x|"];
38 [label="Type operator: x is A"]; 38 [label="Type operator: x is A"];
39 [label="Exit when branch condition"]; 39 [label="Exit when branch condition"];
} }
40 [label="Synthetic else branch"]; 40 [label="Synthetic else branch"];
41 [label="Enter when branch result"]; 41 [label="Enter when branch result"];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
42 [label="Enter block"]; 42 [label="Enter block"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
43 [label="Enter function anonymousFunction"]; 43 [label="Enter function anonymousFunction"];
44 [label="Access variable R|<local>/x|"]; 44 [label="Access variable R|<local>/x|"];
45 [label="Function call: R|<local>/x|.R|/A.foo|()"]; 45 [label="Function call: R|<local>/x|.R|/A.foo|()"];
46 [label="Access variable R|<local>/x|"]; 46 [label="Access variable R|<local>/x|"];
47 [label="Type operator: x as B"]; 47 [label="Type operator: x as B"];
48 [label="Exit function anonymousFunction"]; 48 [label="Exit function anonymousFunction"];
} }
49 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { 49 [label="Function call: R|/run|(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
R|<local>/x|.R|/A.foo|() R|<local>/x|.R|/A.foo|()
(R|<local>/x| as R|B|) (R|<local>/x| as R|B|)
} }
)"]; )"];
50 [label="Access variable R|<local>/x|"]; 50 [label="Access variable R|<local>/x|"];
51 [label="Function call: R|<local>/x|.R|/B.bar|()"]; 51 [label="Function call: R|<local>/x|.R|/B.bar|()"];
52 [label="Exit block"]; 52 [label="Exit block"];
} }
53 [label="Exit when branch result"]; 53 [label="Exit when branch result"];
54 [label="Exit when"]; 54 [label="Exit when"];
}
55 [label="Exit function test_3" style="filled" fillcolor=red];
} }
55 [label="Exit function test_3" style="filled" fillcolor=red];
}
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {41 40}; 39 -> {41 40};
40 -> {54}; 40 -> {54};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {48 44}; 43 -> {48 44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {43 49}; 48 -> {43 49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
} }
@@ -1,339 +1,339 @@
digraph notBoundSmartcasts_kt { digraph notBoundSmartcasts_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function foo" style="filled" fillcolor=red]; 2 [label="Enter function foo" style="filled" fillcolor=red];
3 [label="Exit function foo" style="filled" fillcolor=red]; 3 [label="Exit function foo" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
4 [label="Enter function getAny" style="filled" fillcolor=red]; 4 [label="Enter function getAny" style="filled" fillcolor=red];
5 [label="Const: Null(null)"]; 5 [label="Const: Null(null)"];
6 [label="Jump: ^getAny Null(null)"]; 6 [label="Jump: ^getAny Null(null)"];
7 [label="Stub" style="filled" fillcolor=gray]; 7 [label="Stub" style="filled" fillcolor=gray];
8 [label="Exit function getAny" style="filled" fillcolor=red]; 8 [label="Exit function getAny" style="filled" fillcolor=red];
} }
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {8}; 6 -> {8};
6 -> {7} [style=dotted]; 6 -> {7} [style=dotted];
7 -> {8} [style=dotted]; 7 -> {8} [style=dotted];
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
9 [label="Enter function test_0" style="filled" fillcolor=red]; 9 [label="Enter function test_0" style="filled" fillcolor=red];
10 [label="Function call: R|/getAny|()"]; 10 [label="Function call: R|/getAny|()"];
11 [label="Variable declaration: lval a: R|kotlin/Any?|"]; 11 [label="Variable declaration: lval a: R|kotlin/Any?|"];
12 [label="Function call: R|/getAny|()"]; 12 [label="Function call: R|/getAny|()"];
13 [label="Variable declaration: lval b: R|kotlin/Any?|"]; 13 [label="Variable declaration: lval b: R|kotlin/Any?|"];
14 [label="Access variable R|<local>/a|"]; 14 [label="Access variable R|<local>/a|"];
15 [label="Type operator: a as A"]; 15 [label="Type operator: a as A"];
16 [label="Access variable R|<local>/a|"]; 16 [label="Access variable R|<local>/a|"];
17 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 17 [label="Function call: R|<local>/a|.R|/A.foo|()"];
18 [label="Access variable R|<local>/b|"]; 18 [label="Access variable R|<local>/b|"];
19 [label="Type operator: b as B"]; 19 [label="Type operator: b as B"];
20 [label="Access variable R|<local>/b|"]; 20 [label="Access variable R|<local>/b|"];
21 [label="Function call: R|<local>/b|.R|/B.foo|()"]; 21 [label="Function call: R|<local>/b|.R|/B.foo|()"];
22 [label="Exit function test_0" style="filled" fillcolor=red]; 22 [label="Exit function test_0" style="filled" fillcolor=red];
} }
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
23 [label="Enter function test_1" style="filled" fillcolor=red]; 23 [label="Enter function test_1" style="filled" fillcolor=red];
24 [label="Function call: R|/getAny|()"]; 24 [label="Function call: R|/getAny|()"];
25 [label="Variable declaration: lval a: R|kotlin/Any?|"]; 25 [label="Variable declaration: lval a: R|kotlin/Any?|"];
26 [label="Function call: R|/getAny|()"]; 26 [label="Function call: R|/getAny|()"];
27 [label="Variable declaration: lval b: R|kotlin/Any?|"]; 27 [label="Variable declaration: lval b: R|kotlin/Any?|"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
28 [label="Enter when"]; 28 [label="Enter when"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
29 [label="Enter when branch condition "]; 29 [label="Enter when branch condition "];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
30 [label="Enter &&"]; 30 [label="Enter &&"];
31 [label="Access variable R|<local>/a|"]; 31 [label="Access variable R|<local>/a|"];
32 [label="Type operator: a is A"]; 32 [label="Type operator: a is A"];
33 [label="Exit left part of &&"]; 33 [label="Exit left part of &&"];
34 [label="Enter right part of &&"]; 34 [label="Enter right part of &&"];
35 [label="Access variable R|<local>/b|"]; 35 [label="Access variable R|<local>/b|"];
36 [label="Type operator: b is B"]; 36 [label="Type operator: b is B"];
37 [label="Exit &&"]; 37 [label="Exit &&"];
}
38 [label="Exit when branch condition"];
}
39 [label="Synthetic else branch"];
40 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
41 [label="Enter block"];
42 [label="Access variable R|<local>/a|"];
43 [label="Function call: R|<local>/a|.R|/A.foo|()"];
44 [label="Access variable R|<local>/b|"];
45 [label="Function call: R|<local>/b|.R|/B.foo|()"];
46 [label="Exit block"];
}
47 [label="Exit when branch result"];
48 [label="Exit when"];
} }
38 [label="Exit when branch condition"]; 49 [label="Exit function test_1" style="filled" fillcolor=red];
}
39 [label="Synthetic else branch"];
40 [label="Enter when branch result"];
subgraph cluster_8 {
color=blue
41 [label="Enter block"];
42 [label="Access variable R|<local>/a|"];
43 [label="Function call: R|<local>/a|.R|/A.foo|()"];
44 [label="Access variable R|<local>/b|"];
45 [label="Function call: R|<local>/b|.R|/B.foo|()"];
46 [label="Exit block"];
}
47 [label="Exit when branch result"];
48 [label="Exit when"];
} }
49 [label="Exit function test_1" style="filled" fillcolor=red];
}
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {37 34}; 33 -> {37 34};
34 -> {35}; 34 -> {35};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {40 39}; 38 -> {40 39};
39 -> {48}; 39 -> {48};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {46}; 45 -> {46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
subgraph cluster_9 { subgraph cluster_9 {
color=red color=red
50 [label="Enter function <init>" style="filled" fillcolor=red]; 50 [label="Enter function <init>" style="filled" fillcolor=red];
51 [label="Exit function <init>" style="filled" fillcolor=red]; 51 [label="Exit function <init>" style="filled" fillcolor=red];
}
50 -> {51};
subgraph cluster_10 {
color=red
52 [label="Enter function getter" style="filled" fillcolor=red];
53 [label="Exit function getter" style="filled" fillcolor=red];
}
52 -> {53};
subgraph cluster_11 {
color=red
54 [label="Enter property" style="filled" fillcolor=red];
55 [label="Access variable R|<local>/any|"];
56 [label="Exit property" style="filled" fillcolor=red];
}
54 -> {55};
55 -> {56};
subgraph cluster_12 {
color=red
57 [label="Enter function baz" style="filled" fillcolor=red];
58 [label="Exit function baz" style="filled" fillcolor=red];
}
57 -> {58};
subgraph cluster_13 {
color=red
59 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_14 {
color=blue
60 [label="Enter when"];
61 [label="Access variable R|<local>/d|"];
62 [label="Access variable R|/D.any|"];
63 [label="Variable declaration: lval <elvis>: R|kotlin/Any?|"];
subgraph cluster_15 {
color=blue
64 [label="Enter when branch condition "];
65 [label="Const: Null(null)"];
66 [label="Operator =="];
67 [label="Exit when branch condition"];
}
subgraph cluster_16 {
color=blue
68 [label="Enter when branch condition else"];
69 [label="Exit when branch condition"];
}
70 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/<elvis>|"];
73 [label="Exit block"];
}
74 [label="Exit when branch result"];
75 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
76 [label="Enter block"];
77 [label="Jump: ^test_2 Unit"];
78 [label="Stub" style="filled" fillcolor=gray];
79 [label="Exit block" style="filled" fillcolor=gray];
}
80 [label="Exit when branch result" style="filled" fillcolor=gray];
81 [label="Exit when"];
} }
82 [label="Variable declaration: lval a: R|kotlin/Any|"];
83 [label="Access variable R|<local>/a|"];
84 [label="Function call: R|<local>/a|.R|/baz|()"];
85 [label="Access variable R|<local>/d|"];
86 [label="Access variable R|/D.any|"];
87 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
88 [label="Access variable R|<local>/a|"];
89 [label="Type operator: a as A"];
90 [label="Access variable R|<local>/a|"];
91 [label="Function call: R|<local>/a|.R|/A.foo|()"];
92 [label="Exit function test_2" style="filled" fillcolor=red];
}
59 -> {60}; 50 -> {51};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {75 68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {81};
75 -> {76};
76 -> {77};
77 -> {92};
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
subgraph cluster_19 { subgraph cluster_10 {
color=red color=red
93 [label="Enter function test_3" style="filled" fillcolor=red]; 52 [label="Enter function getter" style="filled" fillcolor=red];
94 [label="Access variable R|<local>/d1|"]; 53 [label="Exit function getter" style="filled" fillcolor=red];
95 [label="Access variable R|/D.any|"]; }
96 [label="Variable declaration: lval a: R|kotlin/Any?|"];
97 [label="Access variable R|<local>/a|"];
98 [label="Type operator: a as A"];
99 [label="Access variable R|<local>/a|"];
100 [label="Function call: R|<local>/a|.R|/A.foo|()"];
101 [label="Access variable R|<local>/d1|"];
102 [label="Access variable R|/D.any|"];
103 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
104 [label="Access variable R|<local>/d1|"];
105 [label="Access variable R|/D.any|"];
106 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
107 [label="Exit function test_3" style="filled" fillcolor=red];
}
93 -> {94}; 52 -> {53};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
subgraph cluster_20 { subgraph cluster_11 {
color=red color=red
108 [label="Enter function test_4" style="filled" fillcolor=red]; 54 [label="Enter property" style="filled" fillcolor=red];
109 [label="Access variable R|<local>/d1|"]; 55 [label="Access variable R|<local>/any|"];
110 [label="Enter safe call"]; 56 [label="Exit property" style="filled" fillcolor=red];
111 [label="Access variable R|/D.any|"]; }
112 [label="Exit safe call"];
113 [label="Variable declaration: lval a: R|kotlin/Any?|"];
114 [label="Access variable R|<local>/d2|"];
115 [label="Enter safe call"];
116 [label="Access variable R|/D.any|"];
117 [label="Exit safe call"];
118 [label="Variable declaration: lval b: R|kotlin/Any?|"];
119 [label="Access variable R|<local>/a|"];
120 [label="Type operator: a as A"];
121 [label="Access variable R|<local>/a|"];
122 [label="Function call: R|<local>/a|.R|/A.foo|()"];
123 [label="Access variable R|<local>/b|"];
124 [label="Type operator: b as B"];
125 [label="Access variable R|<local>/b|"];
126 [label="Function call: R|<local>/b|.R|/B.foo|()"];
127 [label="Exit function test_4" style="filled" fillcolor=red];
}
108 -> {109}; 54 -> {55};
109 -> {110 112}; 55 -> {56};
110 -> {111};
111 -> {112}; subgraph cluster_12 {
112 -> {113}; color=red
113 -> {114}; 57 [label="Enter function baz" style="filled" fillcolor=red];
114 -> {115 117}; 58 [label="Exit function baz" style="filled" fillcolor=red];
115 -> {116}; }
116 -> {117};
117 -> {118}; 57 -> {58};
118 -> {119};
119 -> {120}; subgraph cluster_13 {
120 -> {121}; color=red
121 -> {122}; 59 [label="Enter function test_2" style="filled" fillcolor=red];
122 -> {123}; subgraph cluster_14 {
123 -> {124}; color=blue
124 -> {125}; 60 [label="Enter when"];
125 -> {126}; 61 [label="Access variable R|<local>/d|"];
126 -> {127}; 62 [label="Access variable R|/D.any|"];
63 [label="Variable declaration: lval <elvis>: R|kotlin/Any?|"];
subgraph cluster_15 {
color=blue
64 [label="Enter when branch condition "];
65 [label="Const: Null(null)"];
66 [label="Operator =="];
67 [label="Exit when branch condition"];
}
subgraph cluster_16 {
color=blue
68 [label="Enter when branch condition else"];
69 [label="Exit when branch condition"];
}
70 [label="Enter when branch result"];
subgraph cluster_17 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/<elvis>|"];
73 [label="Exit block"];
}
74 [label="Exit when branch result"];
75 [label="Enter when branch result"];
subgraph cluster_18 {
color=blue
76 [label="Enter block"];
77 [label="Jump: ^test_2 Unit"];
78 [label="Stub" style="filled" fillcolor=gray];
79 [label="Exit block" style="filled" fillcolor=gray];
}
80 [label="Exit when branch result" style="filled" fillcolor=gray];
81 [label="Exit when"];
}
82 [label="Variable declaration: lval a: R|kotlin/Any|"];
83 [label="Access variable R|<local>/a|"];
84 [label="Function call: R|<local>/a|.R|/baz|()"];
85 [label="Access variable R|<local>/d|"];
86 [label="Access variable R|/D.any|"];
87 [label="Function call: R|<local>/d|.R|/D.any|.R|/baz|()"];
88 [label="Access variable R|<local>/a|"];
89 [label="Type operator: a as A"];
90 [label="Access variable R|<local>/a|"];
91 [label="Function call: R|<local>/a|.R|/A.foo|()"];
92 [label="Exit function test_2" style="filled" fillcolor=red];
}
59 -> {60};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {67};
67 -> {75 68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {81};
75 -> {76};
76 -> {77};
77 -> {92};
77 -> {78} [style=dotted];
78 -> {79} [style=dotted];
79 -> {80} [style=dotted];
80 -> {81} [style=dotted];
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
91 -> {92};
subgraph cluster_19 {
color=red
93 [label="Enter function test_3" style="filled" fillcolor=red];
94 [label="Access variable R|<local>/d1|"];
95 [label="Access variable R|/D.any|"];
96 [label="Variable declaration: lval a: R|kotlin/Any?|"];
97 [label="Access variable R|<local>/a|"];
98 [label="Type operator: a as A"];
99 [label="Access variable R|<local>/a|"];
100 [label="Function call: R|<local>/a|.R|/A.foo|()"];
101 [label="Access variable R|<local>/d1|"];
102 [label="Access variable R|/D.any|"];
103 [label="Function call: R|<local>/d1|.R|/D.any|.R|/A.foo|()"];
104 [label="Access variable R|<local>/d1|"];
105 [label="Access variable R|/D.any|"];
106 [label="Function call: R|<local>/d1|.R|/D.any|.R|/baz|()"];
107 [label="Exit function test_3" style="filled" fillcolor=red];
}
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
subgraph cluster_20 {
color=red
108 [label="Enter function test_4" style="filled" fillcolor=red];
109 [label="Access variable R|<local>/d1|"];
110 [label="Enter safe call"];
111 [label="Access variable R|/D.any|"];
112 [label="Exit safe call"];
113 [label="Variable declaration: lval a: R|kotlin/Any?|"];
114 [label="Access variable R|<local>/d2|"];
115 [label="Enter safe call"];
116 [label="Access variable R|/D.any|"];
117 [label="Exit safe call"];
118 [label="Variable declaration: lval b: R|kotlin/Any?|"];
119 [label="Access variable R|<local>/a|"];
120 [label="Type operator: a as A"];
121 [label="Access variable R|<local>/a|"];
122 [label="Function call: R|<local>/a|.R|/A.foo|()"];
123 [label="Access variable R|<local>/b|"];
124 [label="Type operator: b as B"];
125 [label="Access variable R|<local>/b|"];
126 [label="Function call: R|<local>/b|.R|/B.foo|()"];
127 [label="Exit function test_4" style="filled" fillcolor=red];
}
108 -> {109};
109 -> {110 112};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115 117};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
} }
File diff suppressed because it is too large Load Diff
+329 -329
View File
@@ -1,344 +1,344 @@
digraph returns_kt { digraph returns_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_0" style="filled" fillcolor=red]; 0 [label="Enter function test_0" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter when"]; 1 [label="Enter when"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
2 [label="Enter when branch condition "]; 2 [label="Enter when branch condition "];
3 [label="Access variable R|<local>/x|"]; 3 [label="Access variable R|<local>/x|"];
4 [label="Type operator: x is String"]; 4 [label="Type operator: x is String"];
5 [label="Exit when branch condition"]; 5 [label="Exit when branch condition"];
} }
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
6 [label="Enter when branch condition else"]; 6 [label="Enter when branch condition else"];
7 [label="Exit when branch condition"]; 7 [label="Exit when branch condition"];
} }
8 [label="Enter when branch result"]; 8 [label="Enter when branch result"];
subgraph cluster_4 { subgraph cluster_4 {
color=blue color=blue
9 [label="Enter block"]; 9 [label="Enter block"];
10 [label="Exit block"]; 10 [label="Exit block"];
} }
11 [label="Exit when branch result"]; 11 [label="Exit when branch result"];
12 [label="Enter when branch result"]; 12 [label="Enter when branch result"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
13 [label="Enter block"]; 13 [label="Enter block"];
14 [label="Access variable R|<local>/x|"]; 14 [label="Access variable R|<local>/x|"];
15 [label="Access variable R|kotlin/String.length|"]; 15 [label="Access variable R|kotlin/String.length|"];
16 [label="Exit block"]; 16 [label="Exit block"];
} }
17 [label="Exit when branch result"]; 17 [label="Exit when branch result"];
18 [label="Exit when"]; 18 [label="Exit when"];
}
19 [label="Access variable R|<local>/x|"];
20 [label="Access variable <Unresolved name: length>#"];
21 [label="Exit function test_0" style="filled" fillcolor=red];
} }
19 [label="Access variable R|<local>/x|"];
20 [label="Access variable <Unresolved name: length>#"];
21 [label="Exit function test_0" style="filled" fillcolor=red];
}
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {12 6}; 5 -> {12 6};
6 -> {7}; 6 -> {7};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {18}; 11 -> {18};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
22 [label="Enter function test_1" style="filled" fillcolor=red]; 22 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
23 [label="Enter when"]; 23 [label="Enter when"];
subgraph cluster_8 { subgraph cluster_8 {
color=blue color=blue
24 [label="Enter when branch condition "]; 24 [label="Enter when branch condition "];
25 [label="Access variable R|<local>/x|"]; 25 [label="Access variable R|<local>/x|"];
26 [label="Type operator: x is String"]; 26 [label="Type operator: x is String"];
27 [label="Exit when branch condition"]; 27 [label="Exit when branch condition"];
} }
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
28 [label="Enter when branch condition else"]; 28 [label="Enter when branch condition else"];
29 [label="Exit when branch condition"]; 29 [label="Exit when branch condition"];
} }
30 [label="Enter when branch result"]; 30 [label="Enter when branch result"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
31 [label="Enter block"]; 31 [label="Enter block"];
32 [label="Jump: ^test_1 Unit"]; 32 [label="Jump: ^test_1 Unit"];
33 [label="Stub" style="filled" fillcolor=gray]; 33 [label="Stub" style="filled" fillcolor=gray];
34 [label="Exit block" style="filled" fillcolor=gray]; 34 [label="Exit block" style="filled" fillcolor=gray];
} }
35 [label="Exit when branch result" style="filled" fillcolor=gray]; 35 [label="Exit when branch result" style="filled" fillcolor=gray];
36 [label="Enter when branch result"]; 36 [label="Enter when branch result"];
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
37 [label="Enter block"]; 37 [label="Enter block"];
38 [label="Access variable R|<local>/x|"]; 38 [label="Access variable R|<local>/x|"];
39 [label="Access variable R|kotlin/String.length|"]; 39 [label="Access variable R|kotlin/String.length|"];
40 [label="Exit block"]; 40 [label="Exit block"];
} }
41 [label="Exit when branch result"]; 41 [label="Exit when branch result"];
42 [label="Exit when"]; 42 [label="Exit when"];
}
43 [label="Access variable R|<local>/x|"];
44 [label="Access variable R|kotlin/String.length|"];
45 [label="Exit function test_1" style="filled" fillcolor=red];
} }
43 [label="Access variable R|<local>/x|"];
44 [label="Access variable R|kotlin/String.length|"];
45 [label="Exit function test_1" style="filled" fillcolor=red];
}
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {25}; 24 -> {25};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {36 28}; 27 -> {36 28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {45}; 32 -> {45};
32 -> {33} [style=dotted]; 32 -> {33} [style=dotted];
33 -> {34} [style=dotted]; 33 -> {34} [style=dotted];
34 -> {35} [style=dotted]; 34 -> {35} [style=dotted];
35 -> {42} [style=dotted]; 35 -> {42} [style=dotted];
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
subgraph cluster_12 { subgraph cluster_12 {
color=red color=red
46 [label="Enter function foo" style="filled" fillcolor=red]; 46 [label="Enter function foo" style="filled" fillcolor=red];
47 [label="Exit function foo" style="filled" fillcolor=red]; 47 [label="Exit function foo" style="filled" fillcolor=red];
}
46 -> {47};
subgraph cluster_13 {
color=red
48 [label="Enter function bar" style="filled" fillcolor=red];
49 [label="Exit function bar" style="filled" fillcolor=red];
}
48 -> {49};
subgraph cluster_14 {
color=red
50 [label="Enter function baz" style="filled" fillcolor=red];
51 [label="Exit function baz" style="filled" fillcolor=red];
}
50 -> {51};
subgraph cluster_15 {
color=red
52 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_16 {
color=blue
53 [label="Enter when"];
subgraph cluster_17 {
color=blue
54 [label="Enter when branch condition "];
55 [label="Access variable R|<local>/x|"];
56 [label="Type operator: x is B"];
57 [label="Exit when branch condition"];
}
subgraph cluster_18 {
color=blue
58 [label="Enter when branch condition "];
59 [label="Access variable R|<local>/x|"];
60 [label="Type operator: x is C"];
61 [label="Exit when branch condition"];
}
subgraph cluster_19 {
color=blue
62 [label="Enter when branch condition else"];
63 [label="Exit when branch condition"];
}
64 [label="Enter when branch result"];
subgraph cluster_20 {
color=blue
65 [label="Enter block"];
66 [label="Jump: ^test_2 Unit"];
67 [label="Stub" style="filled" fillcolor=gray];
68 [label="Exit block" style="filled" fillcolor=gray];
}
69 [label="Exit when branch result" style="filled" fillcolor=gray];
70 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/x|"];
73 [label="Function call: R|<local>/x|.R|/C.baz|()"];
74 [label="Exit block"];
}
75 [label="Exit when branch result"];
76 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
77 [label="Enter block"];
78 [label="Access variable R|<local>/x|"];
79 [label="Function call: R|<local>/x|.R|/B.bar|()"];
80 [label="Exit block"];
}
81 [label="Exit when branch result"];
82 [label="Exit when"];
} }
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|/A.foo|()"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
87 [label="Access variable R|<local>/x|"];
88 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
89 [label="Exit function test_2" style="filled" fillcolor=red];
}
52 -> {53}; 46 -> {47};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {76 58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {70 62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {89};
66 -> {67} [style=dotted];
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
69 -> {82} [style=dotted];
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {82};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
subgraph cluster_23 { subgraph cluster_13 {
color=red color=red
90 [label="Enter function test_3" style="filled" fillcolor=red]; 48 [label="Enter function bar" style="filled" fillcolor=red];
subgraph cluster_24 { 49 [label="Exit function bar" style="filled" fillcolor=red];
color=blue
91 [label="Enter when"];
subgraph cluster_25 {
color=blue
92 [label="Enter when branch condition "];
93 [label="Access variable R|<local>/x|"];
94 [label="Type operator: x is B"];
95 [label="Exit when branch condition"];
}
subgraph cluster_26 {
color=blue
96 [label="Enter when branch condition "];
97 [label="Access variable R|<local>/x|"];
98 [label="Type operator: x is C"];
99 [label="Exit when branch condition"];
}
100 [label="Synthetic else branch"];
101 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
102 [label="Enter block"];
103 [label="Access variable R|<local>/x|"];
104 [label="Function call: R|<local>/x|.R|/C.baz|()"];
105 [label="Exit block"];
}
106 [label="Exit when branch result"];
107 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
108 [label="Enter block"];
109 [label="Access variable R|<local>/x|"];
110 [label="Function call: R|<local>/x|.R|/B.bar|()"];
111 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Exit when"];
} }
114 [label="Access variable R|<local>/x|"];
115 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
116 [label="Access variable R|<local>/x|"];
117 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
118 [label="Access variable R|<local>/x|"];
119 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
120 [label="Exit function test_3" style="filled" fillcolor=red];
}
90 -> {91}; 48 -> {49};
91 -> {92};
92 -> {93}; subgraph cluster_14 {
93 -> {94}; color=red
94 -> {95}; 50 [label="Enter function baz" style="filled" fillcolor=red];
95 -> {107 96}; 51 [label="Exit function baz" style="filled" fillcolor=red];
96 -> {97}; }
97 -> {98};
98 -> {99}; 50 -> {51};
99 -> {101 100};
100 -> {113}; subgraph cluster_15 {
101 -> {102}; color=red
102 -> {103}; 52 [label="Enter function test_2" style="filled" fillcolor=red];
103 -> {104}; subgraph cluster_16 {
104 -> {105}; color=blue
105 -> {106}; 53 [label="Enter when"];
106 -> {113}; subgraph cluster_17 {
107 -> {108}; color=blue
108 -> {109}; 54 [label="Enter when branch condition "];
109 -> {110}; 55 [label="Access variable R|<local>/x|"];
110 -> {111}; 56 [label="Type operator: x is B"];
111 -> {112}; 57 [label="Exit when branch condition"];
112 -> {113}; }
113 -> {114}; subgraph cluster_18 {
114 -> {115}; color=blue
115 -> {116}; 58 [label="Enter when branch condition "];
116 -> {117}; 59 [label="Access variable R|<local>/x|"];
117 -> {118}; 60 [label="Type operator: x is C"];
118 -> {119}; 61 [label="Exit when branch condition"];
119 -> {120}; }
subgraph cluster_19 {
color=blue
62 [label="Enter when branch condition else"];
63 [label="Exit when branch condition"];
}
64 [label="Enter when branch result"];
subgraph cluster_20 {
color=blue
65 [label="Enter block"];
66 [label="Jump: ^test_2 Unit"];
67 [label="Stub" style="filled" fillcolor=gray];
68 [label="Exit block" style="filled" fillcolor=gray];
}
69 [label="Exit when branch result" style="filled" fillcolor=gray];
70 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
71 [label="Enter block"];
72 [label="Access variable R|<local>/x|"];
73 [label="Function call: R|<local>/x|.R|/C.baz|()"];
74 [label="Exit block"];
}
75 [label="Exit when branch result"];
76 [label="Enter when branch result"];
subgraph cluster_22 {
color=blue
77 [label="Enter block"];
78 [label="Access variable R|<local>/x|"];
79 [label="Function call: R|<local>/x|.R|/B.bar|()"];
80 [label="Exit block"];
}
81 [label="Exit when branch result"];
82 [label="Exit when"];
}
83 [label="Access variable R|<local>/x|"];
84 [label="Function call: R|<local>/x|.R|/A.foo|()"];
85 [label="Access variable R|<local>/x|"];
86 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
87 [label="Access variable R|<local>/x|"];
88 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
89 [label="Exit function test_2" style="filled" fillcolor=red];
}
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {76 58};
58 -> {59};
59 -> {60};
60 -> {61};
61 -> {70 62};
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {89};
66 -> {67} [style=dotted];
67 -> {68} [style=dotted];
68 -> {69} [style=dotted];
69 -> {82} [style=dotted];
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {75};
75 -> {82};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
subgraph cluster_23 {
color=red
90 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_24 {
color=blue
91 [label="Enter when"];
subgraph cluster_25 {
color=blue
92 [label="Enter when branch condition "];
93 [label="Access variable R|<local>/x|"];
94 [label="Type operator: x is B"];
95 [label="Exit when branch condition"];
}
subgraph cluster_26 {
color=blue
96 [label="Enter when branch condition "];
97 [label="Access variable R|<local>/x|"];
98 [label="Type operator: x is C"];
99 [label="Exit when branch condition"];
}
100 [label="Synthetic else branch"];
101 [label="Enter when branch result"];
subgraph cluster_27 {
color=blue
102 [label="Enter block"];
103 [label="Access variable R|<local>/x|"];
104 [label="Function call: R|<local>/x|.R|/C.baz|()"];
105 [label="Exit block"];
}
106 [label="Exit when branch result"];
107 [label="Enter when branch result"];
subgraph cluster_28 {
color=blue
108 [label="Enter block"];
109 [label="Access variable R|<local>/x|"];
110 [label="Function call: R|<local>/x|.R|/B.bar|()"];
111 [label="Exit block"];
}
112 [label="Exit when branch result"];
113 [label="Exit when"];
}
114 [label="Access variable R|<local>/x|"];
115 [label="Function call: R|<local>/x|.<Unresolved name: foo>#()"];
116 [label="Access variable R|<local>/x|"];
117 [label="Function call: R|<local>/x|.<Unresolved name: bar>#()"];
118 [label="Access variable R|<local>/x|"];
119 [label="Function call: R|<local>/x|.<Unresolved name: baz>#()"];
120 [label="Exit function test_3" style="filled" fillcolor=red];
}
90 -> {91};
91 -> {92};
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {107 96};
96 -> {97};
97 -> {98};
98 -> {99};
99 -> {101 100};
100 -> {113};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {113};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {112};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
} }
+210 -211
View File
@@ -1,239 +1,238 @@
digraph safeCalls_kt { digraph safeCalls_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Const: String()"]; 1 [label="Const: String()"];
2 [label="Jump: ^foo String()"]; 2 [label="Jump: ^foo String()"];
3 [label="Stub" style="filled" fillcolor=gray]; 3 [label="Stub" style="filled" fillcolor=gray];
4 [label="Exit function foo" style="filled" fillcolor=red]; 4 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {4}; 2 -> {4};
2 -> {3} [style=dotted]; 2 -> {3} [style=dotted];
3 -> {4} [style=dotted]; 3 -> {4} [style=dotted];
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
5 [label="Enter function let" style="filled" fillcolor=red]; 5 [label="Enter function let" style="filled" fillcolor=red];
6 [label="Exit function let" style="filled" fillcolor=red]; 6 [label="Exit function let" style="filled" fillcolor=red];
} }
5 -> {6}; 5 -> {6};
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
7 [label="Enter function test" style="filled" fillcolor=red]; 7 [label="Enter function test" style="filled" fillcolor=red];
8 [label="Access variable R|<local>/x|"]; 8 [label="Access variable R|<local>/x|"];
9 [label="Enter safe call"]; 9 [label="Enter safe call"];
10 [label="Access variable R|<local>/x|"]; 10 [label="Access variable R|<local>/x|"];
11 [label="Access variable R|kotlin/String.length|"]; 11 [label="Access variable R|kotlin/String.length|"];
12 [label="Const: Int(1)"]; 12 [label="Const: Int(1)"];
13 [label="Operator =="]; 13 [label="Operator =="];
14 [label="Function call: R|<local>/x|?.R|/foo|(==(R|<local>/x|.R|kotlin/String.length|, Int(1)))"]; 14 [label="Function call: R|<local>/x|?.R|/foo|(==(R|<local>/x|.R|kotlin/String.length|, Int(1)))"];
15 [label="Exit safe call"]; 15 [label="Exit safe call"];
16 [label="Access variable R|<local>/x|"]; 16 [label="Access variable R|<local>/x|"];
17 [label="Access variable <Inapplicable(WRONG_RECEIVER): [kotlin/String.length]>#"]; 17 [label="Access variable <Inapplicable(WRONG_RECEIVER): [kotlin/String.length]>#"];
18 [label="Exit function test" style="filled" fillcolor=red]; 18 [label="Exit function test" style="filled" fillcolor=red];
} }
7 -> {8}; 7 -> {8};
8 -> {9 15}; 8 -> {9 15};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {18}; 17 -> {18};
subgraph cluster_3 { subgraph cluster_3 {
color=red color=red
19 [label="Enter function bar" style="filled" fillcolor=red]; 19 [label="Enter function bar" style="filled" fillcolor=red];
20 [label="Exit function bar" style="filled" fillcolor=red]; 20 [label="Exit function bar" style="filled" fillcolor=red];
} }
19 -> {20}; 19 -> {20};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
21 [label="Enter function bool" style="filled" fillcolor=red]; 21 [label="Enter function bool" style="filled" fillcolor=red];
22 [label="Exit function bool" style="filled" fillcolor=red]; 22 [label="Exit function bool" style="filled" fillcolor=red];
} }
21 -> {22}; 21 -> {22};
subgraph cluster_5 { subgraph cluster_5 {
color=red color=red
23 [label="Enter function id" style="filled" fillcolor=red]; 23 [label="Enter function id" style="filled" fillcolor=red];
24 [label="Exit function id" style="filled" fillcolor=red]; 24 [label="Exit function id" style="filled" fillcolor=red];
} }
23 -> {24}; 23 -> {24};
subgraph cluster_6 { subgraph cluster_6 {
color=red color=red
25 [label="Enter function test_2" style="filled" fillcolor=red]; 25 [label="Enter function test_2" style="filled" fillcolor=red];
26 [label="Access variable R|<local>/x|"]; 26 [label="Access variable R|<local>/x|"];
27 [label="Type operator: x as? A"]; 27 [label="Type operator: x as? A"];
28 [label="Enter safe call"]; 28 [label="Enter safe call"];
29 [label="Access variable R|<local>/x|"]; 29 [label="Access variable R|<local>/x|"];
30 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)"]; 30 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)"];
31 [label="Exit safe call"]; 31 [label="Exit safe call"];
32 [label="Exit function test_2" style="filled" fillcolor=red]; 32 [label="Exit function test_2" style="filled" fillcolor=red];
} }
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {28 31}; 27 -> {28 31};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
subgraph cluster_7 { subgraph cluster_7 {
color=red color=red
33 [label="Enter function test_3" style="filled" fillcolor=red]; 33 [label="Enter function test_3" style="filled" fillcolor=red];
34 [label="Access variable R|<local>/x|"]; 34 [label="Access variable R|<local>/x|"];
35 [label="Type operator: x as? A"]; 35 [label="Type operator: x as? A"];
36 [label="Enter safe call"]; 36 [label="Enter safe call"];
37 [label="Access variable R|<local>/x|"]; 37 [label="Access variable R|<local>/x|"];
38 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)"]; 38 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)"];
39 [label="Exit safe call"]; 39 [label="Exit safe call"];
40 [label="Enter safe call"]; 40 [label="Enter safe call"];
41 [label="Access variable R|<local>/x|"]; 41 [label="Access variable R|<local>/x|"];
42 [label="Function call: R|<local>/x|.R|/A.bool|()"]; 42 [label="Function call: R|<local>/x|.R|/A.bool|()"];
43 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)?.R|/foo|(R|<local>/x|.R|/A.bool|())"]; 43 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)?.R|/foo|(R|<local>/x|.R|/A.bool|())"];
44 [label="Exit safe call"]; 44 [label="Exit safe call"];
45 [label="Enter safe call"]; 45 [label="Enter safe call"];
46 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)?.R|/foo|(R|<local>/x|.R|/A.bool|())?.R|/let|(<L> = let@fun <anonymous>(): R|kotlin/Unit| { 46 [label="Function call: (R|<local>/x| as? R|A|)?.R|/A.bar|(R|<local>/x|)?.R|/foo|(R|<local>/x|.R|/A.bool|())?.R|/let|(<L> = let@fun <anonymous>(): R|kotlin/Unit| {
R|<local>/x|.R|/A.bool|() R|<local>/x|.R|/A.bool|()
} }
)"]; )"];
47 [label="Exit safe call"]; 47 [label="Exit safe call"];
48 [label="Access variable R|<local>/x|"]; 48 [label="Access variable R|<local>/x|"];
49 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()"]; 49 [label="Function call: R|<local>/x|.<Unresolved name: bool>#()"];
50 [label="Exit function test_3" style="filled" fillcolor=red]; 50 [label="Exit function test_3" style="filled" fillcolor=red];
}
33 -> {34};
34 -> {35};
35 -> {36 39};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40 44};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45 47};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
subgraph cluster_8 {
color=red
51 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|<local>/x|.R|/A.bool|()"];
54 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
51 -> {52};
52 -> {53};
53 -> {54};
subgraph cluster_9 {
color=red
55 [label="Enter function test_4" style="filled" fillcolor=red];
56 [label="Access variable R|<local>/x|"];
57 [label="Enter safe call"];
58 [label="Function call: R|<local>/x|?.R|/A.id|()"];
59 [label="Exit safe call"];
60 [label="Enter safe call"];
61 [label="Function call: R|<local>/x|?.R|/A.id|()?.R|/A.bool|()"];
62 [label="Exit safe call"];
63 [label="Access variable R|<local>/x|"];
64 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
65 [label="Exit function test_4" style="filled" fillcolor=red];
}
55 -> {56};
56 -> {57 59};
57 -> {58};
58 -> {59};
59 -> {60 62};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
subgraph cluster_10 {
color=red
66 [label="Enter function boo" style="filled" fillcolor=red];
67 [label="Exit function boo" style="filled" fillcolor=red];
}
66 -> {67};
subgraph cluster_11 {
color=red
68 [label="Enter function test_5" style="filled" fillcolor=red];
69 [label="Access variable R|<local>/x|"];
70 [label="Enter safe call"];
subgraph cluster_12 {
color=blue
71 [label="Enter function anonymousFunction"];
72 [label="Jump: ^test_5 Unit"];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
} }
75 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(<L> = let@fun <anonymous>(it: R|A|): R|kotlin/Nothing| <kind=EXACTLY_ONCE> {
33 -> {34};
34 -> {35};
35 -> {36 39};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40 44};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45 47};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
subgraph cluster_8 {
color=red
51 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|<local>/x|.R|/A.bool|()"];
54 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
}
51 -> {52};
52 -> {53};
53 -> {54};
subgraph cluster_9 {
color=red
55 [label="Enter function test_4" style="filled" fillcolor=red];
56 [label="Access variable R|<local>/x|"];
57 [label="Enter safe call"];
58 [label="Function call: R|<local>/x|?.R|/A.id|()"];
59 [label="Exit safe call"];
60 [label="Enter safe call"];
61 [label="Function call: R|<local>/x|?.R|/A.id|()?.R|/A.bool|()"];
62 [label="Exit safe call"];
63 [label="Access variable R|<local>/x|"];
64 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
65 [label="Exit function test_4" style="filled" fillcolor=red];
}
55 -> {56};
56 -> {57 59};
57 -> {58};
58 -> {59};
59 -> {60 62};
60 -> {61};
61 -> {62};
62 -> {63};
63 -> {64};
64 -> {65};
subgraph cluster_10 {
color=red
66 [label="Enter function boo" style="filled" fillcolor=red];
67 [label="Exit function boo" style="filled" fillcolor=red];
}
66 -> {67};
subgraph cluster_11 {
color=red
68 [label="Enter function test_5" style="filled" fillcolor=red];
69 [label="Access variable R|<local>/x|"];
70 [label="Enter safe call"];
subgraph cluster_12 {
color=blue
71 [label="Enter function anonymousFunction"];
72 [label="Jump: ^test_5 Unit"];
73 [label="Stub" style="filled" fillcolor=gray];
74 [label="Exit function anonymousFunction" style="filled" fillcolor=gray];
}
75 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(<L> = let@fun <anonymous>(it: R|A|): R|kotlin/Nothing| <kind=EXACTLY_ONCE> {
^test_5 Unit ^test_5 Unit
} }
)" style="filled" fillcolor=gray]; )" style="filled" fillcolor=gray];
76 [label="Exit safe call" style="filled" fillcolor=gray]; 76 [label="Exit safe call"];
77 [label="Enter safe call" style="filled" fillcolor=gray]; 77 [label="Enter safe call"];
78 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray]; 78 [label="Access variable R|<local>/x|"];
79 [label="Function call: R|<local>/x|.R|/A.bool|()" style="filled" fillcolor=gray]; 79 [label="Function call: R|<local>/x|.R|/A.bool|()"];
80 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(<L> = let@fun <anonymous>(it: R|A|): R|kotlin/Nothing| <kind=EXACTLY_ONCE> { 80 [label="Function call: R|<local>/x|?.R|kotlin/let|<R|A|, R|kotlin/Nothing|>(<L> = let@fun <anonymous>(it: R|A|): R|kotlin/Nothing| <kind=EXACTLY_ONCE> {
^test_5 Unit ^test_5 Unit
} }
)?.R|/boo|(R|<local>/x|.R|/A.bool|())" style="filled" fillcolor=gray]; )?.R|/boo|(R|<local>/x|.R|/A.bool|())"];
81 [label="Exit safe call" style="filled" fillcolor=gray]; 81 [label="Exit safe call"];
82 [label="Access variable R|<local>/x|" style="filled" fillcolor=gray]; 82 [label="Access variable R|<local>/x|"];
83 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()" style="filled" fillcolor=gray]; 83 [label="Function call: R|<local>/x|.<Inapplicable(WRONG_RECEIVER): [/A.id]>#()"];
84 [label="Exit function test_5" style="filled" fillcolor=red]; 84 [label="Exit function test_5" style="filled" fillcolor=red];
} }
68 -> {69}; 68 -> {69};
69 -> {70}; 69 -> {70 76};
69 -> {76} [style=dotted]; 70 -> {71};
70 -> {71}; 71 -> {72};
71 -> {72}; 72 -> {84};
72 -> {84}; 72 -> {73} [style=dotted];
72 -> {73} [style=dotted]; 73 -> {74} [style=dotted];
73 -> {74} [style=dotted]; 74 -> {75} [style=dotted];
74 -> {75} [style=dotted]; 75 -> {76} [style=dotted];
75 -> {76} [style=dotted]; 76 -> {77 81};
76 -> {77 81} [style=dotted]; 77 -> {78};
77 -> {78} [style=dotted]; 78 -> {79};
78 -> {79} [style=dotted]; 79 -> {80};
79 -> {80} [style=dotted]; 80 -> {81};
80 -> {81} [style=dotted]; 81 -> {82};
81 -> {82} [style=dotted]; 82 -> {83};
82 -> {83} [style=dotted]; 83 -> {84};
83 -> {84} [style=dotted];
} }
+177 -177
View File
@@ -1,189 +1,189 @@
digraph simpleIf_kt { digraph simpleIf_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter when"]; 1 [label="Enter when"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
2 [label="Enter when branch condition "]; 2 [label="Enter when branch condition "];
3 [label="Access variable R|<local>/x|"]; 3 [label="Access variable R|<local>/x|"];
4 [label="Type operator: x is String"]; 4 [label="Type operator: x is String"];
5 [label="Exit when branch condition"]; 5 [label="Exit when branch condition"];
} }
6 [label="Synthetic else branch"]; 6 [label="Synthetic else branch"];
7 [label="Enter when branch result"]; 7 [label="Enter when branch result"];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
8 [label="Enter block"]; 8 [label="Enter block"];
9 [label="Access variable R|<local>/x|"]; 9 [label="Access variable R|<local>/x|"];
10 [label="Access variable R|kotlin/String.length|"]; 10 [label="Access variable R|kotlin/String.length|"];
11 [label="Exit block"]; 11 [label="Exit block"];
} }
12 [label="Exit when branch result"]; 12 [label="Exit when branch result"];
13 [label="Exit when"]; 13 [label="Exit when"];
}
14 [label="Access variable R|<local>/x|"];
15 [label="Access variable <Unresolved name: length>#"];
16 [label="Exit function test_1" style="filled" fillcolor=red];
} }
14 [label="Access variable R|<local>/x|"];
15 [label="Access variable <Unresolved name: length>#"];
16 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {7 6}; 5 -> {7 6};
6 -> {13}; 6 -> {13};
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
subgraph cluster_4 { subgraph cluster_4 {
color=red color=red
17 [label="Enter function test_2" style="filled" fillcolor=red]; 17 [label="Enter function test_2" style="filled" fillcolor=red];
18 [label="Access variable R|<local>/x|"]; 18 [label="Access variable R|<local>/x|"];
19 [label="Type operator: x is String"]; 19 [label="Type operator: x is String"];
20 [label="Variable declaration: lval b: R|kotlin/Boolean|"]; 20 [label="Variable declaration: lval b: R|kotlin/Boolean|"];
subgraph cluster_5 { subgraph cluster_5 {
color=blue color=blue
21 [label="Enter when"]; 21 [label="Enter when"];
subgraph cluster_6 { subgraph cluster_6 {
color=blue color=blue
22 [label="Enter when branch condition "]; 22 [label="Enter when branch condition "];
23 [label="Access variable R|<local>/b|"]; 23 [label="Access variable R|<local>/b|"];
24 [label="Exit when branch condition"]; 24 [label="Exit when branch condition"];
} }
25 [label="Synthetic else branch"]; 25 [label="Synthetic else branch"];
26 [label="Enter when branch result"]; 26 [label="Enter when branch result"];
subgraph cluster_7 { subgraph cluster_7 {
color=blue color=blue
27 [label="Enter block"]; 27 [label="Enter block"];
28 [label="Access variable R|<local>/x|"]; 28 [label="Access variable R|<local>/x|"];
29 [label="Access variable R|kotlin/String.length|"]; 29 [label="Access variable R|kotlin/String.length|"];
30 [label="Exit block"]; 30 [label="Exit block"];
} }
31 [label="Exit when branch result"]; 31 [label="Exit when branch result"];
32 [label="Exit when"]; 32 [label="Exit when"];
}
33 [label="Access variable R|<local>/x|"];
34 [label="Access variable <Unresolved name: length>#"];
35 [label="Exit function test_2" style="filled" fillcolor=red];
} }
33 [label="Access variable R|<local>/x|"];
34 [label="Access variable <Unresolved name: length>#"];
35 [label="Exit function test_2" style="filled" fillcolor=red];
}
17 -> {18}; 17 -> {18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {26 25}; 24 -> {26 25};
25 -> {32}; 25 -> {32};
26 -> {27}; 26 -> {27};
27 -> {28}; 27 -> {28};
28 -> {29}; 28 -> {29};
29 -> {30}; 29 -> {30};
30 -> {31}; 30 -> {31};
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {34}; 33 -> {34};
34 -> {35}; 34 -> {35};
subgraph cluster_8 { subgraph cluster_8 {
color=red color=red
36 [label="Enter function test_3" style="filled" fillcolor=red]; 36 [label="Enter function test_3" style="filled" fillcolor=red];
subgraph cluster_9 { subgraph cluster_9 {
color=blue color=blue
37 [label="Enter when"]; 37 [label="Enter when"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
38 [label="Enter when branch condition "]; 38 [label="Enter when branch condition "];
39 [label="Access variable R|<local>/x|"]; 39 [label="Access variable R|<local>/x|"];
40 [label="Type operator: x !is String"]; 40 [label="Type operator: x !is String"];
41 [label="Exit when branch condition"]; 41 [label="Exit when branch condition"];
} }
subgraph cluster_11 { subgraph cluster_11 {
color=blue color=blue
42 [label="Enter when branch condition "]; 42 [label="Enter when branch condition "];
43 [label="Access variable R|<local>/x|"]; 43 [label="Access variable R|<local>/x|"];
44 [label="Type operator: x !is Int"]; 44 [label="Type operator: x !is Int"];
45 [label="Exit when branch condition"]; 45 [label="Exit when branch condition"];
} }
subgraph cluster_12 { subgraph cluster_12 {
color=blue color=blue
46 [label="Enter when branch condition else"]; 46 [label="Enter when branch condition else"];
47 [label="Exit when branch condition"]; 47 [label="Exit when branch condition"];
} }
48 [label="Enter when branch result"]; 48 [label="Enter when branch result"];
subgraph cluster_13 { subgraph cluster_13 {
color=blue color=blue
49 [label="Enter block"]; 49 [label="Enter block"];
50 [label="Access variable R|<local>/x|"]; 50 [label="Access variable R|<local>/x|"];
51 [label="Access variable R|kotlin/String.length|"]; 51 [label="Access variable R|kotlin/String.length|"];
52 [label="Access variable R|<local>/x|"]; 52 [label="Access variable R|<local>/x|"];
53 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 53 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
54 [label="Exit block"]; 54 [label="Exit block"];
} }
55 [label="Exit when branch result"]; 55 [label="Exit when branch result"];
56 [label="Enter when branch result"]; 56 [label="Enter when branch result"];
subgraph cluster_14 { subgraph cluster_14 {
color=blue color=blue
57 [label="Enter block"]; 57 [label="Enter block"];
58 [label="Exit block"]; 58 [label="Exit block"];
} }
59 [label="Exit when branch result"]; 59 [label="Exit when branch result"];
60 [label="Enter when branch result"]; 60 [label="Enter when branch result"];
subgraph cluster_15 { subgraph cluster_15 {
color=blue color=blue
61 [label="Enter block"]; 61 [label="Enter block"];
62 [label="Exit block"]; 62 [label="Exit block"];
} }
63 [label="Exit when branch result"]; 63 [label="Exit when branch result"];
64 [label="Exit when"]; 64 [label="Exit when"];
}
65 [label="Exit function test_3" style="filled" fillcolor=red];
} }
65 [label="Exit function test_3" style="filled" fillcolor=red];
}
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {60 42}; 41 -> {60 42};
42 -> {43}; 42 -> {43};
43 -> {44}; 43 -> {44};
44 -> {45}; 44 -> {45};
45 -> {56 46}; 45 -> {56 46};
46 -> {47}; 46 -> {47};
47 -> {48}; 47 -> {48};
48 -> {49}; 48 -> {49};
49 -> {50}; 49 -> {50};
50 -> {51}; 50 -> {51};
51 -> {52}; 51 -> {52};
52 -> {53}; 52 -> {53};
53 -> {54}; 53 -> {54};
54 -> {55}; 54 -> {55};
55 -> {64}; 55 -> {64};
56 -> {57}; 56 -> {57};
57 -> {58}; 57 -> {58};
58 -> {59}; 58 -> {59};
59 -> {64}; 59 -> {64};
60 -> {61}; 60 -> {61};
61 -> {62}; 61 -> {62};
62 -> {63}; 62 -> {63};
63 -> {64}; 63 -> {64};
64 -> {65}; 64 -> {65};
} }
@@ -1,107 +1,107 @@
digraph smartcastAfterReassignment_kt { digraph smartcastAfterReassignment_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
1 [label="Const: Int(1)"]; 1 [label="Const: Int(1)"];
2 [label="Variable declaration: lvar x: R|kotlin/Any|"]; 2 [label="Variable declaration: lvar x: R|kotlin/Any|"];
3 [label="Const: String()"]; 3 [label="Const: String()"];
4 [label="Assignmenet: R|<local>/x|"]; 4 [label="Assignmenet: R|<local>/x|"];
5 [label="Access variable R|<local>/x|"]; 5 [label="Access variable R|<local>/x|"];
6 [label="Access variable R|kotlin/String.length|"]; 6 [label="Access variable R|kotlin/String.length|"];
7 [label="Exit function test_1" style="filled" fillcolor=red]; 7 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
subgraph cluster_1 {
color=red
8 [label="Enter function test_2" style="filled" fillcolor=red];
9 [label="Const: Null(null)"];
10 [label="Variable declaration: lvar x: R|kotlin/String?|"];
subgraph cluster_2 {
color=blue
11 [label="Enter when"];
subgraph cluster_3 {
color=blue
12 [label="Enter when branch condition "];
13 [label="Access variable R|<local>/x|"];
14 [label="Const: Null(null)"];
15 [label="Operator =="];
16 [label="Exit when branch condition"];
}
17 [label="Synthetic else branch"];
18 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
19 [label="Enter block"];
20 [label="Const: String()"];
21 [label="Assignmenet: R|<local>/x|"];
22 [label="Exit block"];
}
23 [label="Exit when branch result"];
24 [label="Exit when"];
} }
25 [label="Access variable R|<local>/x|"];
26 [label="Access variable R|kotlin/String.length|"];
27 [label="Exit function test_2" style="filled" fillcolor=red];
}
8 -> {9}; 0 -> {1};
9 -> {10}; 1 -> {2};
10 -> {11}; 2 -> {3};
11 -> {12}; 3 -> {4};
12 -> {13}; 4 -> {5};
13 -> {14}; 5 -> {6};
14 -> {15}; 6 -> {7};
15 -> {16};
16 -> {18 17};
17 -> {24};
18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
subgraph cluster_5 { subgraph cluster_1 {
color=red color=red
28 [label="Enter function test_3" style="filled" fillcolor=red]; 8 [label="Enter function test_2" style="filled" fillcolor=red];
29 [label="Const: Null(null)"]; 9 [label="Const: Null(null)"];
30 [label="Variable declaration: lvar x: R|kotlin/String?|"]; 10 [label="Variable declaration: lvar x: R|kotlin/String?|"];
31 [label="Const: String()"]; subgraph cluster_2 {
32 [label="Assignmenet: R|<local>/x|"]; color=blue
33 [label="Access variable R|<local>/x|"]; 11 [label="Enter when"];
34 [label="Access variable R|kotlin/String.length|"]; subgraph cluster_3 {
35 [label="Const: Null(null)"]; color=blue
36 [label="Assignmenet: R|<local>/x|"]; 12 [label="Enter when branch condition "];
37 [label="Access variable R|<local>/x|"]; 13 [label="Access variable R|<local>/x|"];
38 [label="Access variable <Unresolved name: length>#"]; 14 [label="Const: Null(null)"];
39 [label="Exit function test_3" style="filled" fillcolor=red]; 15 [label="Operator =="];
} 16 [label="Exit when branch condition"];
}
17 [label="Synthetic else branch"];
18 [label="Enter when branch result"];
subgraph cluster_4 {
color=blue
19 [label="Enter block"];
20 [label="Const: String()"];
21 [label="Assignmenet: R|<local>/x|"];
22 [label="Exit block"];
}
23 [label="Exit when branch result"];
24 [label="Exit when"];
}
25 [label="Access variable R|<local>/x|"];
26 [label="Access variable R|kotlin/String.length|"];
27 [label="Exit function test_2" style="filled" fillcolor=red];
}
28 -> {29}; 8 -> {9};
29 -> {30}; 9 -> {10};
30 -> {31}; 10 -> {11};
31 -> {32}; 11 -> {12};
32 -> {33}; 12 -> {13};
33 -> {34}; 13 -> {14};
34 -> {35}; 14 -> {15};
35 -> {36}; 15 -> {16};
36 -> {37}; 16 -> {18 17};
37 -> {38}; 17 -> {24};
38 -> {39}; 18 -> {19};
19 -> {20};
20 -> {21};
21 -> {22};
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
subgraph cluster_5 {
color=red
28 [label="Enter function test_3" style="filled" fillcolor=red];
29 [label="Const: Null(null)"];
30 [label="Variable declaration: lvar x: R|kotlin/String?|"];
31 [label="Const: String()"];
32 [label="Assignmenet: R|<local>/x|"];
33 [label="Access variable R|<local>/x|"];
34 [label="Access variable R|kotlin/String.length|"];
35 [label="Const: Null(null)"];
36 [label="Assignmenet: R|<local>/x|"];
37 [label="Access variable R|<local>/x|"];
38 [label="Access variable <Unresolved name: length>#"];
39 [label="Exit function test_3" style="filled" fillcolor=red];
}
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
} }
@@ -1,78 +1,78 @@
digraph smartcastFromArgument_kt { digraph smartcastFromArgument_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function foo" style="filled" fillcolor=red]; 0 [label="Enter function foo" style="filled" fillcolor=red];
1 [label="Exit function foo" style="filled" fillcolor=red]; 1 [label="Exit function foo" style="filled" fillcolor=red];
} }
0 -> {1}; 0 -> {1};
subgraph cluster_1 { subgraph cluster_1 {
color=red color=red
2 [label="Enter function takeA" style="filled" fillcolor=red]; 2 [label="Enter function takeA" style="filled" fillcolor=red];
3 [label="Const: Boolean(true)"]; 3 [label="Const: Boolean(true)"];
4 [label="Jump: ^takeA Boolean(true)"]; 4 [label="Jump: ^takeA Boolean(true)"];
5 [label="Stub" style="filled" fillcolor=gray]; 5 [label="Stub" style="filled" fillcolor=gray];
6 [label="Exit function takeA" style="filled" fillcolor=red]; 6 [label="Exit function takeA" style="filled" fillcolor=red];
} }
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4};
4 -> {6}; 4 -> {6};
4 -> {5} [style=dotted]; 4 -> {5} [style=dotted];
5 -> {6} [style=dotted]; 5 -> {6} [style=dotted];
subgraph cluster_2 { subgraph cluster_2 {
color=red color=red
7 [label="Enter function test" style="filled" fillcolor=red]; 7 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_3 { subgraph cluster_3 {
color=blue
8 [label="Enter when"];
subgraph cluster_4 {
color=blue
9 [label="Enter when branch condition "];
subgraph cluster_5 {
color=blue
10 [label="Enter when"];
11 [label="Access variable R|<local>/a|"];
12 [label="Type operator: a as? A"];
13 [label="Variable declaration: lval <elvis>: R|A?|"];
subgraph cluster_6 {
color=blue color=blue
14 [label="Enter when branch condition "]; 8 [label="Enter when"];
15 [label="Const: Null(null)"]; subgraph cluster_4 {
16 [label="Operator =="]; color=blue
17 [label="Exit when branch condition"]; 9 [label="Enter when branch condition "];
} subgraph cluster_5 {
subgraph cluster_7 { color=blue
color=blue 10 [label="Enter when"];
18 [label="Enter when branch condition else"]; 11 [label="Access variable R|<local>/a|"];
19 [label="Exit when branch condition"]; 12 [label="Type operator: a as? A"];
} 13 [label="Variable declaration: lval <elvis>: R|A?|"];
20 [label="Enter when branch result"]; subgraph cluster_6 {
subgraph cluster_8 { color=blue
color=blue 14 [label="Enter when branch condition "];
21 [label="Enter block"]; 15 [label="Const: Null(null)"];
22 [label="Access variable R|<local>/<elvis>|"]; 16 [label="Operator =="];
23 [label="Exit block"]; 17 [label="Exit when branch condition"];
} }
24 [label="Exit when branch result"]; subgraph cluster_7 {
25 [label="Enter when branch result"]; color=blue
subgraph cluster_9 { 18 [label="Enter when branch condition else"];
color=blue 19 [label="Exit when branch condition"];
26 [label="Enter block"]; }
27 [label="Jump: ^test Unit"]; 20 [label="Enter when branch result"];
28 [label="Stub" style="filled" fillcolor=gray]; subgraph cluster_8 {
29 [label="Exit block" style="filled" fillcolor=gray]; color=blue
} 21 [label="Enter block"];
30 [label="Exit when branch result" style="filled" fillcolor=gray]; 22 [label="Access variable R|<local>/<elvis>|"];
31 [label="Exit when"]; 23 [label="Exit block"];
} }
32 [label="Function call: R|/takeA|(when (lval <elvis>: R|A?| = (R|<local>/a| as? R|A|)) { 24 [label="Exit when branch result"];
25 [label="Enter when branch result"];
subgraph cluster_9 {
color=blue
26 [label="Enter block"];
27 [label="Jump: ^test Unit"];
28 [label="Stub" style="filled" fillcolor=gray];
29 [label="Exit block" style="filled" fillcolor=gray];
}
30 [label="Exit when branch result" style="filled" fillcolor=gray];
31 [label="Exit when"];
}
32 [label="Function call: R|/takeA|(when (lval <elvis>: R|A?| = (R|<local>/a| as? R|A|)) {
==($subj$, Null(null)) -> { ==($subj$, Null(null)) -> {
^test Unit ^test Unit
} }
@@ -81,58 +81,58 @@ digraph smartcastFromArgument_kt {
} }
} }
)"]; )"];
33 [label="Exit when branch condition"]; 33 [label="Exit when branch condition"];
} }
34 [label="Synthetic else branch"]; 34 [label="Synthetic else branch"];
35 [label="Enter when branch result"]; 35 [label="Enter when branch result"];
subgraph cluster_10 { subgraph cluster_10 {
color=blue color=blue
36 [label="Enter block"]; 36 [label="Enter block"];
37 [label="Access variable R|<local>/a|"]; 37 [label="Access variable R|<local>/a|"];
38 [label="Function call: R|<local>/a|.R|/A.foo|()"]; 38 [label="Function call: R|<local>/a|.R|/A.foo|()"];
39 [label="Exit block"]; 39 [label="Exit block"];
} }
40 [label="Exit when branch result"]; 40 [label="Exit when branch result"];
41 [label="Exit when"]; 41 [label="Exit when"];
}
42 [label="Exit function test" style="filled" fillcolor=red];
} }
42 [label="Exit function test" style="filled" fillcolor=red];
}
7 -> {8}; 7 -> {8};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
14 -> {15}; 14 -> {15};
15 -> {16}; 15 -> {16};
16 -> {17}; 16 -> {17};
17 -> {25 18}; 17 -> {25 18};
18 -> {19}; 18 -> {19};
19 -> {20}; 19 -> {20};
20 -> {21}; 20 -> {21};
21 -> {22}; 21 -> {22};
22 -> {23}; 22 -> {23};
23 -> {24}; 23 -> {24};
24 -> {31}; 24 -> {31};
25 -> {26}; 25 -> {26};
26 -> {27}; 26 -> {27};
27 -> {42}; 27 -> {42};
27 -> {28} [style=dotted]; 27 -> {28} [style=dotted];
28 -> {29} [style=dotted]; 28 -> {29} [style=dotted];
29 -> {30} [style=dotted]; 29 -> {30} [style=dotted];
30 -> {31} [style=dotted]; 30 -> {31} [style=dotted];
31 -> {32}; 31 -> {32};
32 -> {33}; 32 -> {33};
33 -> {35 34}; 33 -> {35 34};
34 -> {41}; 34 -> {41};
35 -> {36}; 35 -> {36};
36 -> {37}; 36 -> {37};
37 -> {38}; 37 -> {38};
38 -> {39}; 38 -> {39};
39 -> {40}; 39 -> {40};
40 -> {41}; 40 -> {41};
41 -> {42}; 41 -> {42};
} }
@@ -1,49 +1,49 @@
digraph smartcastOnLambda_kt { digraph smartcastOnLambda_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test" style="filled" fillcolor=red]; 0 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
1 [label="Enter when"]; 1 [label="Enter when"];
subgraph cluster_2 { subgraph cluster_2 {
color=blue color=blue
2 [label="Enter when branch condition "]; 2 [label="Enter when branch condition "];
3 [label="Access variable R|<local>/func|"]; 3 [label="Access variable R|<local>/func|"];
4 [label="Const: Null(null)"]; 4 [label="Const: Null(null)"];
5 [label="Operator !="]; 5 [label="Operator !="];
6 [label="Exit when branch condition"]; 6 [label="Exit when branch condition"];
} }
7 [label="Synthetic else branch"]; 7 [label="Synthetic else branch"];
8 [label="Enter when branch result"]; 8 [label="Enter when branch result"];
subgraph cluster_3 { subgraph cluster_3 {
color=blue color=blue
9 [label="Enter block"]; 9 [label="Enter block"];
10 [label="Function call: R|<local>/func|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 10 [label="Function call: R|<local>/func|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
11 [label="Exit block"]; 11 [label="Exit block"];
} }
12 [label="Exit when branch result"]; 12 [label="Exit when branch result"];
13 [label="Exit when"]; 13 [label="Exit when"];
}
14 [label="Exit function test" style="filled" fillcolor=red];
} }
14 [label="Exit function test" style="filled" fillcolor=red];
}
0 -> {1}; 0 -> {1};
1 -> {2}; 1 -> {2};
2 -> {3}; 2 -> {3};
3 -> {4}; 3 -> {4};
4 -> {5}; 4 -> {5};
5 -> {6}; 5 -> {6};
6 -> {8 7}; 6 -> {8 7};
7 -> {13}; 7 -> {13};
8 -> {9}; 8 -> {9};
9 -> {10}; 9 -> {10};
10 -> {11}; 10 -> {11};
11 -> {12}; 11 -> {12};
12 -> {13}; 12 -> {13};
13 -> {14}; 13 -> {14};
} }
File diff suppressed because it is too large Load Diff
@@ -1,259 +1,259 @@
digraph callsInPlace_kt { digraph callsInPlace_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test" style="filled" fillcolor=red]; 0 [label="Enter function test" style="filled" fillcolor=red];
1 [label="Variable declaration: lval x: R|kotlin/Int|"]; 1 [label="Variable declaration: lval x: R|kotlin/Int|"];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
2 [label="Enter function anonymousFunction"]; 2 [label="Enter function anonymousFunction"];
3 [label="Const: Int(1)"]; 3 [label="Const: Int(1)"];
4 [label="Assignmenet: R|<local>/x|"]; 4 [label="Assignmenet: R|<local>/x|"];
5 [label="Exit function anonymousFunction"]; 5 [label="Exit function anonymousFunction"];
} }
6 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=EXACTLY_ONCE> { 6 [label="Function call: R|kotlin/run|<R|kotlin/Unit|>(<L> = run@fun <anonymous>(): R|kotlin/Unit| <kind=EXACTLY_ONCE> {
R|<local>/x| = Int(1) R|<local>/x| = Int(1)
} }
)"]; )"];
7 [label="Access variable R|<local>/x|"]; 7 [label="Access variable R|<local>/x|"];
8 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"]; 8 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
9 [label="Exit function test" style="filled" fillcolor=red]; 9 [label="Exit function test" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
subgraph cluster_2 {
color=red
10 [label="Enter function test_2" style="filled" fillcolor=red];
11 [label="Const: Int(10)"];
subgraph cluster_3 {
color=blue
12 [label="Enter function anonymousFunction"];
13 [label="Const: String(test_2)"];
14 [label="Exit function anonymousFunction"];
} }
15 [label="Function call: R|kotlin/repeat|(Int(10), <L> = repeat@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Unit| <kind=UNKNOWN> {
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
subgraph cluster_2 {
color=red
10 [label="Enter function test_2" style="filled" fillcolor=red];
11 [label="Const: Int(10)"];
subgraph cluster_3 {
color=blue
12 [label="Enter function anonymousFunction"];
13 [label="Const: String(test_2)"];
14 [label="Exit function anonymousFunction"];
}
15 [label="Function call: R|kotlin/repeat|(Int(10), <L> = repeat@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Unit| <kind=UNKNOWN> {
String(test_2) String(test_2)
} }
)"]; )"];
16 [label="Exit function test_2" style="filled" fillcolor=red]; 16 [label="Exit function test_2" style="filled" fillcolor=red];
}
10 -> {11};
11 -> {12};
12 -> {14 13};
13 -> {14};
14 -> {12 15};
15 -> {16};
subgraph cluster_4 {
color=red
17 [label="Enter function test_3" style="filled" fillcolor=red];
18 [label="Const: Int(10)"];
subgraph cluster_5 {
color=blue
19 [label="Enter function anonymousFunction"];
20 [label="Const: String(test_3)"];
21 [label="Exit function anonymousFunction"];
} }
22 [label="Function call: R|kotlin/repeat|(action = repeat@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Unit| <kind=UNKNOWN> {
10 -> {11};
11 -> {12};
12 -> {14 13};
13 -> {14};
14 -> {12 15};
15 -> {16};
subgraph cluster_4 {
color=red
17 [label="Enter function test_3" style="filled" fillcolor=red];
18 [label="Const: Int(10)"];
subgraph cluster_5 {
color=blue
19 [label="Enter function anonymousFunction"];
20 [label="Const: String(test_3)"];
21 [label="Exit function anonymousFunction"];
}
22 [label="Function call: R|kotlin/repeat|(action = repeat@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Unit| <kind=UNKNOWN> {
String(test_3) String(test_3)
} }
, times = Int(10))"]; , times = Int(10))"];
23 [label="Exit function test_3" style="filled" fillcolor=red]; 23 [label="Exit function test_3" style="filled" fillcolor=red];
}
17 -> {18};
18 -> {19};
19 -> {21 20};
20 -> {21};
21 -> {19 22};
22 -> {23};
subgraph cluster_6 {
color=red
24 [label="Enter function test_4" style="filled" fillcolor=red];
25 [label="Const: Int(1)"];
subgraph cluster_7 {
color=blue
26 [label="Enter function anonymousFunction"];
27 [label="Const: String(test_4)"];
28 [label="Access variable R|<local>/it|"];
29 [label="Const: Int(0)"];
30 [label="Operator >"];
31 [label="Exit function anonymousFunction"];
} }
32 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(<L> = takeUnless@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Boolean| <kind=EXACTLY_ONCE> {
17 -> {18};
18 -> {19};
19 -> {21 20};
20 -> {21};
21 -> {19 22};
22 -> {23};
subgraph cluster_6 {
color=red
24 [label="Enter function test_4" style="filled" fillcolor=red];
25 [label="Const: Int(1)"];
subgraph cluster_7 {
color=blue
26 [label="Enter function anonymousFunction"];
27 [label="Const: String(test_4)"];
28 [label="Access variable R|<local>/it|"];
29 [label="Const: Int(0)"];
30 [label="Operator >"];
31 [label="Exit function anonymousFunction"];
}
32 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(<L> = takeUnless@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Boolean| <kind=EXACTLY_ONCE> {
String(test_4) String(test_4)
>(R|<local>/it|, Int(0)) >(R|<local>/it|, Int(0))
} }
)"]; )"];
33 [label="Exit function test_4" style="filled" fillcolor=red]; 33 [label="Exit function test_4" style="filled" fillcolor=red];
}
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
subgraph cluster_8 {
color=red
34 [label="Enter function test_5" style="filled" fillcolor=red];
35 [label="Const: Int(1)"];
subgraph cluster_9 {
color=blue
36 [label="Enter function anonymousFunction"];
37 [label="Const: String(test_5)"];
38 [label="Access variable R|<local>/it|"];
39 [label="Const: Int(0)"];
40 [label="Operator >"];
41 [label="Exit function anonymousFunction"];
} }
42 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(predicate = takeUnless@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Boolean| <kind=EXACTLY_ONCE> {
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
subgraph cluster_8 {
color=red
34 [label="Enter function test_5" style="filled" fillcolor=red];
35 [label="Const: Int(1)"];
subgraph cluster_9 {
color=blue
36 [label="Enter function anonymousFunction"];
37 [label="Const: String(test_5)"];
38 [label="Access variable R|<local>/it|"];
39 [label="Const: Int(0)"];
40 [label="Operator >"];
41 [label="Exit function anonymousFunction"];
}
42 [label="Function call: Int(1).R|kotlin/takeUnless|<R|kotlin/Int|>(predicate = takeUnless@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/Boolean| <kind=EXACTLY_ONCE> {
String(test_5) String(test_5)
>(R|<local>/it|, Int(0)) >(R|<local>/it|, Int(0))
} }
)"]; )"];
43 [label="Exit function test_5" style="filled" fillcolor=red]; 43 [label="Exit function test_5" style="filled" fillcolor=red];
}
34 -> {35};
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
subgraph cluster_10 {
color=red
44 [label="Enter function myRun" style="filled" fillcolor=red];
45 [label="Function call: R|<local>/block1|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
46 [label="Function call: R|<local>/block2|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
47 [label="Exit function myRun" style="filled" fillcolor=red];
}
44 -> {45};
45 -> {46};
46 -> {47};
subgraph cluster_11 {
color=red
48 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
49 [label="Enter function anonymousFunction"];
50 [label="Const: String(test_6_1)"];
51 [label="Exit function anonymousFunction"];
} }
subgraph cluster_13 {
color=blue 34 -> {35};
52 [label="Enter function anonymousFunction"]; 35 -> {36};
53 [label="Const: String(test_6_2)"]; 36 -> {37};
54 [label="Exit function anonymousFunction"]; 37 -> {38};
38 -> {39};
39 -> {40};
40 -> {41};
41 -> {42};
42 -> {43};
subgraph cluster_10 {
color=red
44 [label="Enter function myRun" style="filled" fillcolor=red];
45 [label="Function call: R|<local>/block1|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
46 [label="Function call: R|<local>/block2|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
47 [label="Exit function myRun" style="filled" fillcolor=red];
} }
55 [label="Function call: R|/myRun|(myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
44 -> {45};
45 -> {46};
46 -> {47};
subgraph cluster_11 {
color=red
48 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_12 {
color=blue
49 [label="Enter function anonymousFunction"];
50 [label="Const: String(test_6_1)"];
51 [label="Exit function anonymousFunction"];
}
subgraph cluster_13 {
color=blue
52 [label="Enter function anonymousFunction"];
53 [label="Const: String(test_6_2)"];
54 [label="Exit function anonymousFunction"];
}
55 [label="Function call: R|/myRun|(myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
String(test_6_1) String(test_6_1)
} }
, <L> = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { , <L> = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
String(test_6_2) String(test_6_2)
} }
)"]; )"];
56 [label="Exit function test_6" style="filled" fillcolor=red]; 56 [label="Exit function test_6" style="filled" fillcolor=red];
}
48 -> {49};
49 -> {51 50};
50 -> {51};
51 -> {49 52};
52 -> {54 53};
53 -> {54};
54 -> {52 55};
55 -> {56};
subgraph cluster_14 {
color=red
57 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
58 [label="Enter function anonymousFunction"];
59 [label="Const: String(test_7_2)"];
60 [label="Exit function anonymousFunction"];
} }
subgraph cluster_16 {
color=blue 48 -> {49};
61 [label="Enter function anonymousFunction"]; 49 -> {51 50};
62 [label="Const: String(test_7_1)"]; 50 -> {51};
63 [label="Exit function anonymousFunction"]; 51 -> {49 52};
} 52 -> {54 53};
64 [label="Function call: R|/myRun|(block2 = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { 53 -> {54};
54 -> {52 55};
55 -> {56};
subgraph cluster_14 {
color=red
57 [label="Enter function test_7" style="filled" fillcolor=red];
subgraph cluster_15 {
color=blue
58 [label="Enter function anonymousFunction"];
59 [label="Const: String(test_7_2)"];
60 [label="Exit function anonymousFunction"];
}
subgraph cluster_16 {
color=blue
61 [label="Enter function anonymousFunction"];
62 [label="Const: String(test_7_1)"];
63 [label="Exit function anonymousFunction"];
}
64 [label="Function call: R|/myRun|(block2 = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
String(test_7_2) String(test_7_2)
} }
, block1 = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> { , block1 = myRun@fun <anonymous>(): R|kotlin/Unit| <kind=UNKNOWN> {
String(test_7_1) String(test_7_1)
} }
)"]; )"];
65 [label="Exit function test_7" style="filled" fillcolor=red]; 65 [label="Exit function test_7" style="filled" fillcolor=red];
} }
57 -> {58}; 57 -> {58};
58 -> {60 59}; 58 -> {60 59};
59 -> {60}; 59 -> {60};
60 -> {58 61}; 60 -> {58 61};
61 -> {63 62}; 61 -> {63 62};
62 -> {63}; 62 -> {63};
63 -> {61 64}; 63 -> {61 64};
64 -> {65}; 64 -> {65};
subgraph cluster_17 { subgraph cluster_17 {
color=red color=red
66 [label="Enter function myDummyRun" style="filled" fillcolor=red]; 66 [label="Enter function myDummyRun" style="filled" fillcolor=red];
67 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"]; 67 [label="Function call: R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|kotlin/Unit|>|()"];
68 [label="Exit function myDummyRun" style="filled" fillcolor=red]; 68 [label="Exit function myDummyRun" style="filled" fillcolor=red];
} }
66 -> {67}; 66 -> {67};
67 -> {68}; 67 -> {68};
subgraph cluster_18 { subgraph cluster_18 {
color=red color=red
69 [label="Enter function test_8" style="filled" fillcolor=red]; 69 [label="Enter function test_8" style="filled" fillcolor=red];
70 [label="Function call: R|/myDummyRun|(<L> = myDummyRun@fun <anonymous>(): R|kotlin/Unit| { 70 [label="Function call: R|/myDummyRun|(<L> = myDummyRun@fun <anonymous>(): R|kotlin/Unit| {
String(test_8) String(test_8)
} }
)"]; )"];
71 [label="Exit function test_8" style="filled" fillcolor=red]; 71 [label="Exit function test_8" style="filled" fillcolor=red];
} }
69 -> {70}; 69 -> {70};
70 -> {71}; 70 -> {71};
subgraph cluster_19 { subgraph cluster_19 {
color=red color=red
72 [label="Enter function anonymousFunction" style="filled" fillcolor=red]; 72 [label="Enter function anonymousFunction" style="filled" fillcolor=red];
73 [label="Const: String(test_8)"]; 73 [label="Const: String(test_8)"];
74 [label="Exit function anonymousFunction" style="filled" fillcolor=red]; 74 [label="Exit function anonymousFunction" style="filled" fillcolor=red];
} }
72 -> {73}; 72 -> {73};
73 -> {74}; 73 -> {74};
} }
@@ -1,345 +1,345 @@
digraph conditionalEffects_kt { digraph conditionalEffects_kt {
graph [splines=ortho nodesep=3] graph [splines=ortho nodesep=3]
node [shape=box penwidth=2] node [shape=box penwidth=2]
edge [penwidth=2] edge [penwidth=2]
subgraph cluster_0 { subgraph cluster_0 {
color=red color=red
0 [label="Enter function test_1" style="filled" fillcolor=red]; 0 [label="Enter function test_1" style="filled" fillcolor=red];
1 [label="Access variable R|<local>/x|"]; 1 [label="Access variable R|<local>/x|"];
2 [label="Type operator: x is Int"]; 2 [label="Type operator: x is Int"];
3 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/Int|))"]; 3 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/Int|))"];
subgraph cluster_1 { subgraph cluster_1 {
color=blue color=blue
4 [label="Enter contract"]; 4 [label="Enter contract"];
5 [label="Access variable R|<local>/x|"]; 5 [label="Access variable R|<local>/x|"];
6 [label="Type operator: x is Int"]; 6 [label="Type operator: x is Int"];
7 [label="Exit contract"]; 7 [label="Exit contract"];
}
8 [label="Access variable R|<local>/x|"];
9 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
10 [label="Exit function test_1" style="filled" fillcolor=red];
}
0 -> {1};
1 -> {2};
2 -> {3};
3 -> {4};
4 -> {5};
5 -> {6};
6 -> {7};
7 -> {8};
8 -> {9};
9 -> {10};
subgraph cluster_2 {
color=red
11 [label="Enter function test_2" style="filled" fillcolor=red];
12 [label="Access variable R|<local>/x|"];
13 [label="Function call: R|kotlin/requireNotNull|<R|kotlin/String|>(R|<local>/x|)"];
subgraph cluster_3 {
color=blue
14 [label="Enter contract"];
15 [label="Access variable R|<local>/x|"];
16 [label="Const: Null(null)"];
17 [label="Operator !="];
18 [label="Exit contract"];
}
19 [label="Access variable R|<local>/x|"];
20 [label="Access variable R|kotlin/String.length|"];
21 [label="Exit function test_2" style="filled" fillcolor=red];
}
11 -> {12};
12 -> {13};
13 -> {14};
14 -> {15};
15 -> {16};
16 -> {17};
17 -> {18};
18 -> {19};
19 -> {20};
20 -> {21};
subgraph cluster_4 {
color=red
22 [label="Enter function test_3" style="filled" fillcolor=red];
23 [label="Access variable R|<local>/x|"];
24 [label="Const: Null(null)"];
25 [label="Operator !="];
26 [label="Function call: R|kotlin/require|(!=(R|<local>/x|, Null(null)))"];
subgraph cluster_5 {
color=blue
27 [label="Enter contract"];
28 [label="Access variable R|<local>/x|"];
29 [label="Const: Null(null)"];
30 [label="Operator !="];
31 [label="Exit contract"];
}
32 [label="Access variable R|<local>/x|"];
33 [label="Access variable R|kotlin/String.length|"];
34 [label="Exit function test_3" style="filled" fillcolor=red];
}
22 -> {23};
23 -> {24};
24 -> {25};
25 -> {26};
26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
subgraph cluster_6 {
color=red
35 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
36 [label="Enter &&"];
37 [label="Access variable R|<local>/x|"];
38 [label="Type operator: x is String"];
39 [label="Exit left part of &&"];
40 [label="Enter right part of &&"];
41 [label="Access variable R|<local>/y|"];
42 [label="Const: Null(null)"];
43 [label="Operator !="];
44 [label="Exit &&"];
}
45 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/String|) && !=(R|<local>/y|, Null(null)))"];
subgraph cluster_8 {
color=blue
46 [label="Enter contract"];
subgraph cluster_9 {
color=blue
47 [label="Enter &&"];
48 [label="Access variable R|<local>/x|"];
49 [label="Type operator: x is String"];
50 [label="Exit left part of &&"];
51 [label="Enter right part of &&"];
52 [label="Access variable R|<local>/y|"];
53 [label="Const: Null(null)"];
54 [label="Operator !="];
55 [label="Exit &&"];
}
56 [label="Exit contract"];
}
57 [label="Access variable R|<local>/x|"];
58 [label="Access variable R|kotlin/String.length|"];
59 [label="Access variable R|<local>/y|"];
60 [label="Access variable R|kotlin/String.length|"];
61 [label="Exit function test_4" style="filled" fillcolor=red];
}
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {44 40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {55 51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
subgraph cluster_10 {
color=red
62 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
63 [label="Enter when"];
subgraph cluster_12 {
color=blue
64 [label="Enter when branch condition "];
65 [label="Access variable R|<local>/b|"];
66 [label="Exit when branch condition"];
}
subgraph cluster_13 {
color=blue
67 [label="Enter when branch condition else"];
68 [label="Exit when branch condition"];
}
69 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
70 [label="Enter block"];
71 [label="Access variable R|<local>/x|"];
72 [label="Access variable <Unresolved name: length>#"];
73 [label="Exit block"];
}
74 [label="Exit when branch result"];
75 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
76 [label="Enter block"];
77 [label="Access variable R|<local>/x|"];
78 [label="Type operator: x is String"];
79 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/String|))"];
subgraph cluster_16 {
color=blue
80 [label="Enter contract"];
81 [label="Access variable R|<local>/x|"];
82 [label="Type operator: x is String"];
83 [label="Exit contract"];
} }
84 [label="Access variable R|<local>/x|"]; 8 [label="Access variable R|<local>/x|"];
85 [label="Access variable R|kotlin/String.length|"]; 9 [label="Function call: R|<local>/x|.R|kotlin/Int.inc|()"];
86 [label="Exit block"]; 10 [label="Exit function test_1" style="filled" fillcolor=red];
}
87 [label="Exit when branch result"];
88 [label="Exit when"];
} }
89 [label="Access variable R|<local>/x|"];
90 [label="Access variable <Unresolved name: length>#"];
91 [label="Exit function test_5" style="filled" fillcolor=red];
}
62 -> {63}; 0 -> {1};
63 -> {64}; 1 -> {2};
64 -> {65}; 2 -> {3};
65 -> {66}; 3 -> {4};
66 -> {75 67}; 4 -> {5};
67 -> {68}; 5 -> {6};
68 -> {69}; 6 -> {7};
69 -> {70}; 7 -> {8};
70 -> {71}; 8 -> {9};
71 -> {72}; 9 -> {10};
72 -> {73};
73 -> {74};
74 -> {88};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
subgraph cluster_17 { subgraph cluster_2 {
color=red color=red
92 [label="Enter function test_6" style="filled" fillcolor=red]; 11 [label="Enter function test_2" style="filled" fillcolor=red];
subgraph cluster_18 { 12 [label="Access variable R|<local>/x|"];
color=blue 13 [label="Function call: R|kotlin/requireNotNull|<R|kotlin/String|>(R|<local>/x|)"];
93 [label="Enter when"]; subgraph cluster_3 {
subgraph cluster_19 { color=blue
color=blue 14 [label="Enter contract"];
94 [label="Enter when branch condition "]; 15 [label="Access variable R|<local>/x|"];
95 [label="Access variable R|<local>/b|"]; 16 [label="Const: Null(null)"];
96 [label="Exit when branch condition"]; 17 [label="Operator !="];
} 18 [label="Exit contract"];
subgraph cluster_20 {
color=blue
97 [label="Enter when branch condition else"];
98 [label="Exit when branch condition"];
}
99 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
100 [label="Enter block"];
101 [label="Access variable R|<local>/x|"];
102 [label="Type operator: x is String"];
103 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/String|))"];
subgraph cluster_22 {
color=blue
104 [label="Enter contract"];
105 [label="Access variable R|<local>/x|"];
106 [label="Type operator: x is String"];
107 [label="Exit contract"];
} }
108 [label="Access variable R|<local>/x|"]; 19 [label="Access variable R|<local>/x|"];
109 [label="Access variable R|kotlin/String.length|"]; 20 [label="Access variable R|kotlin/String.length|"];
110 [label="Exit block"]; 21 [label="Exit function test_2" style="filled" fillcolor=red];
}
111 [label="Exit when branch result"];
112 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
113 [label="Enter block"];
114 [label="Access variable R|<local>/x|"];
115 [label="Type operator: x is String"];
116 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/String|))"];
subgraph cluster_24 {
color=blue
117 [label="Enter contract"];
118 [label="Access variable R|<local>/x|"];
119 [label="Type operator: x is String"];
120 [label="Exit contract"];
}
121 [label="Access variable R|<local>/x|"];
122 [label="Access variable R|kotlin/String.length|"];
123 [label="Exit block"];
}
124 [label="Exit when branch result"];
125 [label="Exit when"];
} }
126 [label="Access variable R|<local>/x|"];
127 [label="Access variable R|kotlin/String.length|"];
128 [label="Exit function test_6" style="filled" fillcolor=red];
}
92 -> {93}; 11 -> {12};
93 -> {94}; 12 -> {13};
94 -> {95}; 13 -> {14};
95 -> {96}; 14 -> {15};
96 -> {112 97}; 15 -> {16};
97 -> {98}; 16 -> {17};
98 -> {99}; 17 -> {18};
99 -> {100}; 18 -> {19};
100 -> {101}; 19 -> {20};
101 -> {102}; 20 -> {21};
102 -> {103};
103 -> {104}; subgraph cluster_4 {
104 -> {105}; color=red
105 -> {106}; 22 [label="Enter function test_3" style="filled" fillcolor=red];
106 -> {107}; 23 [label="Access variable R|<local>/x|"];
107 -> {108}; 24 [label="Const: Null(null)"];
108 -> {109}; 25 [label="Operator !="];
109 -> {110}; 26 [label="Function call: R|kotlin/require|(!=(R|<local>/x|, Null(null)))"];
110 -> {111}; subgraph cluster_5 {
111 -> {125}; color=blue
112 -> {113}; 27 [label="Enter contract"];
113 -> {114}; 28 [label="Access variable R|<local>/x|"];
114 -> {115}; 29 [label="Const: Null(null)"];
115 -> {116}; 30 [label="Operator !="];
116 -> {117}; 31 [label="Exit contract"];
117 -> {118}; }
118 -> {119}; 32 [label="Access variable R|<local>/x|"];
119 -> {120}; 33 [label="Access variable R|kotlin/String.length|"];
120 -> {121}; 34 [label="Exit function test_3" style="filled" fillcolor=red];
121 -> {122}; }
122 -> {123};
123 -> {124}; 22 -> {23};
124 -> {125}; 23 -> {24};
125 -> {126}; 24 -> {25};
126 -> {127}; 25 -> {26};
127 -> {128}; 26 -> {27};
27 -> {28};
28 -> {29};
29 -> {30};
30 -> {31};
31 -> {32};
32 -> {33};
33 -> {34};
subgraph cluster_6 {
color=red
35 [label="Enter function test_4" style="filled" fillcolor=red];
subgraph cluster_7 {
color=blue
36 [label="Enter &&"];
37 [label="Access variable R|<local>/x|"];
38 [label="Type operator: x is String"];
39 [label="Exit left part of &&"];
40 [label="Enter right part of &&"];
41 [label="Access variable R|<local>/y|"];
42 [label="Const: Null(null)"];
43 [label="Operator !="];
44 [label="Exit &&"];
}
45 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/String|) && !=(R|<local>/y|, Null(null)))"];
subgraph cluster_8 {
color=blue
46 [label="Enter contract"];
subgraph cluster_9 {
color=blue
47 [label="Enter &&"];
48 [label="Access variable R|<local>/x|"];
49 [label="Type operator: x is String"];
50 [label="Exit left part of &&"];
51 [label="Enter right part of &&"];
52 [label="Access variable R|<local>/y|"];
53 [label="Const: Null(null)"];
54 [label="Operator !="];
55 [label="Exit &&"];
}
56 [label="Exit contract"];
}
57 [label="Access variable R|<local>/x|"];
58 [label="Access variable R|kotlin/String.length|"];
59 [label="Access variable R|<local>/y|"];
60 [label="Access variable R|kotlin/String.length|"];
61 [label="Exit function test_4" style="filled" fillcolor=red];
}
35 -> {36};
36 -> {37};
37 -> {38};
38 -> {39};
39 -> {44 40};
40 -> {41};
41 -> {42};
42 -> {43};
43 -> {44};
44 -> {45};
45 -> {46};
46 -> {47};
47 -> {48};
48 -> {49};
49 -> {50};
50 -> {55 51};
51 -> {52};
52 -> {53};
53 -> {54};
54 -> {55};
55 -> {56};
56 -> {57};
57 -> {58};
58 -> {59};
59 -> {60};
60 -> {61};
subgraph cluster_10 {
color=red
62 [label="Enter function test_5" style="filled" fillcolor=red];
subgraph cluster_11 {
color=blue
63 [label="Enter when"];
subgraph cluster_12 {
color=blue
64 [label="Enter when branch condition "];
65 [label="Access variable R|<local>/b|"];
66 [label="Exit when branch condition"];
}
subgraph cluster_13 {
color=blue
67 [label="Enter when branch condition else"];
68 [label="Exit when branch condition"];
}
69 [label="Enter when branch result"];
subgraph cluster_14 {
color=blue
70 [label="Enter block"];
71 [label="Access variable R|<local>/x|"];
72 [label="Access variable <Unresolved name: length>#"];
73 [label="Exit block"];
}
74 [label="Exit when branch result"];
75 [label="Enter when branch result"];
subgraph cluster_15 {
color=blue
76 [label="Enter block"];
77 [label="Access variable R|<local>/x|"];
78 [label="Type operator: x is String"];
79 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/String|))"];
subgraph cluster_16 {
color=blue
80 [label="Enter contract"];
81 [label="Access variable R|<local>/x|"];
82 [label="Type operator: x is String"];
83 [label="Exit contract"];
}
84 [label="Access variable R|<local>/x|"];
85 [label="Access variable R|kotlin/String.length|"];
86 [label="Exit block"];
}
87 [label="Exit when branch result"];
88 [label="Exit when"];
}
89 [label="Access variable R|<local>/x|"];
90 [label="Access variable <Unresolved name: length>#"];
91 [label="Exit function test_5" style="filled" fillcolor=red];
}
62 -> {63};
63 -> {64};
64 -> {65};
65 -> {66};
66 -> {75 67};
67 -> {68};
68 -> {69};
69 -> {70};
70 -> {71};
71 -> {72};
72 -> {73};
73 -> {74};
74 -> {88};
75 -> {76};
76 -> {77};
77 -> {78};
78 -> {79};
79 -> {80};
80 -> {81};
81 -> {82};
82 -> {83};
83 -> {84};
84 -> {85};
85 -> {86};
86 -> {87};
87 -> {88};
88 -> {89};
89 -> {90};
90 -> {91};
subgraph cluster_17 {
color=red
92 [label="Enter function test_6" style="filled" fillcolor=red];
subgraph cluster_18 {
color=blue
93 [label="Enter when"];
subgraph cluster_19 {
color=blue
94 [label="Enter when branch condition "];
95 [label="Access variable R|<local>/b|"];
96 [label="Exit when branch condition"];
}
subgraph cluster_20 {
color=blue
97 [label="Enter when branch condition else"];
98 [label="Exit when branch condition"];
}
99 [label="Enter when branch result"];
subgraph cluster_21 {
color=blue
100 [label="Enter block"];
101 [label="Access variable R|<local>/x|"];
102 [label="Type operator: x is String"];
103 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/String|))"];
subgraph cluster_22 {
color=blue
104 [label="Enter contract"];
105 [label="Access variable R|<local>/x|"];
106 [label="Type operator: x is String"];
107 [label="Exit contract"];
}
108 [label="Access variable R|<local>/x|"];
109 [label="Access variable R|kotlin/String.length|"];
110 [label="Exit block"];
}
111 [label="Exit when branch result"];
112 [label="Enter when branch result"];
subgraph cluster_23 {
color=blue
113 [label="Enter block"];
114 [label="Access variable R|<local>/x|"];
115 [label="Type operator: x is String"];
116 [label="Function call: R|kotlin/require|((R|<local>/x| is R|kotlin/String|))"];
subgraph cluster_24 {
color=blue
117 [label="Enter contract"];
118 [label="Access variable R|<local>/x|"];
119 [label="Type operator: x is String"];
120 [label="Exit contract"];
}
121 [label="Access variable R|<local>/x|"];
122 [label="Access variable R|kotlin/String.length|"];
123 [label="Exit block"];
}
124 [label="Exit when branch result"];
125 [label="Exit when"];
}
126 [label="Access variable R|<local>/x|"];
127 [label="Access variable R|kotlin/String.length|"];
128 [label="Exit function test_6" style="filled" fillcolor=red];
}
92 -> {93};
93 -> {94};
94 -> {95};
95 -> {96};
96 -> {112 97};
97 -> {98};
98 -> {99};
99 -> {100};
100 -> {101};
101 -> {102};
102 -> {103};
103 -> {104};
104 -> {105};
105 -> {106};
106 -> {107};
107 -> {108};
108 -> {109};
109 -> {110};
110 -> {111};
111 -> {125};
112 -> {113};
113 -> {114};
114 -> {115};
115 -> {116};
116 -> {117};
117 -> {118};
118 -> {119};
119 -> {120};
120 -> {121};
121 -> {122};
122 -> {123};
123 -> {124};
124 -> {125};
125 -> {126};
126 -> {127};
127 -> {128};
} }
@@ -5,18 +5,20 @@
package org.jetbrains.kotlin.fir package org.jetbrains.kotlin.fir
import junit.framework.TestCase
import org.jetbrains.kotlin.fir.declarations.FirFile import org.jetbrains.kotlin.fir.declarations.FirFile
import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference
import org.jetbrains.kotlin.fir.resolve.dfa.FirControlFlowGraphReferenceImpl import org.jetbrains.kotlin.fir.resolve.dfa.FirControlFlowGraphReferenceImpl
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.* import org.jetbrains.kotlin.fir.resolve.dfa.cfg.CFGNode
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.ControlFlowGraph
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.EdgeKind
import org.jetbrains.kotlin.fir.resolve.dfa.cfg.FirControlFlowGraphRenderVisitor
import org.jetbrains.kotlin.fir.visitors.FirVisitorVoid import org.jetbrains.kotlin.fir.visitors.FirVisitorVoid
import org.jetbrains.kotlin.test.ConfigurationKind import org.jetbrains.kotlin.test.ConfigurationKind
import org.jetbrains.kotlin.test.KotlinTestUtils import org.jetbrains.kotlin.test.KotlinTestUtils
import org.jetbrains.kotlin.test.testFramework.KtUsefulTestCase
import java.io.File import java.io.File
private const val EDGE = " -> "
private const val INDENT = " "
private const val RED = "red"
private const val BLUE = "blue"
/* /*
* For comfort viewing dumps of control flow graph you can setup external tool in IDEA that opens .dot files * For comfort viewing dumps of control flow graph you can setup external tool in IDEA that opens .dot files
@@ -43,122 +45,53 @@ abstract class AbstractFirDiagnosticsWithCfgTest : AbstractFirDiagnosticsTest()
super.runAnalysis(testDataFile, testFiles, firFilesPerSession) super.runAnalysis(testDataFile, testFiles, firFilesPerSession)
val allFirFiles = firFilesPerSession.values.flatten() val allFirFiles = firFilesPerSession.values.flatten()
checkCfg(testDataFile, allFirFiles) checkCfg(testDataFile, allFirFiles)
checkCfgEdgeConsistency(allFirFiles)
} }
fun checkCfg(testDataFile: File, firFiles: List<FirFile>) { private fun checkCfg(testDataFile: File, firFiles: List<FirFile>) {
val simpleBuilder = StringBuilder() val builder = StringBuilder()
val dotBuilder = StringBuilder()
firFiles.first().accept(FirControlFlowGraphRenderVisitor(simpleBuilder, dotBuilder), null) firFiles.first().accept(FirControlFlowGraphRenderVisitor(builder), null)
val dotCfgDump = dotBuilder.toString() val dotCfgDump = builder.toString()
val dotExpectedPath = testDataFile.absolutePath.replace(".kt", ".dot") val dotExpectedPath = testDataFile.absolutePath.replace(".kt", ".dot")
KotlinTestUtils.assertEqualsToFile(File(dotExpectedPath), dotCfgDump) KotlinTestUtils.assertEqualsToFile(File(dotExpectedPath), dotCfgDump)
} }
private class FirControlFlowGraphRenderVisitor( private fun checkCfgEdgeConsistency(firFiles: List<FirFile>) {
private val simpleBuilder: StringBuilder, firFiles.forEach { it.accept(CfgConsistencyChecker) }
private val dotBuilder: StringBuilder }
) : FirVisitorVoid() {
private var indexOffset = 0
private var clusterCounter = 0
private var offset = 1
override fun visitFile(file: FirFile) {
dotBuilder.appendln("digraph ${file.name.replace(".", "_")} {")
.appendln("${INDENT}graph [splines=ortho nodesep=3]")
.appendln("${INDENT}node [shape=box penwidth=2]")
.appendln("${INDENT}edge [penwidth=2]")
.appendln()
visitElement(file)
dotBuilder.appendln("}")
}
private object CfgConsistencyChecker : FirVisitorVoid() {
override fun visitElement(element: FirElement) { override fun visitElement(element: FirElement) {
element.acceptChildren(this) element.acceptChildren(this)
} }
override fun visitControlFlowGraphReference(controlFlowGraphReference: FirControlFlowGraphReference) { override fun visitControlFlowGraphReference(controlFlowGraphReference: FirControlFlowGraphReference) {
val controlFlowGraph = (controlFlowGraphReference as? FirControlFlowGraphReferenceImpl)?.controlFlowGraph ?: return val graph = (controlFlowGraphReference as? FirControlFlowGraphReferenceImpl)?.controlFlowGraph ?: return
controlFlowGraph.renderToStringBuilder(simpleBuilder) checkConsistency(graph)
indexOffset = controlFlowGraph.dotRenderToStringBuilder(dotBuilder)
dotBuilder.appendln()
} }
private fun StringBuilder.enterCluster(color: String) { private fun checkConsistency(graph: ControlFlowGraph) {
indent() for (node in graph.nodes) {
appendln("subgraph cluster_${clusterCounter++} {") for (to in node.followingNodes) {
offset++ checkEdge(node, to)
indent()
appendln("color=$color")
}
private fun StringBuilder.exitCluster() {
offset--
indent()
appendln("}")
}
private fun StringBuilder.indent() {
append(INDENT.repeat(offset))
}
fun ControlFlowGraph.dotRenderToStringBuilder(builder: StringBuilder): Int {
with(builder) {
val sortedNodes = sortNodes()
val indices = sortedNodes.indicesMap().mapValues { (_, index) -> index + indexOffset }
fun CFGNode<*>.splitEdges(): Pair<List<CFGNode<*>>, List<CFGNode<*>>> =
if (isDead) emptyList<CFGNode<*>>() to followingNodes
else followingNodes.filter { !it.isDead } to followingNodes.filter { it.isDead }
var color = RED
sortedNodes.forEach {
if (it is EnterNode) {
enterCluster(color)
color = BLUE
}
indent()
append(indices.getValue(it))
val attributes = mutableListOf<String>()
attributes += "label=\"${it.render().replace("\"", "")}\""
if (it == enterNode || it == exitNode) {
attributes += "style=\"filled\""
attributes += "fillcolor=red"
}
if (it.isDead) {
attributes += "style=\"filled\""
attributes += "fillcolor=gray"
}
appendln(attributes.joinToString(separator = " ", prefix = " [", postfix = "];"))
if (it is ExitNode) {
exitCluster()
}
} }
appendln() for (from in node.previousNodes) {
checkEdge(from, node)
sortedNodes.forEachIndexed { i, node ->
if (node.followingNodes.isEmpty()) return@forEachIndexed
val (aliveEdges, deadEdges) = node.splitEdges()
fun renderEdges(edges: List<CFGNode<*>>, isDead: Boolean) {
if (edges.isEmpty()) return
indent()
append(i + indexOffset)
append(EDGE)
append(edges.joinToString(prefix = "{", postfix = "}", separator = " ") { indices.getValue(it).toString() })
if (isDead) {
append(" [style=dotted]")
}
appendln(";")
}
renderEdges(aliveEdges, false)
renderEdges(deadEdges, true)
} }
TestCase.assertTrue(node.followingNodes.isNotEmpty() || node.previousNodes.isNotEmpty())
}
}
return indexOffset + sortedNodes.size private fun checkEdge(from: CFGNode<*>, to: CFGNode<*>) {
KtUsefulTestCase.assertContainsElements(from.followingNodes, to)
KtUsefulTestCase.assertContainsElements(to.previousNodes, from)
val fromKind = from.outgoingEdges.getValue(to)
val toKind = to.incomingEdges.getValue(from)
TestCase.assertEquals(fromKind, toKind)
if (from.isDead || to.isDead) {
TestCase.assertEquals(EdgeKind.Dead, fromKind)
} }
} }
} }