Skip to content

Commit

Permalink
Using labels instead of edges for variable ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 11, 2024
1 parent c498938 commit 37b4d14
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import hu.bme.mit.theta.solver.SolverPool
import hu.bme.mit.theta.xcfa.analysis.*
import hu.bme.mit.theta.xcfa.cli.params.*
import hu.bme.mit.theta.xcfa.cli.utils.getSolver
import hu.bme.mit.theta.xcfa.getFlatLabels
import hu.bme.mit.theta.xcfa.model.XCFA

fun getMddChecker(
Expand Down Expand Up @@ -63,8 +64,10 @@ fun getMddChecker(
}
val safetyProperty = monolithicExpr.propExpr
val stmts =
xcfa.procedures.flatMap { it.edges.map { xcfaEdge -> xcfaEdge.label.toStmt() } }.toSet()
val variableOrder = orderVarsFromRandomStartingPoints(monolithicExpr.vars, stmts)
xcfa.procedures
.flatMap { it.edges.flatMap { xcfaEdge -> xcfaEdge.getFlatLabels().map { it.toStmt() } } }
.toSet()
val variableOrder = orderVarsFromRandomStartingPoints(monolithicExpr.vars, stmts, 20)
val solverPool = SolverPool(refinementSolverFactory)
val iterationStrategy = mddConfig.iterationStrategy

Expand Down

0 comments on commit 37b4d14

Please sign in to comment.