-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathaliascheck.h
67 lines (52 loc) · 1.43 KB
/
aliascheck.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include <stdio.h>
#include <stdlib.h>
void MUSTALIAS(void* p, void* q){
printf("\n");
}
void PARTIALALIAS(void* p, void* q){
printf("\n");
}
void MAYALIAS(void* p, void* q){
printf("\n");
}
void NOALIAS(void* p, void* q){
printf("\n");
}
void EXPECTEDFAIL_MAYALIAS(void* p, void* q){
printf("\n");
}
void EXPECTEDFAIL_NOALIAS(void* p, void* q){
printf("\n");
}
// ****************************************************************************************
// RC_ACCESS is used for concurrency analysis validation.
// The target memory access is indicated as the closest memory access before its call site.
// The function calls of RC_ACCESS should always appear in pairs.
// - Parameter #1 pairId: the id of pairs that RC_ACCESS occurs.
// - Parameter #2 p: the validation flags, whose predefined values are shown below.
void RC_ACCESS(int id, int flags) {
printf("\n");
}
// Predefined flag values for RC_ACCESS.
#define RC_MHP 0x01
#define RC_ALIAS 0x02
#define RC_PROTECTED 0x04
#define RC_RACE 0x10
// ****************************************************************************************
// MTA Validation
void CXT_THREAD(int thdid, char* cxt) {
//printf("\n");
}
void TCT_ACCESS(int thdid,char* cxt){
//printf("\n");
}
void INTERLEV_ACCESS(int thdid,char* cxt, char* lev){
//printf("\n");
}
void LOCK(char* lockname) {
}
void PAUSE(char* str){
printf("%s\n", str);
printf("Press ENTER to continue\n");
getchar();
}