Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMT-LIB 2.6 conformance, support for cvc5, and generalization for alternative SMT-solvers #609

Merged
merged 23 commits into from
May 24, 2022
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Code cosmetics
  • Loading branch information
Malte Schwerhoff committed May 24, 2022
commit eaa11907cf43016c487eef7c2fba43f1f4d610a0
14 changes: 8 additions & 6 deletions src/main/scala/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,9 @@ class Config(args: Seq[String]) extends SilFrontendConfig(args, "Silicon") {
lazy val z3Exe: String = {
val isWindows = System.getProperty("os.name").toLowerCase.startsWith("windows")

rawZ3Exe.toOption.getOrElse(envOrNone(Z3ProverStdIO.exeEnvironmentalVariable)
.getOrElse("z3" + (if (isWindows) ".exe" else "")))
rawZ3Exe.toOption.getOrElse(
envOrNone(Z3ProverStdIO.exeEnvironmentalVariable)
.getOrElse("z3" + (if (isWindows) ".exe" else "")))
}

private val rawCvc5Exe = opt[String]("cvc5Exe",
Expand All @@ -430,8 +431,9 @@ class Config(args: Seq[String]) extends SilFrontendConfig(args, "Silicon") {
lazy val cvc5Exe: String = {
val isWindows = System.getProperty("os.name").toLowerCase.startsWith("windows")

rawCvc5Exe.toOption.getOrElse(envOrNone(Cvc5ProverStdIO.exeEnvironmentalVariable)
.getOrElse("cvc5" + (if (isWindows) ".exe" else "")))
rawCvc5Exe.toOption.getOrElse(
envOrNone(Cvc5ProverStdIO.exeEnvironmentalVariable)
.getOrElse("cvc5" + (if (isWindows) ".exe" else "")))
}

val defaultRawProverLogFile = "logfile"
Expand Down Expand Up @@ -715,8 +717,8 @@ class Config(args: Seq[String]) extends SilFrontendConfig(args, "Silicon") {
)

val prover: ScallopOption[String] = opt[String]("prover",
descr = (s"One of the provers ${Z3ProverStdIO.name}, ${Cvc5ProverStdIO.name}. " +
s"(default: ${Z3ProverStdIO.name})."),
descr = s"One of the provers ${Z3ProverStdIO.name}, ${Cvc5ProverStdIO.name}. " +
s"(default: ${Z3ProverStdIO.name}).",
default = Some(Z3ProverStdIO.name),
noshort = true
)
Expand Down