Skip to content

Commit

Permalink
Foramt
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreynol committed Dec 20, 2024
1 parent 7d0c75b commit be2a827
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/rewriter/rewrite_db_proof_cons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ Node RewriteDbProofCons::preprocessClosureEq(CDProof* cdp,
}
Node eq;
Node eqConv = ai.eqNode(bi);
theory::Rewriter * rr = d_env.getRewriter();
theory::Rewriter* rr = d_env.getRewriter();
if (ai[0] == bi[0])
{
ProofRewriteRule prid = rr->findRule(
ai, bi, theory::TheoryRewriteCtx::PRE_DSL);
ProofRewriteRule prid =
rr->findRule(ai, bi, theory::TheoryRewriteCtx::PRE_DSL);
if (prid != ProofRewriteRule::NONE)
{
// a simple theory rewrite happens to solve it, do not continue
Expand Down Expand Up @@ -287,10 +287,10 @@ Node RewriteDbProofCons::preprocessClosureEq(CDProof* cdp,
else if (ai[0].getNumChildren() > bi[0].getNumChildren())
{
// maybe unused variables on the left hand side
Node aiu = rr->rewriteViaRule(ProofRewriteRule::QUANT_UNUSED_VARS, ai);
Node aiu = rr->rewriteViaRule(ProofRewriteRule::QUANT_UNUSED_VARS, ai);
if (!aiu.isNull())
{
Assert (aiu!=ai);
Assert(aiu != ai);
Node eqq = ai.eqNode(aiu);
cdp->addTheoryRewriteStep(eqq, ProofRewriteRule::QUANT_UNUSED_VARS);
eq = aiu.eqNode(bi);
Expand Down
5 changes: 2 additions & 3 deletions src/theory/arith/arith_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ RewriteResponse ArithRewriter::postRewriteTerm(TNode t){
case Kind::ARCSECANT:
case Kind::ARCCOTANGENT:
case Kind::SQRT:
case Kind::IAND:
case Kind::IAND:
case Kind::POW2: return postRewriteExpert(t);
default: Unreachable();
}
Expand All @@ -482,7 +482,7 @@ RewriteResponse ArithRewriter::postRewriteExpert(TNode t)
{
return RewriteResponse(REWRITE_DONE, t);
}
switch(t.getKind())
switch (t.getKind())
{
case Kind::EXPONENTIAL:
case Kind::SINE:
Expand All @@ -503,7 +503,6 @@ RewriteResponse ArithRewriter::postRewriteExpert(TNode t)
default: Unreachable();
}
}


RewriteResponse ArithRewriter::rewriteRAN(TNode t)
{
Expand Down
2 changes: 1 addition & 1 deletion src/theory/arith/arith_rewriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ArithRewriter : public TheoryRewriter
RewriteResponse preRewriteTerm(TNode t);
/** postRewrite for terms */
RewriteResponse postRewriteTerm(TNode t);

/** Post-rewrites that are only available in expert mode */
RewriteResponse postRewriteExpert(TNode t);

Expand Down

0 comments on commit be2a827

Please sign in to comment.