summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/inst_match.cpp
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2015-09-25 17:58:56 +0200
committerajreynol <andrew.j.reynolds@gmail.com>2015-09-25 17:58:56 +0200
commit773963f4342bb860fe4deb1d3c65d801b6acd72f (patch)
treec5cf5b0685df6311226f7f823f61c7bb3ff14241 /src/theory/quantifiers/inst_match.cpp
parent30920046fd6992b6e2c12c33ba888df5c1caf8de (diff)
Clear term caches for quantifiers + incremental, fixes bug 674. Refactoring of term database, other refactoring. Bug fixes for cbqi+datatypes.
Diffstat (limited to 'src/theory/quantifiers/inst_match.cpp')
-rw-r--r--src/theory/quantifiers/inst_match.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/theory/quantifiers/inst_match.cpp b/src/theory/quantifiers/inst_match.cpp
index cb969088d..180ccc448 100644
--- a/src/theory/quantifiers/inst_match.cpp
+++ b/src/theory/quantifiers/inst_match.cpp
@@ -88,15 +88,6 @@ bool InstMatch::empty() {
return true;
}
-void InstMatch::makeComplete( Node f, QuantifiersEngine* qe ){
- for( unsigned i=0; i<d_vals.size(); i++ ){
- if( d_vals[i].isNull() ){
- Node ic = qe->getTermDatabase()->getInstantiationConstant( f, i );
- d_vals[i] = qe->getTermDatabase()->getFreeVariableForInstConstant( ic );
- }
- }
-}
-
void InstMatch::makeRepresentative( QuantifiersEngine* qe ){
for( unsigned i=0; i<d_vals.size(); i++ ){
if( !d_vals[i].isNull() ){
@@ -132,7 +123,7 @@ void InstMatch::getTerms( QuantifiersEngine* qe, Node f, std::vector< Node >& in
Node val = get( i );
if( val.isNull() ){
Node ic = qe->getTermDatabase()->getInstantiationConstant( f, i );
- val = qe->getTermDatabase()->getFreeVariableForInstConstant( ic );
+ val = qe->getTermDatabase()->getModelBasisTerm( ic.getType() );
}
inst.push_back( val );
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback