update test case
authorbdemsky <bdemsky@uci.edu>
Wed, 31 Dec 2014 13:17:49 +0000 (22:17 +0900)
committerbdemsky <bdemsky@uci.edu>
Wed, 31 Dec 2014 13:17:49 +0000 (22:17 +0900)
test_solver.cc

index 90e03fe..09bc923 100644 (file)
@@ -6,11 +6,20 @@ int main(int argc, char **argv) {
   s->finishedClauses();
   s->freeze(1); s->freeze(2);
   printf("solution=%d\n", s->solve());
+  for(int i=0;i<=2;i++) {
+    printf("%d: %d\n",i, s->getValue(i));
+  }
   s->addClauseLiteral(-1);s->addClauseLiteral(0);
   s->finishedClauses();
   printf("solution=%d\n", s->solve());
+  for(int i=0;i<=2;i++) {
+    printf("%d: %d\n",i, s->getValue(i));
+  }
   s->addClauseLiteral(-2);s->addClauseLiteral(0);
   s->finishedClauses();
   printf("solution=%d\n", s->solve());
+  for(int i=0;i<=2;i++) {
+    printf("%d: %d\n",i, s->getValue(i));
+  }
   delete s;
 }