X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=snapshot-interface.cc;h=47fafa5b0641f8865cb279c47f08531e9cbfd4f1;hb=d2cbbe4ce6d8f6e1aa23b8fe639ed58edf1789b7;hp=d93e5c20dce3203378c2ea9d4f611bb90580686d;hpb=c5b57f3d98d1d14b4546995a0882753cf71a1c4b;p=model-checker.git diff --git a/snapshot-interface.cc b/snapshot-interface.cc index d93e5c2..47fafa5 100644 --- a/snapshot-interface.cc +++ b/snapshot-interface.cc @@ -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();