summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/candidate_generator.cpp
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2014-11-25 16:15:10 +0100
committerajreynol <andrew.j.reynolds@gmail.com>2014-11-25 16:15:10 +0100
commit29bdfca306a7cd35801c7d9cb3023d78a8b82a1f (patch)
tree1c50ca8eb48010b3f327d3d9ada06161e27d9834 /src/theory/quantifiers/candidate_generator.cpp
parent38e077ab219082ee044c2e17ed809e3519c80842 (diff)
Fix bug in --term-db-mode=relevant with variable triggers. Support inst-closure predicate and mode --term-db-inst-closure. Minor changes to theory_quantifiers.
Diffstat (limited to 'src/theory/quantifiers/candidate_generator.cpp')
-rw-r--r--src/theory/quantifiers/candidate_generator.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/theory/quantifiers/candidate_generator.cpp b/src/theory/quantifiers/candidate_generator.cpp
index cfaa6d1ad..9e3fed20a 100644
--- a/src/theory/quantifiers/candidate_generator.cpp
+++ b/src/theory/quantifiers/candidate_generator.cpp
@@ -197,16 +197,17 @@ void CandidateGeneratorQEAll::reset( Node eqc ) {
Node CandidateGeneratorQEAll::getNextCandidate() {
while( !d_eq.isFinished() ){
- Node n = (*d_eq);
+ TNode n = (*d_eq);
++d_eq;
if( n.getType().isSubtypeOf( d_match_pattern_type ) ){
- if( d_qe->getTermDatabase()->hasTermCurrent( n ) ){
+ TNode nh = d_qe->getTermDatabase()->getHasTermEqc( n );
+ if( !nh.isNull() ){
if( options::instMaxLevel()!=-1 ){
- n = d_qe->getEqualityQuery()->getInternalRepresentative( n, d_f, d_index );
+ nh = d_qe->getEqualityQuery()->getInternalRepresentative( nh, d_f, d_index );
}
d_firstTime = false;
//an equivalence class with the same type as the pattern, return it
- return n;
+ return nh;
}
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback