Fixing more bugs
[satune.git] / src / Encoders / naiveencoder.cc
index 466d839f625a882fe416676ccf5038bea7627fc0..2d77608772ba3d01351aa0a7b89e857b7c9d02ca 100644 (file)
@@ -28,7 +28,8 @@ void naiveEncodingConstraint(Boolean *This) {
                return;
        }
        case ORDERCONST: {
-               ((BooleanOrder *) This)->order->setOrderEncodingType(PAIRWISE);
+               if(((BooleanOrder *) This)->order->encoding.type == ORDER_UNASSIGNED)
+                       ((BooleanOrder *) This)->order->setOrderEncodingType(PAIRWISE);
                return;
        }
        case LOGICOP: {