diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2012-10-16 17:10:47 +0000 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2012-10-16 17:10:47 +0000 |
commit | bbcfb5208c6c0f343d1a63b129c54914f66b2701 (patch) | |
tree | f2369b3cc07121645ef0c8c3a415f243f5a4fcb9 /src/theory/rewriterules | |
parent | 5b8b6acd9091e2afec654ebed1332d6755bbb7d9 (diff) |
first draft of new inst gen method (still with bugs), some cleanup of quantifiers code
Diffstat (limited to 'src/theory/rewriterules')
-rw-r--r-- | src/theory/rewriterules/theory_rewriterules.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/theory/rewriterules/theory_rewriterules.cpp b/src/theory/rewriterules/theory_rewriterules.cpp index b797d25e5..c6fd9611c 100644 --- a/src/theory/rewriterules/theory_rewriterules.cpp +++ b/src/theory/rewriterules/theory_rewriterules.cpp @@ -152,7 +152,12 @@ void TheoryRewriteRules::addMatchRuleTrigger(const RewriteRule * r, ++r->nb_applied; ++d_statistics.d_cache_miss; std::vector<Node> subst; - im.computeTermVec(getQuantifiersEngine(), r->inst_vars , subst); + //AJR: replaced computeTermVec with this + for( size_t i=0; i<r->inst_vars.size(); i++ ){ + Node n = im.getValue( r->inst_vars[i] ); + Assert( !n.isNull() ); + subst.push_back( n ); + } RuleInst * ri = new RuleInst(*this,r,subst, r->directrr ? im.d_matched : Node::null()); Debug("rewriterules::matching") << "One matching found" |