Skip to content

Commit

Permalink
MInor
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Oct 18, 2024
1 parent 5f27664 commit d7990a8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/theory/arith/nl/ext/arith_nl_compare_proof_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ std::shared_ptr<ProofNode> ArithNlCompareProofGenerator::getProofFor(Node fact)
// get the expected form of the literals
CDProof cdp(d_env);
std::vector<Node> expc;
std::vector<Node> deq;
for (const Node& e : exp)
{
Node ec = getCompareLit(e);
if (ec.isNull())
{
// not a comparison literal, likely a disequality to zero
expc.emplace_back(e);
deq.emplace_back(e);
continue;
}
expc.emplace_back(ec);
Expand All @@ -82,10 +83,10 @@ std::shared_ptr<ProofNode> ArithNlCompareProofGenerator::getProofFor(Node fact)
Assert(!concc.isNull());
Assert(concc.getNumChildren() == 2);
bool isAbs = (concc[0].getKind() == Kind::ABS);
// reorder the explanation based on the order it appears in the conclusion
std::vector<Node> expcOrdered;
size_t cprodIndex[2] = {0, 0};

// TODO: reorder the explanation based on the order it appears in the conclusion

// add the disequalities, which can appear in any order
expc.insert(expc.end(), deq.begin(), deq.end());
Trace("arith-nl-compare")
<< "...processed prove: " << expc << " => " << concc << std::endl;
ProofRule pr = isAbs ? ProofRule::MACRO_ARITH_NL_ABS_COMPARISON
Expand Down

0 comments on commit d7990a8

Please sign in to comment.