Added missing :produce-models setting to smtio.py
authorClifford Wolf <clifford@clifford.at>
Sun, 11 Sep 2016 16:08:56 +0000 (18:08 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 11 Sep 2016 16:17:22 +0000 (18:17 +0200)
backends/smt2/smtio.py

index 62fb5154fc93f95f459f17d92d898905b8ea729f..5d0a784852ea8341f5599d45f7f2ac1ca565dc1f 100644 (file)
@@ -90,7 +90,7 @@ class SmtIo:
             popen_vargs = ['mathsat']
 
         if self.solver == "boolector":
-            popen_vargs = ['boolector', '--smt2', '-i', '-m']
+            popen_vargs = ['boolector', '--smt2', '-i']
             self.unroll = True
 
         if self.unroll:
@@ -110,6 +110,7 @@ class SmtIo:
         self.topmod = None
 
     def setup(self, logic="ALL", info=None):
+        self.write("(set-option :produce-models true)")
         self.write("(set-logic %s)" % logic)
         if info is not None:
             self.write("(set-info :source |%s|)" % info)