projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datarace: reformat datarace printing
[model-checker.git]
/
snapshot-interface.h
diff --git
a/snapshot-interface.h
b/snapshot-interface.h
index 9a2b9cc18e3b3eaaa4e18434078126d2dbb1ccf6..c0db0d0c0990595beaea3f1af70933a0f97779a8 100644
(file)
--- a/
snapshot-interface.h
+++ b/
snapshot-interface.h
@@
-1,10
+1,18
@@
+/** @file snapshot-interface.h
+ * @brief C++ layer on top of snapshotting system.
+ */
+
+
#ifndef __SNAPINTERFACE_H
#define __SNAPINTERFACE_H
#ifndef __SNAPINTERFACE_H
#define __SNAPINTERFACE_H
-#include "snapshot.h"
#include "mymemory.h"
#include "mymemory.h"
-#include "snapshot.h"
-void SnapshotGlobalSegments();
+typedef unsigned int snapshot_id;
+
+typedef void (*VoidFuncPtr)();
+void initSnapshotLibrary(unsigned int numbackingpages,
+ unsigned int numsnapshots, unsigned int nummemoryregions,
+ unsigned int numheappages, VoidFuncPtr entryPoint);
struct stackEntry {
struct stackEntry *next;
struct stackEntry {
struct stackEntry *next;
@@
-20,7
+28,7
@@
class SnapshotStack {
int backTrackBeforeStep(int seq_index);
void snapshotStep(int seq_index);
int backTrackBeforeStep(int seq_index);
void snapshotStep(int seq_index);
- private:
+ private:
struct stackEntry * stack;
};
struct stackEntry * stack;
};