diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-08-25 11:27:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 16:27:03 +0000 |
commit | 76c8bc4c963b494db36074afac74e51ab39917e4 (patch) | |
tree | 1dead31654b75eec05ada6ca0a4adf2878809cab /src/theory/quantifiers/sygus_sampler.cpp | |
parent | 9a4deadddfd3d4489ba15f65f0e3dab72b2fcccc (diff) |
Eliminate calls to currentSmtEngine (#7060)
Work towards supporting multiple solvers running in parallel.
There are now only 5 remaining internal calls to smt::currentSmtEngine.
More will be eliminated on future PRs.
Diffstat (limited to 'src/theory/quantifiers/sygus_sampler.cpp')
-rw-r--r-- | src/theory/quantifiers/sygus_sampler.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/theory/quantifiers/sygus_sampler.cpp b/src/theory/quantifiers/sygus_sampler.cpp index c072fd7b4..0cbc4df5b 100644 --- a/src/theory/quantifiers/sygus_sampler.cpp +++ b/src/theory/quantifiers/sygus_sampler.cpp @@ -23,8 +23,6 @@ #include "options/base_options.h" #include "options/quantifiers_options.h" #include "printer/printer.h" -#include "smt/smt_engine.h" -#include "smt/smt_engine_scope.h" #include "theory/quantifiers/lazy_trie.h" #include "theory/rewriter.h" #include "util/bitvector.h" @@ -780,7 +778,7 @@ void SygusSampler::registerSygusType(TypeNode tn) } } -void SygusSampler::checkEquivalent(Node bv, Node bvr) +void SygusSampler::checkEquivalent(Node bv, Node bvr, std::ostream& out) { if (bv == bvr) { @@ -831,14 +829,12 @@ void SygusSampler::checkEquivalent(Node bv, Node bvr) return; } // we have detected unsoundness in the rewriter - Options& sopts = smt::currentSmtEngine()->getOptions(); - std::ostream* out = sopts.base.out; - (*out) << "(unsound-rewrite " << bv << " " << bvr << ")" << std::endl; + out << "(unsound-rewrite " << bv << " " << bvr << ")" << std::endl; // debugging information - (*out) << "Terms are not equivalent for : " << std::endl; - (*out) << ptOut.str(); + out << "Terms are not equivalent for : " << std::endl; + out << ptOut.str(); Assert(bve != bvre); - (*out) << "where they evaluate to " << bve << " and " << bvre << std::endl; + out << "where they evaluate to " << bve << " and " << bvre << std::endl; if (options::sygusRewVerifyAbort()) { |