Skip to content

Commit

Permalink
noDataRaceWhenPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 12, 2024
1 parent 0d4e531 commit cd102e8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import hu.bme.mit.theta.xcfa.analysis.*
import hu.bme.mit.theta.xcfa.analysis.por.XcfaDporLts
import hu.bme.mit.theta.xcfa.cli.params.*
import hu.bme.mit.theta.xcfa.cli.utils.getSolver
import hu.bme.mit.theta.xcfa.dereferences
import hu.bme.mit.theta.xcfa.model.XCFA

fun getCegarChecker(
Expand All @@ -53,6 +54,12 @@ fun getCegarChecker(
XcfaPrec<*>,
> {
val cegarConfig = config.backendConfig.specConfig as CegarConfig
if (
config.inputConfig.property == ErrorDetection.DATA_RACE &&
xcfa.procedures.any { it.edges.any { it.label.dereferences.isNotEmpty() } }
) {
throw RuntimeException("DATA_RACE cannot be checked when pointers exist in the file.")
}
val abstractionSolverFactory: SolverFactory =
getSolver(
cegarConfig.abstractorConfig.abstractionSolver,
Expand Down

0 comments on commit cd102e8

Please sign in to comment.