summaryrefslogtreecommitdiff
path: root/src/theory/rep_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/rep_set.cpp')
-rw-r--r--src/theory/rep_set.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/theory/rep_set.cpp b/src/theory/rep_set.cpp
index dd139d5ec..5c02b631c 100644
--- a/src/theory/rep_set.cpp
+++ b/src/theory/rep_set.cpp
@@ -14,11 +14,12 @@
#include <unordered_set>
-#include "theory/rep_set.h"
-#include "theory/type_enumerator.h"
#include "theory/quantifiers/bounded_integers.h"
-#include "theory/quantifiers/term_util.h"
#include "theory/quantifiers/first_order_model.h"
+#include "theory/quantifiers/term_enumeration.h"
+#include "theory/quantifiers/term_util.h"
+#include "theory/rep_set.h"
+#include "theory/type_enumerator.h"
using namespace std;
using namespace CVC4;
@@ -216,6 +217,9 @@ bool RepSetIterator::setFunctionDomain( Node op, RepBoundExt* rext ){
return initialize( rext );
}
+// TODO : as part of #1199, the portions of this
+// function which modify d_rep_set should be
+// moved to TheoryModel.
bool RepSetIterator::initialize( RepBoundExt* rext ){
Trace("rsi") << "Initialize rep set iterator..." << std::endl;
for( unsigned v=0; v<d_types.size(); v++ ){
@@ -260,7 +264,8 @@ bool RepSetIterator::initialize( RepBoundExt* rext ){
}
if( !tn.isSort() ){
if( inc ){
- if( d_qe->getTermUtil()->mayComplete( tn ) ){
+ if (d_qe->getTermEnumeration()->mayComplete(tn))
+ {
Trace("rsi") << " do complete, since cardinality is small (" << tn.getCardinality() << ")..." << std::endl;
d_rep_set->complete( tn );
//must have succeeded
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback