[FIR DFA] Rename Persistent.logicStatements -> implications

This commit is contained in:
Dmitriy Novozhilov
2023-10-17 12:49:13 +03:00
committed by Space Team
parent dc08e3bf99
commit 5d3402339e
2 changed files with 3 additions and 3 deletions
@@ -19,7 +19,7 @@ abstract class Flow {
class PersistentFlow internal constructor(
private val previousFlow: PersistentFlow?,
private val approvedTypeStatements: PersistentMap<RealVariable, PersistentTypeStatement>,
internal val logicStatements: PersistentMap<DataFlowVariable, PersistentList<Implication>>,
internal val implications: PersistentMap<DataFlowVariable, PersistentList<Implication>>,
// RealVariable describes a storage in memory; a pair of RealVariable with its assignment
// index at a particular execution point forms an SSA value corresponding to the result of
// an initializer.
@@ -60,7 +60,7 @@ class PersistentFlow internal constructor(
fun fork(): MutableFlow = MutableFlow(
this,
approvedTypeStatements.builder(),
logicStatements.builder(),
implications.builder(),
assignmentIndex.builder(),
directAliasMap.builder(),
backwardsAliasMap.builder(),
@@ -90,7 +90,7 @@ abstract class LogicSystem(private val context: ConeInferenceContext) {
}
fun approveOperationStatement(flow: PersistentFlow, statement: OperationStatement): TypeStatements {
return approveOperationStatement(flow.logicStatements, statement, removeApprovedOrImpossible = false)
return approveOperationStatement(flow.implications.toMutableMap(), statement, removeApprovedOrImpossible = false)
}
fun approveOperationStatement(