Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
csanadtelbisz committed Nov 13, 2024
1 parent 89b72aa commit ed702f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fun getOcChecker(
ocConfig.outputConflictClauses,
ocConfig.nonPermissiveValidation,
ocConfig.autoConflict,
config.outputConfig.acceptUnreliableSafe
config.outputConfig.acceptUnreliableSafe,
)
return SafetyChecker { ocChecker.check() }
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import hu.bme.mit.theta.xcfa.cli.params.Refinement.SEQ_ITP
import hu.bme.mit.theta.xcfa.cli.params.Search.*
import hu.bme.mit.theta.xcfa.cli.runConfig
import hu.bme.mit.theta.xcfa.model.XCFA
import hu.bme.mit.theta.xcfa.model.optimizeFurther
import hu.bme.mit.theta.xcfa.passes.*
import java.nio.file.Paths

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class XCFA(
val globalVars: Set<XcfaGlobalVar>, // global variables
val procedureBuilders: Set<XcfaProcedureBuilder> = emptySet(),
val initProcedureBuilders: List<Pair<XcfaProcedureBuilder, List<Expr<*>>>> = emptyList(),
var unsafeUnrollUsed: Boolean = false
var unsafeUnrollUsed: Boolean = false,
) {

private var cachedHash: Int? = null
Expand All @@ -51,7 +51,8 @@ class XCFA(

procedures = procedureBuilders.map { it.build(this) }.toSet()
initProcedures = initProcedureBuilders.map { Pair(it.first.build(this), it.second) }
unsafeUnrollUsed = (procedureBuilders + initProcedureBuilders.map { it.first }).any { it.unsafeUnrollUsed }
unsafeUnrollUsed =
(procedureBuilders + initProcedureBuilders.map { it.first }).any { it.unsafeUnrollUsed }
}

/** Recreate an existing XCFA by substituting the procedures and initProcedures fields. */
Expand Down

0 comments on commit ed702f8

Please sign in to comment.