-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuzzer.h
27 lines (25 loc) · 909 Bytes
/
fuzzer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef FUZZER_H
#define FUZZER_H
#include "classlist.h"
#include "mymemory.h"
#include "stl-model.h"
#include "threads-model.h"
class Fuzzer {
public:
Fuzzer() {}
virtual int selectWrite(ModelAction *read, SnapVector<ModelAction *>* rf_set);
virtual int find_idx(SnapVector<ModelAction *> * rf_set, ModelAction* local_wr);
virtual bool has_paused_threads() { return false; }
virtual Thread * selectThread(int * threadlist, int numthreads);
virtual Thread *selectThreadbyid(int threadid);
Thread * selectNotify(simple_action_list_t * waiters);
bool shouldSleep(const ModelAction *sleep);
bool shouldWake(const ModelAction *sleep);
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:
};
#endif