Skip to content

Commit 2d32d03

Browse files
committed
add bitwuzla as a solver
1 parent 0c061d6 commit 2d32d03

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/Language/Fixpoint/Smt/Interface.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ makeContext' cfg ctxLog
306306
Process.defaultConfig
307307
{ Process.exe = "cvc5"
308308
, Process.args = ["--incremental", "-L", "smtlib2"] }
309+
Bitwuzla -> makeProcess ctxLog $
310+
Process.defaultConfig
311+
{ Process.exe = "bitwuzla"
312+
, Process.args = ["--lang", "smt2"] }
309313
solver <- SMTLIB.Backends.initSolver SMTLIB.Backends.Queuing backend
310314
loud <- isLoud
311315
return Ctx { ctxSolver = solver
@@ -457,7 +461,8 @@ makeMbqi cfg
457461
z3_options :: [Builder]
458462
z3_options
459463
= [ "(set-option :auto-config false)"
460-
, "(set-option :model true)" ]
464+
, "(set-option :model true)"
465+
, "(set-option :sat.smt true)" ]
461466

462467

463468

src/Language/Fixpoint/Types/Config.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ instance Read RESTOrdering where
146146

147147
---------------------------------------------------------------------------------------
148148

149-
data SMTSolver = Z3 | Z3mem | Cvc4 | Cvc5 | Mathsat
149+
data SMTSolver = Z3 | Z3mem | Cvc4 | Cvc5 | Mathsat | Bitwuzla
150150
deriving (Eq, Data, Typeable, Generic)
151151

152152
instance Default SMTSolver where
@@ -158,6 +158,7 @@ instance Show SMTSolver where
158158
show Cvc4 = "cvc4"
159159
show Cvc5 = "cvc5"
160160
show Mathsat = "mathsat"
161+
show Bitwuzla = "bitwuzla"
161162

162163
instance S.Store SMTSolver
163164

0 commit comments

Comments
 (0)