From 314db5e1c4fdbfca001b1f3a679831d086b25e5c Mon Sep 17 00:00:00 2001 From: ajreynol Date: Wed, 7 Dec 2016 15:26:12 -0600 Subject: [PATCH] Add sets regression, fixes bug 754. Minor fix to regexp in strings. --- src/theory/quantifiers/bounded_integers.cpp | 2 +- src/theory/strings/theory_strings.cpp | 11 +++++++---- test/regress/regress0/sets/Makefile.am | 3 ++- test/regress/regress0/sets/card.smt2 | 1 + 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/theory/quantifiers/bounded_integers.cpp b/src/theory/quantifiers/bounded_integers.cpp index 1112c2ef2..e9ac9b484 100644 --- a/src/theory/quantifiers/bounded_integers.cpp +++ b/src/theory/quantifiers/bounded_integers.cpp @@ -605,7 +605,7 @@ Node BoundedIntegers::getSetRangeValue( Node q, Node v, RepSetIterator * rsi ) { Trace("bound-int-rsi") << "Get value in model for..." << sr << std::endl; sr = d_quantEngine->getModel()->getCurrentModelValue( sr ); Trace("bound-int-rsi") << "Value is " << sr << std::endl; - //map to term model + //as heuristic, map to term model if( sr.getKind()!=EMPTYSET ){ std::map< Node, Node > val_to_term; while( sr.getKind()==UNION ){ diff --git a/src/theory/strings/theory_strings.cpp b/src/theory/strings/theory_strings.cpp index db07a0b51..6c4a00541 100644 --- a/src/theory/strings/theory_strings.cpp +++ b/src/theory/strings/theory_strings.cpp @@ -4273,10 +4273,13 @@ void TheoryStrings::checkMemberships() { for( unsigned i=0; i