if (d_env.isTheoryProofProducing())
{
d_proof.reset(
- new CADProofGenerator(d_env.getContext(), d_env.getProofNodeManager()));
+ new CADProofGenerator(context(), d_env.getProofNodeManager()));
}
}
void CDCAC::retrieveInitialAssignment(NlModel& model, const Node& ran_variable)
{
- if (!d_env.getOptions().arith.nlCadUseInitial) return;
+ if (!options().arith.nlCadUseInitial) return;
d_initialAssignment.clear();
Trace("cdcac") << "Retrieving initial assignment:" << std::endl;
for (const auto& var : d_variableOrdering)
{
std::vector<CACInterval> res;
LazardEvaluation le;
- if (d_env.getOptions().arith.nlCadLifting
+ if (options().arith.nlCadLifting
== options::NlCadLiftingMode::LAZARD)
{
for (size_t vid = 0; vid < cur_variable; ++vid)
Trace("cdcac") << "Infeasible intervals for " << p << " " << sc
<< " 0 over " << d_assignment << std::endl;
std::vector<poly::Interval> intervals;
- if (d_env.getOptions().arith.nlCadLifting
+ if (options().arith.nlCadLifting
== options::NlCadLiftingMode::LAZARD)
{
intervals = le.infeasibleRegions(p, sc);
poly::Value& sample,
std::size_t cur_variable)
{
- if (d_env.getOptions().arith.nlCadUseInitial
+ if (options().arith.nlCadUseInitial
&& cur_variable < d_initialAssignment.size())
{
const poly::Value& suggested = d_initialAssignment[cur_variable];
<< requiredCoefficientsOriginal(p, d_assignment)
<< std::endl;
}
- switch (d_env.getOptions().arith.nlCadProjection)
+ switch (options().arith.nlCadProjection)
{
case options::NlCadProjectionMode::MCCALLUM:
return requiredCoefficientsOriginal(p, d_assignment);