summaryrefslogtreecommitdiff
path: root/src/theory/uf
diff options
context:
space:
mode:
authorajreynol <andrew.j.reynolds@gmail.com>2014-12-12 12:03:26 +0100
committerajreynol <andrew.j.reynolds@gmail.com>2014-12-12 12:03:32 +0100
commitfafb7f90f35941a72957dcc9ca5e45afd066cf04 (patch)
treefa53d7bacd16dcfce96f9a3ce5f994dfcb980bed /src/theory/uf
parent69c092f9e2ac6d9628f4de3e0038c1f021b3c7c6 (diff)
Add cvc parsing support for cardinality constraints. Bug fix for enumerating elements to meet cardinality lower bounds.
Diffstat (limited to 'src/theory/uf')
-rw-r--r--src/theory/uf/theory_uf_strong_solver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/uf/theory_uf_strong_solver.cpp b/src/theory/uf/theory_uf_strong_solver.cpp
index 28ea995d9..05fea6b5e 100644
--- a/src/theory/uf/theory_uf_strong_solver.cpp
+++ b/src/theory/uf/theory_uf_strong_solver.cpp
@@ -1417,11 +1417,11 @@ bool StrongSolverTheoryUF::SortModel::debugModel( TheoryModel* m ){
}
}
int nReps = m->d_rep_set.d_type_reps.find( d_type )==m->d_rep_set.d_type_reps.end() ? 0 : (int)m->d_rep_set.d_type_reps[d_type].size();
- if( nReps!=d_maxNegCard ){
+ if( nReps!=(d_maxNegCard+1) ){
Trace("uf-ss-warn") << "WARNING : Model does not have same # representatives as cardinality for " << d_type << "." << std::endl;
Trace("uf-ss-warn") << " Max neg cardinality : " << d_maxNegCard << std::endl;
Trace("uf-ss-warn") << " # Reps : " << nReps << std::endl;
- if( d_maxNegCard>nReps ){
+ if( d_maxNegCard>=nReps ){
/*
for( unsigned i=0; i<d_fresh_aloc_reps.size(); i++ ){
if( add>0 && !m->d_equalityEngine->hasTerm( d_fresh_aloc_reps[i] ) ){
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback