projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TMP: improve debugging, remove print_trace()
[model-checker.git]
/
snapshot-interface.cc
diff --git
a/snapshot-interface.cc
b/snapshot-interface.cc
index cd1eceea744b2262f2899542aa59dd0ece45db88..bd1de3e60645f15e299e545b07d197b5c90d4e43 100644
(file)
--- a/
snapshot-interface.cc
+++ b/
snapshot-interface.cc
@@
-2,12
+2,12
@@
#include <unistd.h>
#include <cstring>
#include <inttypes.h>
#include <unistd.h>
#include <cstring>
#include <inttypes.h>
-#include <vector>
#include "snapshot-interface.h"
#include "snapshot.h"
#include "common.h"
#include "mymemory.h"
#include "snapshot-interface.h"
#include "snapshot.h"
#include "common.h"
#include "mymemory.h"
+#include "stl-model.h"
/* MYBINARYNAME only works because our pathname usually includes 'model' (e.g.,
* /.../model-checker/test/userprog.o) */
/* MYBINARYNAME only works because our pathname usually includes 'model' (e.g.,
* /.../model-checker/test/userprog.o) */
@@
-29,7
+29,7
@@
class SnapshotStack {
MEMALLOC
private:
MEMALLOC
private:
-
std::vector<struct snapshot_entry, ModelAlloc<struct snapshot_entry>
> stack;
+
ModelVector<struct snapshot_entry
> stack;
};
static SnapshotStack *snap_stack;
};
static SnapshotStack *snap_stack;
@@
-148,7
+148,7
@@
int SnapshotStack::backTrackBeforeStep(int seqindex)
/** This method takes a snapshot at the given sequence number. */
void SnapshotStack::snapshotStep(int seqindex)
{
/** This method takes a snapshot at the given sequence number. */
void SnapshotStack::snapshotStep(int seqindex)
{
- stack.push_back(snapshot_entry(
seqindex, take_snapshot()
));
+ stack.push_back(snapshot_entry(
take_snapshot(), seqindex
));
}
void snapshot_stack_init()
}
void snapshot_stack_init()