Add support for the Bitwuzla solver
authorGCHQDeveloper560 <48131108+GCHQDeveloper560@users.noreply.github.com>
Wed, 16 Jun 2021 12:19:43 +0000 (13:19 +0100)
committerMarcelina Koƛcielnicka <mwk@0x04.net>
Mon, 12 Jul 2021 20:07:58 +0000 (22:07 +0200)
backends/smt2/smtio.py

index 97eb1c5374e373b23f313c2218194864f836fdaf..d73a875ba4c116e164d90c782098b2e23b56025f 100644 (file)
@@ -203,14 +203,14 @@ class SmtIo:
                 print('timeout option is not supported for mathsat.')
                 sys.exit(1)
 
-        if self.solver == "boolector":
+        if self.solver in ["boolector", "bitwuzla"]:
             if self.noincr:
-                self.popen_vargs = ['boolector', '--smt2'] + self.solver_opts
+                self.popen_vargs = [self.solver, '--smt2'] + self.solver_opts
             else:
-                self.popen_vargs = ['boolector', '--smt2', '-i'] + self.solver_opts
+                self.popen_vargs = [self.solver, '--smt2', '-i'] + self.solver_opts
             self.unroll = True
             if self.timeout != 0:
-                print('timeout option is not supported for boolector.')
+                print('timeout option is not supported for %s.' % self.solver)
                 sys.exit(1)
 
         if self.solver == "abc":
@@ -1010,7 +1010,7 @@ class SmtOpts:
     def helpmsg(self):
         return """
     -s <solver>
-        set SMT solver: z3, yices, boolector, cvc4, mathsat, dummy
+        set SMT solver: z3, yices, boolector, bitwuzla, cvc4, mathsat, dummy
         default: yices
 
     -S <opt>