projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update readme
[c11tester.git]
/
fuzzer.h
diff --git
a/fuzzer.h
b/fuzzer.h
index 348225c8f60184d90701b63df36767761bf0129e..65210e09ae8e147693d3b5300e4c5db3ff766cc6 100644
(file)
--- a/
fuzzer.h
+++ b/
fuzzer.h
@@
-9,12
+9,16
@@
class Fuzzer {
public:
Fuzzer() {}
virtual int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
public:
Fuzzer() {}
virtual int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
- virtual Predicate * get_selected_child_branch(thread_id_t tid) = 0;
- Thread * selectThread(int * threadlist, int numthreads);
- Thread * selectNotify(action_list_t * waiters);
+ virtual bool has_paused_threads() { return false; }
+ virtual Thread * selectThread(int * threadlist, int numthreads);
+
+ Thread * selectNotify(simple_action_list_t * waiters);
bool shouldSleep(const ModelAction *sleep);
bool shouldWake(const ModelAction *sleep);
bool shouldSleep(const ModelAction *sleep);
bool shouldWake(const ModelAction *sleep);
- virtual void register_engine(ModelHistory * history, ModelExecution * execution) = 0;
+ virtual bool waitShouldFail(ModelAction *wait);
+ bool waitShouldWakeUp(const ModelAction *wait);
+ bool randomizeWaitTime(ModelAction * timed_wait);
+ virtual void register_engine(ModelChecker * _model, ModelExecution * execution) {}
SNAPSHOTALLOC
private:
};
SNAPSHOTALLOC
private:
};