Bug fix for printing ...
authorHamed Gorjiara <hgorjiar@uci.edu>
Thu, 2 Aug 2018 19:59:52 +0000 (12:59 -0700)
committerHamed Gorjiara <hgorjiar@uci.edu>
Thu, 2 Aug 2018 19:59:52 +0000 (12:59 -0700)
src/Collections/corestructs.cc
src/csolver.cc

index ba9bf91c54544e3985bf7dd2f7eee6508cf4ce8b..8d8c86d59de1e21cf5e1dafc0611aee3c3ed178a 100644 (file)
@@ -5,6 +5,6 @@
 void BooleanEdge::print(){
        if (isNegated())
                model_print("!");
-       b->print();
+       getBoolean()->print();
        model_print("\n");
 }
\ No newline at end of file
index 9dff5570277b7ecd3839aa4e67e101bb74aae22e..3eabf2e8648de534d07330beae7a0c9d7b6a3554 100644 (file)
@@ -650,10 +650,7 @@ void CSolver::printConstraints() {
 }
 
 void CSolver::printConstraint(BooleanEdge b) {
-       if (b.isNegated())
-               model_print("!");
-       b->print();
-       model_print("\n");
+       b.print();
 }
 
 uint64_t CSolver::getElementValue(Element *element) {