minor fix, bring back the assertion.
authorTianyi Liang <tianyi-liang@uiowa.edu>
Wed, 8 Jan 2014 01:18:55 +0000 (19:18 -0600)
committerTianyi Liang <tianyi-liang@uiowa.edu>
Wed, 8 Jan 2014 01:18:55 +0000 (19:18 -0600)
src/theory/strings/theory_strings.cpp
src/theory/uf/equality_engine.cpp

index bb5e3718ab3cb08d5c75361174ca9d71b938a31e..99d64270b0e68d5ca62606322f10afb11eff48a9 100644 (file)
@@ -51,6 +51,7 @@ TheoryStrings::TheoryStrings(context::Context* c, context::UserContext* u, Outpu
     //d_equalityEngine.addFunctionKind(kind::STRING_IN_REGEXP);
     d_equalityEngine.addFunctionKind(kind::STRING_LENGTH);
     d_equalityEngine.addFunctionKind(kind::STRING_CONCAT);
+    d_equalityEngine.addFunctionKind(kind::STRING_STRCTN);
 
     d_zero = NodeManager::currentNM()->mkConst( Rational( 0 ) );
     d_emptyString = NodeManager::currentNM()->mkConst( ::CVC4::String("") );
index 0d6c937194e76035707e13e53a8756cb71fb1c19..df1d2ebdedb9a4e6d3ac0429c36b4308c75e569e 100644 (file)
@@ -1152,7 +1152,7 @@ void EqualityEngine::addTriggerEquality(TNode eq) {
 
 void EqualityEngine::addTriggerPredicate(TNode predicate) {
   Assert(predicate.getKind() != kind::NOT && predicate.getKind() != kind::EQUAL);
-  //Assert(d_congruenceKinds.tst(predicate.getKind()), "No point in adding non-congruence predicates");
+  Assert(d_congruenceKinds.tst(predicate.getKind()), "No point in adding non-congruence predicates");
 
   if (d_done) {
     return;