Fix unit test.
authorajreynol <andrew.j.reynolds@gmail.com>
Sat, 18 Jun 2016 15:49:21 +0000 (10:49 -0500)
committerajreynol <andrew.j.reynolds@gmail.com>
Sat, 18 Jun 2016 15:49:21 +0000 (10:49 -0500)
src/theory/logic_info.cpp
test/unit/theory/logic_info_white.h

index 89b0f054ac29d9266d960c375ea6e66c35493279..6ac1c5e32ec7fb3d42c4daa6e2fdbcf1568f958e 100644 (file)
@@ -442,6 +442,10 @@ void LogicInfo::setLogicString(std::string logicString) throw(IllegalArgumentExc
         enableTheory(THEORY_SETS);
         p += 2;
       }
+      if(!strncmp(p, "SEP", 3)) {
+        enableTheory(THEORY_SEP);
+        p += 3;
+      }
     }
   }
   if(*p != '\0') {
index 6332563ed94e20b7cd9d48d601bfa1703eab474b..3baa43dff9ff029b2f0e067dd4f16762ac335ebd 100644 (file)
@@ -514,13 +514,13 @@ public:
     info.arithOnlyLinear();
     info.disableIntegers();
     info.lock();
-    TS_ASSERT_EQUALS( info.getLogicString(), "AUFBVFPDTLRA" );
+    TS_ASSERT_EQUALS( info.getLogicString(), "AUFBVFPDTLRASEP" );
 
     info = info.getUnlockedCopy();
     TS_ASSERT( !info.isLocked() );
     info.disableQuantifiers();
     info.lock();
-    TS_ASSERT_EQUALS( info.getLogicString(), "QF_AUFBVFPDTLRA" );
+    TS_ASSERT_EQUALS( info.getLogicString(), "QF_AUFBVFPDTLRASEP" );
 
     info = info.getUnlockedCopy();
     TS_ASSERT( !info.isLocked() );
@@ -529,13 +529,14 @@ public:
     info.enableIntegers();
     info.disableReals();
     info.lock();
-    TS_ASSERT_EQUALS( info.getLogicString(), "QF_AUFFPLIA" );
+    TS_ASSERT_EQUALS( info.getLogicString(), "QF_AUFFPLIASEP" );
 
     info = info.getUnlockedCopy();
     TS_ASSERT( !info.isLocked() );
     info.disableTheory(THEORY_ARITH);
     info.disableTheory(THEORY_UF);
     info.disableTheory(THEORY_FP);
+    info.disableTheory(THEORY_SEP);
     info.lock();
     TS_ASSERT_EQUALS( info.getLogicString(), "QF_AX" );
     TS_ASSERT( info.isPure( THEORY_ARRAY ) );