projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check in insane test case...
[model-checker.git]
/
datarace.h
diff --git
a/datarace.h
b/datarace.h
index 627b8cc88c7016b27cc2660bdebdf4693e674c40..7c24b6d56c1b400a311b0eaae5ef32e9ad0e8c31 100644
(file)
--- a/
datarace.h
+++ b/
datarace.h
@@
-5,8
+5,8
@@
#ifndef DATARACE_H
#include "config.h"
#include <stdint.h>
#ifndef DATARACE_H
#include "config.h"
#include <stdint.h>
-#include <vector>
#include "modeltypes.h"
#include "modeltypes.h"
+#include "stl-model.h"
/* Forward declaration */
class ClockVector;
/* Forward declaration */
class ClockVector;
@@
-36,18
+36,18
@@
struct DataRace {
bool isnewwrite;
/* Address of data race. */
bool isnewwrite;
/* Address of data race. */
- void *address;
+
const
void *address;
};
#define MASK16BIT 0xffff
void initRaceDetector();
void raceCheckWrite(thread_id_t thread, void *location, ClockVector *currClock);
};
#define MASK16BIT 0xffff
void initRaceDetector();
void raceCheckWrite(thread_id_t thread, void *location, ClockVector *currClock);
-void raceCheckRead(thread_id_t thread, void *location, ClockVector *currClock);
+void raceCheckRead(thread_id_t thread,
const
void *location, ClockVector *currClock);
bool checkDataRaces();
bool checkDataRaces();
-void
printR
ace(struct DataRace *race);
+void
assert_r
ace(struct DataRace *race);
-extern
std::v
ector<struct DataRace *> unrealizedraces;
+extern
SnapV
ector<struct DataRace *> unrealizedraces;
/** Basic encoding idea:
* (void *) Either:
/** Basic encoding idea:
* (void *) Either: