forked from uci-plrg/jaaru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
classlist.h
48 lines (37 loc) · 1.8 KB
/
classlist.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef CLASSLIST_H
#define CLASSLIST_H
#include <inttypes.h>
#include "stl-model.h"
#include "hashset.h"
typedef int thread_id_t;
#define THREAD_ID_T_NONE -1
typedef unsigned int modelclock_t;
class CacheLine;
class ThreadMemory;
class Thread;
class ModelAction;
class ModelExecution;
class Scheduler;
class ClockVector;
class Fuzzer;
class ModelChecker;
class actionlist;
class Node;
class NodeStack;
class Analysis;
struct bug_message;
typedef ModelList<ModelAction *> simple_action_list_t;
typedef actionlist action_list_t;
unsigned int cacheLineHashFunction ( CacheLine * cl);
bool cacheLineEquals(CacheLine *c1, CacheLine *c2);
unsigned int WriteVecHashFunction(SnapVector<Pair<ModelExecution *, ModelAction *> > * vec);
bool WriteVecEquals(SnapVector<Pair<ModelExecution *, ModelAction *> > * vec1, SnapVector<Pair<ModelExecution *, ModelAction *> > * vec2);
unsigned int filenameHashFunction ( const char * f);
bool filenameEquals(const char *f1, const char *f2);
typedef HashSet<SnapVector<Pair<ModelExecution *, ModelAction *> >*, uintptr_t, 0, snapshot_malloc, snapshot_calloc, snapshot_free, WriteVecHashFunction, WriteVecEquals> WriteVecSet;
typedef HSIterator<SnapVector<Pair<ModelExecution *, ModelAction *> >*, uintptr_t, 0, snapshot_malloc, snapshot_calloc, snapshot_free, WriteVecHashFunction, WriteVecEquals> WriteVecIter;
typedef HashSet<CacheLine *, uintptr_t, 0, snapshot_malloc, snapshot_calloc, snapshot_free, cacheLineHashFunction, cacheLineEquals> CacheLineSet;
typedef HSIterator<CacheLine *, uintptr_t, 0, snapshot_malloc, snapshot_calloc, snapshot_free, cacheLineHashFunction, cacheLineEquals> CacheLineSetIter;
typedef HashTable<const char*, uint64_t, uintptr_t, 0, model_malloc, model_calloc, model_free, filenameHashFunction, filenameEquals> FileMap;
extern volatile int modellock;
#endif