summaryrefslogtreecommitdiff
path: root/src/theory/arith/inference_manager.cpp
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2021-09-07 13:52:23 -0700
committerGitHub <noreply@github.com>2021-09-07 20:52:23 +0000
commitd3a160dee74b236cab32458fe8e5a3e653d28faf (patch)
tree8ba0ca844cfccf2b310e0b63d682ed0aa3647c2f /src/theory/arith/inference_manager.cpp
parent01cde22b7d69c1b1037cf1d536ca62becc3bd865 (diff)
Use `EnvObj` methods instead of `Theory` methods (#7144)
This removes the methods `getEnv()`, `options()`, `getSatContext()`, and `getUserContext()` from the `Theory` class because they are now part of `EnvObj`. Additionally, this commit converts the inference managers to `EnvObj` because of there were some calls to retrieve the contexts from `Theory` in those classes.
Diffstat (limited to 'src/theory/arith/inference_manager.cpp')
-rw-r--r--src/theory/arith/inference_manager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/theory/arith/inference_manager.cpp b/src/theory/arith/inference_manager.cpp
index 1563ca418..5ab606f96 100644
--- a/src/theory/arith/inference_manager.cpp
+++ b/src/theory/arith/inference_manager.cpp
@@ -24,13 +24,14 @@ namespace cvc5 {
namespace theory {
namespace arith {
-InferenceManager::InferenceManager(TheoryArith& ta,
+InferenceManager::InferenceManager(Env& env,
+ TheoryArith& ta,
ArithState& astate,
ProofNodeManager* pnm)
- : InferenceManagerBuffered(ta, astate, pnm, "theory::arith::"),
+ : InferenceManagerBuffered(env, ta, astate, pnm, "theory::arith::"),
// currently must track propagated literals if using the equality solver
d_trackPropLits(astate.options().arith.arithEqSolver),
- d_propLits(astate.getSatContext())
+ d_propLits(context())
{
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback