d_abductSolver(nullptr),
d_quantElimSolver(nullptr),
d_assignments(nullptr),
- d_defineCommands(),
d_logic(),
d_originalOptions(),
d_isInternalSubsolver(false),
d_dumpm->addToModelCommandAndDump(
c, ExprManager::VAR_FLAG_DEFINED, true, "declarations");
- PROOF(if (options::checkUnsatCores()) {
- d_defineCommands.push_back(c.clone());
- });
-
// type check body
debugCheckFunctionBody(formula, formals, func);
coreChecker.getOptions().set(options::checkUnsatCores, false);
coreChecker.getOptions().set(options::checkProofs, false);
- PROOF(
- std::vector<Command*>::const_iterator itg = d_defineCommands.begin();
- for (; itg != d_defineCommands.end(); ++itg) {
- (*itg)->invoke(&coreChecker);
- }
- );
-
Notice() << "SmtEngine::checkUnsatCore(): pushing core assertions (size == " << core.size() << ")" << endl;
for(UnsatCore::iterator i = core.begin(); i != core.end(); ++i) {
- Notice() << "SmtEngine::checkUnsatCore(): pushing core member " << *i << endl;
- coreChecker.assertFormula(Node::fromExpr(*i));
+ Node assertionAfterExpansion = expandDefinitions(Node::fromExpr(*i));
+ Notice() << "SmtEngine::checkUnsatCore(): pushing core member " << *i
+ << ", expanded to " << assertionAfterExpansion << "\n";
+ coreChecker.assertFormula(assertionAfterExpansion);
}
Result r;
try {
Assert(te != nullptr);
te->checkTheoryAssertionsWithModel(hardFailure);
}
-
+
// Output the model
Notice() << *m;
*/
AssignmentSet* d_assignments;
- /**
- * A vector of command definitions to be imported in the new
- * SmtEngine when checking unsat-cores.
- */
- std::vector<Command*> d_defineCommands;
-
/**
* The logic we're in. This logic may be an extension of the logic set by the
* user.