/* global "model" object */
#include "model.h"
#include "snapshot.h"
+#include "snapshot-interface.h"
/*
* Return 1 if found next thread, 0 otherwise
void real_main() {
thrd_t user_thread;
ucontext_t main_context;
+
+ //Create the singleton snapshotStack object
+ snapshotObject = new snapshotStack();
model = new ModelChecker();
#include <cstring>
#include <cassert>
+snapshotStack * snapshotObject;
+
/*This looks like it might leak memory... Subramanian should fix this. */
typedef std::basic_stringstream< char, std::char_traits< char >, MyAlloc< char > > MyStringStream;
private:
struct stackEntry * stack;
};
+
+/* Not sure what it even means to have more than one snapshot object,
+ so let's just make a global reference to it.*/
+
+extern snapshotStack * snapshotObject;
#endif