X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=model.cc;h=e068a089c162a292ba141351df5e217f26ab65bb;hp=c19c37f0cdc778684d6796842043a7b71afee440;hb=810306cb85accaaace9a50f174264f105991230b;hpb=96598fb588eae2fa5050ab83cb3e362f2d6cbbec diff --git a/model.cc b/model.cc index c19c37f..e068a08 100644 --- a/model.cc +++ b/model.cc @@ -4,6 +4,8 @@ #include "action.h" #include "tree.h" #include "schedule.h" +#include "snapshot-interface.h" +#undef DEBUG #include "common.h" #define INITIAL_THREAD_ID 0 @@ -58,7 +60,7 @@ ModelChecker::ModelChecker() ModelChecker::~ModelChecker() { - std::map::iterator it; + std::map, MyAlloc< std::pair< int, class Thread * > > >::iterator it; for (it = thread_map.begin(); it != thread_map.end(); it++) delete (*it).second; thread_map.clear(); @@ -72,7 +74,7 @@ ModelChecker::~ModelChecker() void ModelChecker::reset_to_initial_state() { DEBUG("+++ Resetting to initial state +++\n"); - std::map::iterator it; + std::map, MyAlloc< std::pair< int, class Thread * > > >::iterator it; for (it = thread_map.begin(); it != thread_map.end(); it++) delete (*it).second; thread_map.clear();