This further renames d_smtStats to d_slvStats in ProcessAssertions.
#include "proof/conv_proof_generator.h"
#include "smt/env.h"
#include "smt/solver_engine.h"
-#include "smt/solver_engine_stats.h"
#include "theory/rewriter.h"
#include "theory/theory.h"
#include "util/resource_manager.h"
namespace cvc5 {
namespace smt {
-ExpandDefs::ExpandDefs(Env& env, SolverEngineStatistics& stats)
- : d_env(env), d_smtStats(stats), d_tpg(nullptr)
-{
-}
+ExpandDefs::ExpandDefs(Env& env) : d_env(env), d_tpg(nullptr) {}
ExpandDefs::~ExpandDefs() {}
namespace smt {
-struct SolverEngineStatistics;
-
/**
* Module in charge of expanding definitions for an SMT engine.
*
class ExpandDefs
{
public:
- ExpandDefs(Env& env, SolverEngineStatistics& stats);
+ ExpandDefs(Env& env);
~ExpandDefs();
/**
* Expand definitions in term n. Return the expanded form of n.
TConvProofGenerator* tpg);
/** Reference to the environment. */
Env& d_env;
- /** Reference to the SMT stats */
- SolverEngineStatistics& d_smtStats;
/** A proof generator for the term conversion. */
std::unique_ptr<TConvProofGenerator> d_tpg;
};
d_absValues(abs),
d_propagator(true, true),
d_assertionsProcessed(env.getUserContext(), false),
- d_exDefs(env, stats),
+ d_exDefs(env),
d_processor(env, stats),
d_pnm(nullptr)
{
};
ProcessAssertions::ProcessAssertions(Env& env, SolverEngineStatistics& stats)
- : EnvObj(env), d_smtStats(stats), d_preprocessingPassContext(nullptr)
+ : EnvObj(env), d_slvStats(stats), d_preprocessingPassContext(nullptr)
{
d_true = NodeManager::currentNM()->mkConst(true);
}
noConflict = simplifyAssertions(as);
if (!noConflict)
{
- ++(d_smtStats.d_simplifiedToFalse);
+ ++(d_slvStats.d_simplifiedToFalse);
}
Trace("smt-proc") << "ProcessAssertions::processAssertions() : post-simplify"
<< endl;
if (options().smt.earlyIteRemoval)
{
- d_smtStats.d_numAssertionsPre += assertions.size();
+ d_slvStats.d_numAssertionsPre += assertions.size();
d_passes["ite-removal"]->apply(&assertions);
// This is needed because when solving incrementally, removeITEs may
// introduce skolems that were solved for earlier and thus appear in the
// substitution map.
d_passes["apply-substs"]->apply(&assertions);
- d_smtStats.d_numAssertionsPost += assertions.size();
+ d_slvStats.d_numAssertionsPost += assertions.size();
}
dumpAssertions("pre-repeat-simplify", as);
private:
/** Reference to the SMT stats */
- SolverEngineStatistics& d_smtStats;
+ SolverEngineStatistics& d_slvStats;
/** The preprocess context */
preprocessing::PreprocessingPassContext* d_preprocessingPassContext;
/** True node */