Node n = d_absValues.substituteAbstractValues(e);
// Ensure expr is type-checked at this point.
ensureBoolean(n);
-
- /* Add assumption */
- if (d_assertionList != nullptr)
- {
- d_assertionList->push_back(n);
- }
addFormula(n, inUnsatCore, true, true, false);
}
if (d_globalDefineFunRecLemmas != nullptr)
void Assertions::assertFormula(const Node& n, bool inUnsatCore)
{
ensureBoolean(n);
- if (d_assertionList != nullptr)
- {
- d_assertionList->push_back(n);
- }
bool maybeHasFv = language::isInputLangSygus(options::inputLanguage());
addFormula(n, inUnsatCore, true, false, maybeHasFv);
}
void Assertions::addFormula(
TNode n, bool inUnsatCore, bool inInput, bool isAssumption, bool maybeHasFv)
{
+ // add to assertion list if it exists
+ if (d_assertionList != nullptr)
+ {
+ d_assertionList->push_back(n);
+ }
if (n.isConst() && n.getConst<bool>())
{
// true, nothing to do