Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
7 changes: 6 additions & 1 deletion src/Language/Fixpoint/Smt/Interface.hs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ makeContext' cfg ctxLog
Process.defaultConfig
{ Process.exe = "cvc5"
, Process.args = ["--incremental", "-L", "smtlib2"] }
Bitwuzla -> makeProcess ctxLog $
Process.defaultConfig
{ Process.exe = "bitwuzla"
, Process.args = ["--lang", "smt2"] }
solver <- SMTLIB.Backends.initSolver SMTLIB.Backends.Queuing backend
loud <- isLoud
return Ctx { ctxSolver = solver
Expand Down Expand Up @@ -459,7 +463,8 @@ makeMbqi cfg
z3_options :: [Builder]
z3_options
= [ "(set-option :auto-config false)"
, "(set-option :model true)" ]
, "(set-option :model true)"
, "(set-option :sat.smt true)" ]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we were told not to use this.

@nilehmann nilehmann Mar 8, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

circle ci is using an ancient version of z3, 4.8.7, released in 2019. That's probably why adding this line causes it to fail. For the gh one, you need to update the cache action. Also, why do you have both circle ci and gh actions running?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh whoops - I did not mean to push that. That is stuff I usually add locally so that tock-veri-asm checks faster. I'll patch it now.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GitHub z3's version is also a tiny bit old (4.10.2 released in 2022)




Expand Down
3 changes: 2 additions & 1 deletion src/Language/Fixpoint/Types/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ instance Read RESTOrdering where

---------------------------------------------------------------------------------------

data SMTSolver = Z3 | Z3mem | Cvc4 | Cvc5 | Mathsat
data SMTSolver = Z3 | Z3mem | Cvc4 | Cvc5 | Mathsat | Bitwuzla
deriving (Eq, Data, Typeable, Generic)

newtype ElabFlags = ElabFlags { elabSetBag :: Bool }
Expand All @@ -167,6 +167,7 @@ instance Show SMTSolver where
show Cvc4 = "cvc4"
show Cvc5 = "cvc5"
show Mathsat = "mathsat"
show Bitwuzla = "bitwuzla"

instance S.Store SMTSolver

Expand Down