thrd_t user_thread;
ucontext_t main_context;
- //Create the singleton snapshotStack object
- snapshotObject = new snapshotStack();
+ //Create the singleton SnapshotStack object
+ snapshotObject = new SnapshotStack();
model = new ModelChecker();
typedef std::basic_string<char, std::char_traits<char>, MyAlloc<char> > MyString;
-snapshotStack * snapshotObject;
+SnapshotStack * snapshotObject;
/*This looks like it might leak memory... Subramanian should fix this. */
}
}
-//class definition of snapshotStack.....
+//class definition of SnapshotStack.....
//declaration of constructor....
-snapshotStack::snapshotStack(){
+SnapshotStack::SnapshotStack(){
SnapshotGlobalSegments();
stack=NULL;
}
-snapshotStack::~snapshotStack(){
+SnapshotStack::~SnapshotStack(){
}
-int snapshotStack::backTrackBeforeStep(int seqindex) {
+int SnapshotStack::backTrackBeforeStep(int seqindex) {
while(true) {
if (stack->index<=seqindex) {
//have right entry
}
}
-void snapshotStack::snapshotStep(int seqindex) {
+void SnapshotStack::snapshotStep(int seqindex) {
struct stackEntry *tmp=(struct stackEntry *)MYMALLOC(sizeof(struct stackEntry));
tmp->next=stack;
tmp->index=seqindex;
int index;
};
-class snapshotStack {
+class SnapshotStack {
public:
MEMALLOC
- snapshotStack( );
- ~snapshotStack();
+ SnapshotStack( );
+ ~SnapshotStack();
int backTrackBeforeStep(int seq_index);
void snapshotStep(int seq_index);
/* 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;
+extern SnapshotStack * snapshotObject;
#endif