diff options
author | Tim King <taking@google.com> | 2015-10-23 16:57:48 -0700 |
---|---|---|
committer | Tim King <taking@google.com> | 2015-10-26 09:56:58 -0700 |
commit | 918b0fd9ecde048773d245eac66eba9b4306d9d2 (patch) | |
tree | 218d4b5aadbebd440185dc00e4f6589287326b19 /src/prop/bvminisat/simp | |
parent | af86e5a8dc7a64fb5f7b4ca7bd3b2bedf5e8fe32 (diff) |
This fixes a one definition rule violation for reduceDB_lt in Solver.cc in minisat and bvminisat. This also moves BVMinisat into CVC4. This also wrapped code in cpp files into the namespaces instead of having using namespace *.
Diffstat (limited to 'src/prop/bvminisat/simp')
-rw-r--r-- | src/prop/bvminisat/simp/Main.cc | 9 | ||||
-rw-r--r-- | src/prop/bvminisat/simp/SimpSolver.cc | 7 | ||||
-rw-r--r-- | src/prop/bvminisat/simp/SimpSolver.h | 5 |
3 files changed, 18 insertions, 3 deletions
diff --git a/src/prop/bvminisat/simp/Main.cc b/src/prop/bvminisat/simp/Main.cc index bfb655782..96e318e5f 100644 --- a/src/prop/bvminisat/simp/Main.cc +++ b/src/prop/bvminisat/simp/Main.cc @@ -30,11 +30,13 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA #include "core/Dimacs.h" #include "simp/SimpSolver.h" -using namespace BVMinisat; //================================================================================================= +namespace CVC4 { +namespace BVMinisat { + void printStats(Solver& solver) { double cpu_time = cpuTime(); @@ -65,11 +67,16 @@ static void SIGINT_exit(int signum) { _exit(1); } +} /* CVC4::BVMinisat namespace */ +} /* CVC4 namespace */ + //================================================================================================= // Main: int main(int argc, char** argv) { + using namespace CVC4; + using namespace CVC4::BVMinisat; try { setUsageHelp("USAGE: %s [options] <input-file> <result-output-file>\n\n where input may be either in plain or gzipped DIMACS.\n"); // printf("This is MiniSat 2.0 beta\n"); diff --git a/src/prop/bvminisat/simp/SimpSolver.cc b/src/prop/bvminisat/simp/SimpSolver.cc index c65189985..e7e489985 100644 --- a/src/prop/bvminisat/simp/SimpSolver.cc +++ b/src/prop/bvminisat/simp/SimpSolver.cc @@ -23,7 +23,9 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA #include "utils/System.h" #include "theory/bv/options.h" #include "smt/options.h" -using namespace BVMinisat; + +namespace CVC4 { +namespace BVMinisat { //================================================================================================= // Options: @@ -749,3 +751,6 @@ void SimpSolver::garbageCollect() ca.size()*ClauseAllocator::Unit_Size, to.size()*ClauseAllocator::Unit_Size); to.moveTo(ca); } + +} /* CVC4::BVMinisat namespace */ +} /* CVC4 namespace */ diff --git a/src/prop/bvminisat/simp/SimpSolver.h b/src/prop/bvminisat/simp/SimpSolver.h index 4ff17d3ab..707f62e34 100644 --- a/src/prop/bvminisat/simp/SimpSolver.h +++ b/src/prop/bvminisat/simp/SimpSolver.h @@ -26,6 +26,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA #include "util/statistics_registry.h" #include "context/context.h" +namespace CVC4 { namespace BVMinisat { //================================================================================================= @@ -218,6 +219,8 @@ inline lbool SimpSolver::solveLimited (bool do_simp, bool turn_off_simp){ return solve_(do_simp, turn_off_simp); } //================================================================================================= -} +} /* CVC4::BVMinisat namespace */ +} /* CVC4 namespace */ + #endif |