Skip to content

Commit

Permalink
re-added tracegen as a separate test method
Browse files Browse the repository at this point in the history
  • Loading branch information
szdan97 committed Dec 4, 2024
1 parent 630e118 commit aeeb0b2
Showing 1 changed file with 45 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class ThyssenXcfaDslTest {
}

@Test
fun defineXcfa() {
fun checkXcfa() {
LbePass.level = LbePass.LbeLevel.LBE_LOCAL
val origXcfa = getXcfa()
println(origXcfa.toDot())
Expand Down Expand Up @@ -318,4 +318,48 @@ class ThyssenXcfaDslTest {
)
}

@Test
fun tracegen() {
LbePass.level = LbePass.LbeLevel.LBE_LOCAL
val origXcfa = getXcfa()
val inputConfig =
InputConfig(
xcfaWCtx = Triple(origXcfa, listOf(), ParseContext()),
property = ErrorDetection.NO_ERROR,
)
val frontendConfig =
FrontendConfig(
lbeLevel = LbePass.level,
loopUnroll = LoopUnrollPass.UNROLL_LIMIT,
inputType = InputType.C,
specConfig = CFrontendConfig(arithmetic = efficient),
)
val backendConfig =
BackendConfig(
backend = Backend.TRACEGEN,
timeoutMs = 0,
specConfig =
TracegenConfig(
abstractorConfig =
CegarAbstractorConfig(
abstractionSolver = "Z3",
validateAbstractionSolver = false,
domain = EXPL,
maxEnum = 1,
search = DFS,
)
),
)
val outputConfig =
OutputConfig(
enableOutput = true,
resultFolder = File("F:\\egyetem\\thesta\\theta\\subprojects\\xcfa\\xcfa\\src\\test\\temp"),
)
runConfig(
XcfaConfig(inputConfig, frontendConfig, backendConfig, outputConfig, DebugConfig()),
ConsoleLogger(Logger.Level.SUBSTEP),
ConsoleLogger(Logger.Level.SUBSTEP),
true,
)
}
}

0 comments on commit aeeb0b2

Please sign in to comment.