diff options
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/smt2/smtio.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py index 69f59df79..62dfe7c11 100644 --- a/backends/smt2/smtio.py +++ b/backends/smt2/smtio.py @@ -172,7 +172,7 @@ class SmtIo:              self.unroll = False          if self.solver == "yices": -            if self.noincr: +            if self.noincr or self.forall:                  self.popen_vargs = ['yices-smt2'] + self.solver_opts              else:                  self.popen_vargs = ['yices-smt2', '--incremental'] + self.solver_opts @@ -232,12 +232,16 @@ class SmtIo:              if self.logic_uf: self.logic += "UF"              if self.logic_bv: self.logic += "BV"              if self.logic_dt: self.logic = "ALL" +            if self.solver == "yices" and self.forall: self.logic = "BV"          self.setup_done = True          for stmt in self.info_stmts:              self.write(stmt) +        if self.forall and self.solver == "yices": +            self.write("(set-option :yices-ef-max-iters 1000000000)") +          if self.produce_models:              self.write("(set-option :produce-models true)") | 
