forked from regb/scala-smtlib
-
Notifications
You must be signed in to change notification settings - Fork 2
Bitwuzla #16
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
Merged
Merged
Bitwuzla #16
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d3f1e67
Floating point theory
agilot 704dce2
formatting + tests
agilot 065bc4f
bitwuzla
agilot 67420c7
Merge branch 'epfl-lara:master' into bitwuzla
agilot 10ad73f
add bitwuzla in the CI
agilot 4ebca42
fix solver install script
agilot 1f6268d
fix solver install script
agilot a2faf49
fix solver install script
agilot 189e976
Add a default version for bitwuzla in install script
sankalpgambhir a32031d
Update install solvers script to the one from Inox (+bitwuzla)
sankalpgambhir 4e36f80
Define bitwuzla test executors
sankalpgambhir 61b0aac
Filter tests for bitwuzla by compatibility
sankalpgambhir 56d681b
Move test filters to helpers file
sankalpgambhir 06dd7cc
Set install solvers = 1 in ci
sankalpgambhir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ target | |
.bsp | ||
project/.bloop | ||
project/metals.sbt | ||
project/project | ||
project/project | ||
.DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/scala/smtlib/interpreters/BitwuzlaInterpreter.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package smtlib | ||
package interpreters | ||
|
||
import smtlib.lexer.Lexer | ||
import smtlib.parser.Parser | ||
import smtlib.printer.{Printer, RecursivePrinter} | ||
import trees.Commands._ | ||
|
||
import java.io.BufferedReader | ||
|
||
class BitwuzlaInterpreter(executable: String, | ||
args: Array[String], | ||
printer: Printer = RecursivePrinter, | ||
parserCtor: BufferedReader => Parser = out => new Parser(new Lexer(out))) | ||
extends ProcessInterpreter(executable, args, printer, parserCtor) { | ||
|
||
printer.printCommand(SetOption(PrintSuccess(true)), in) | ||
in.write("\n") | ||
in.flush() | ||
parser.parseGenResponse | ||
|
||
} | ||
|
||
object BitwuzlaInterpreter { | ||
|
||
def buildDefault: BitwuzlaInterpreter = { | ||
val executable = "bitwuzla" | ||
val args = Array("-v", "0", | ||
"--produce-models", | ||
"--lang", "smt2") | ||
new BitwuzlaInterpreter(executable, args) | ||
} | ||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.