Skip to content

Commit

Permalink
Remove edge and loc vars from defaultvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
mondokm committed Nov 7, 2024
1 parent 6b0aff3 commit 6c56d77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fun XCFA.toMonolithicExpr(parseContext: ParseContext, initValues: Boolean = fals

val defaultValues =
if (initValues)
StmtUtils.getVars(trans)
StmtUtils.getVars(trans).filter { !it.equals(locVar) and !it.equals(edgeVar) }
.map {
when (it.type) {
is IntType -> Eq(it.ref, int(0))
Expand Down Expand Up @@ -139,7 +139,7 @@ fun XCFA.toMonolithicExpr(parseContext: ParseContext, initValues: Boolean = fals
transExpr = And(transUnfold.exprs),
propExpr = Neq(locVar.ref, int(locMap[proc.errorLoc.get()]!!)),
transOffsetIndex = transUnfold.indexing,
vars = (StmtUtils.getVars(trans) + listOf(locVar)).toList(),
vars = StmtUtils.getVars(trans).filter { !it.equals(locVar) and !it.equals(edgeVar) }.toList() + edgeVar + locVar,
valToState = { valToState(it) },
biValToAction = { val1, val2 -> valToAction(val1, val2) },
ctrlVars = listOf(locVar, edgeVar),
Expand Down

0 comments on commit 6c56d77

Please sign in to comment.