Adding checks to avoid further processing on UNSAT Problems
[satune.git] / src / ASTAnalyses / Polarity / polarityassignment.cc
index 4a772ee87839187cca95aa9e1acd4bf6c1f03d04..b8b01d0e6a4b99f769a4df47d7fa734c044a5f10 100644 (file)
@@ -2,6 +2,9 @@
 #include "csolver.h"
 
 void computePolarities(CSolver *This) {
+       if(This->isUnSAT()){
+               return;
+       }
        SetIteratorBooleanEdge *iterator = This->getConstraints();
        while (iterator->hasNext()) {
                BooleanEdge boolean = iterator->next();