summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/inst_gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/quantifiers/inst_gen.cpp')
-rwxr-xr-xsrc/theory/quantifiers/inst_gen.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/theory/quantifiers/inst_gen.cpp b/src/theory/quantifiers/inst_gen.cpp
index ea58840f5..099e3aa29 100755
--- a/src/theory/quantifiers/inst_gen.cpp
+++ b/src/theory/quantifiers/inst_gen.cpp
@@ -45,10 +45,11 @@ InstGenProcess::InstGenProcess( Node n ) : d_node( n ){
void InstGenProcess::addMatchValue( QuantifiersEngine* qe, Node f, Node val, InstMatch& m ){
if( !qe->existsInstantiation( f, m, true ) ){
- //if( d_inst_trie[val].addInstMatch( qe, f, m, true ) ){
+ //make sure no duplicates are produced
+ if( d_inst_trie[val].addInstMatch( qe, f, m, true ) ){
d_match_values.push_back( val );
d_matches.push_back( InstMatch( &m ) );
- //}
+ }
}
}
@@ -110,6 +111,8 @@ void InstGenProcess::calculateMatches( QuantifiersEngine* qe, Node f ){
calculateMatchesInterpreted( qe, f, curr, terms, 0 );
}
Trace("cm") << "done calculate matches" << std::endl;
+ //can clear information used for finding duplicates
+ d_inst_trie.clear();
}
bool InstGenProcess::getMatch( EqualityQuery* q, int i, InstMatch& m ){
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback