Adding checks to avoid further processing on UNSAT Problems
[satune.git] / src / Encoders / naiveencoder.cc
index 63ec82f..ac20be5 100644 (file)
@@ -15,6 +15,9 @@
 #include <strings.h>
 
 void naiveEncodingDecision(CSolver *This) {
+       if(This->isUnSAT()){
+               return;
+       }
        SetIteratorBooleanEdge *iterator = This->getConstraints();
        while (iterator->hasNext()) {
                BooleanEdge b = iterator->next();