X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=snapshot-interface.cc;h=47fafa5b0641f8865cb279c47f08531e9cbfd4f1;hp=072c1f959ac07c256129248174665a33fb5e7b30;hb=a7472bf7d514d8c53b22eb64bc552f593c79d506;hpb=64cfd95313cb2f8b62cdfbe22a134889028b34e2 diff --git a/snapshot-interface.cc b/snapshot-interface.cc index 072c1f9..47fafa5 100644 --- a/snapshot-interface.cc +++ b/snapshot-interface.cc @@ -93,7 +93,7 @@ static void SnapshotGlobalSegments(){ size_t len = ((uintptr_t)end - (uintptr_t)begin) / PAGESIZE; if (len != 0) addMemoryRegionToSnapShot(begin, len); - DEBUG("%45s: %18p - %18p\t%c%c%c%c\n", regionname, begin, end, r, w, x, p); + DEBUG("%55s: %18p - %18p\t%c%c%c%c\n", regionname, begin, end, r, w, x, p); } } fclose(map); @@ -124,13 +124,13 @@ int SnapshotStack::backTrackBeforeStep(int seqindex) { } struct stackEntry *tmp=stack; stack=stack->next; - MYFREE(tmp); + model_free(tmp); } } /** This method takes a snapshot at the given sequence number. */ void SnapshotStack::snapshotStep(int seqindex) { - struct stackEntry *tmp=(struct stackEntry *)MYMALLOC(sizeof(struct stackEntry)); + struct stackEntry *tmp=(struct stackEntry *)model_malloc(sizeof(struct stackEntry)); tmp->next=stack; tmp->index=seqindex; tmp->snapshotid=takeSnapshot();