Add a configuration for disabling the optimizations
[satune.git] / src / csolver.h
index 6996e4229c9376f78b5d4258ee7d2669f334b858..49438b697b1235287cba1a437ec4b17aa63c9f7f 100644 (file)
@@ -142,6 +142,8 @@ public:
 
        void freezeElement(Element *e);
        
+       void turnoffOptimizations(){optimizationsOff = true;}
+       
        /** After getting the solution from the SAT solver, client can get the value of a boolean via this function*/
        bool getBooleanValue(BooleanEdge boolean);
 
@@ -237,10 +239,12 @@ private:
        bool unsat;
        bool booleanVarUsed;
        bool incrementalMode;
+       bool optimizationsOff;
        Tuner *tuner;
        long long elapsedTime;
        long satsolverTimeout;
        Interpreter *interpreter;
+       bool noOptimization;
        friend class ElementOpt;
        friend class VarOrderingOpt;
 };