X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=datarace.h;h=627b8cc88c7016b27cc2660bdebdf4693e674c40;hp=b2f709911ecff2274596ed11f7c5338365ee57e7;hb=917ae2f52a66023283510c41ea46775ed8cfac3a;hpb=0accacf66b9f7bb4479205a0840f208dd8da6960 diff --git a/datarace.h b/datarace.h index b2f7099..627b8cc 100644 --- a/datarace.h +++ b/datarace.h @@ -5,8 +5,12 @@ #ifndef DATARACE_H #include "config.h" #include -#include "clockvector.h" #include +#include "modeltypes.h" + +/* Forward declaration */ +class ClockVector; +class ModelAction; struct ShadowTable { void * array[65536]; @@ -40,7 +44,7 @@ struct DataRace { void initRaceDetector(); void raceCheckWrite(thread_id_t thread, void *location, ClockVector *currClock); void raceCheckRead(thread_id_t thread, void *location, ClockVector *currClock); -void checkDataRaces(); +bool checkDataRaces(); void printRace(struct DataRace *race); extern std::vector unrealizedraces;