Merging + fixing memory bugs
[satune.git] / src / csolver.h
index b27e3c00038d586908d6d17bb80f79a774b7eaed..eba7b3ccf47ffa7abb4dbae45e398591a8fd025c 100644 (file)
@@ -141,7 +141,7 @@ public:
        uint64_t getElementValue(Element *element);
 
        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 +237,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;
 };