summaryrefslogtreecommitdiff
path: root/src/theory/builtin/proof_checker.cpp
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2020-05-01 14:57:05 -0500
committerajreynol <andrew.j.reynolds@gmail.com>2020-05-01 14:57:05 -0500
commit19a66616b9f8ea55588fee4f32c33f2cce45151d (patch)
tree9f68c1b129caa762cb7e990bf3896b38670d6d19 /src/theory/builtin/proof_checker.cpp
parent153a101a4769e11278ce2d74f33760c5da74cb68 (diff)
More
Diffstat (limited to 'src/theory/builtin/proof_checker.cpp')
-rw-r--r--src/theory/builtin/proof_checker.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/theory/builtin/proof_checker.cpp b/src/theory/builtin/proof_checker.cpp
index 9d2b09454..b88347954 100644
--- a/src/theory/builtin/proof_checker.cpp
+++ b/src/theory/builtin/proof_checker.cpp
@@ -118,14 +118,11 @@ Node BuiltinProofRuleChecker::check(PfRule id,
{
// FIXME: could be macro
// (TRANS (SUBS P1 ... Pn t)
- // (REWRITE <t.substitute(x1,t1). ... .substitute(xn,tn)>))
+ // (REWRITE <t.substitute(xn,tn). ... .substitute(x1,t1)>))
Assert(children.size() > 0);
Assert(args.size() == 1);
- std::vector<Node> exp;
- for (size_t i = 0, nchild = children.size(); i < nchild; i++)
- {
- exp.push_back(children[i]);
- }
+ std::vector<Node> exp = children;
+ std::reverse(exp.begin(),exp.end());
Node res = applySubstitution(args[0], exp);
res = applyRewrite(res);
return args[0].eqNode(res);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback