Skip to content

Commit

Permalink
More
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Oct 18, 2024
1 parent d9faf4b commit a8ac833
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/theory/arith/nl/ext/ext_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ void ExtState::init(const std::vector<Node>& xts)
}

// register constants
d_mdb.registerMonomial(d_one);
Node rone = nodeManager()->mkConstReal(Rational(1));
d_mdb.registerMonomial(rone);

// register variables
Trace("nl-ext-mv") << "Variables in monomials : " << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/theory/arith/nl/ext/monomial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void MonomialDb::registerMonomial(Node n)
}
else
{
Assert(k != Kind::ADD && k != Kind::MULT);
Assert(k != Kind::ADD && k != Kind::MULT && !n.isConst());
d_m_exp[n][n] = 1;
d_m_vlist[n].push_back(n);
d_m_degree[n] = 1;
Expand Down
2 changes: 2 additions & 0 deletions src/theory/arith/nl/ext/proof_checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ Node ExtProofRuleChecker::checkInternal(ProofRule id,
{
return Node::null();
}
// FIXME
return args[0];
// now ensure that the products align
std::sort(eproda.begin(), eproda.end());
std::sort(eprodb.begin(), eprodb.end());
Expand Down

0 comments on commit a8ac833

Please sign in to comment.