-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (43 loc) · 1.84 KB
/
Makefile
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
export C_INCLUDE_PATH := $(CURDIR)/include:$(C_INCLUDE_PATH)
SMACK_ARGS = --time-limit=36000 --pthread --unroll=6 --loop-limit=6 --context-bound=2 -v
SMACK = smack $(SMACK_ARGS)
.PHONY: all
all:
echo "Runs take a long time, pick one or use the differential runner"
# make sure smack can understand called functions
.PHONY: test
test:
cd test && ./regtest.py --exhaustive
# original code
.PHONY: sysidle_sat
sysidle_sat:
-mkdir -p gen/sysidle_sat && cd gen/sysidle_sat && $(SMACK) --clang-options=-I$(CURDIR)/include/no_bug $(CURDIR)/src/sysidle_sat.c 2>&1
.PHONY: sysidle
sysidle:
-mkdir -p gen/sysidle && cd gen/sysidle && $(SMACK) --clang-options=-I$(CURDIR)/include/no_bug $(CURDIR)/src/sysidle.c 2>&1
# injected bugs
.PHONY: sysidle_smoke
sysidle_smoke:
-mkdir -p gen/sysidle_smoke && cd gen/sysidle_smoke && $(SMACK) --clang-options=-I$(CURDIR)/include/no_bug $(CURDIR)/src/sysidle_smoke.c 2>&1
.PHONY: sysidle_sat_smoke
sysidle_sat_smoke:
-mkdir -p gen/sysidle_sat_smoke && cd gen/sysidle_sat_smoke && $(SMACK) --clang-options=-I$(CURDIR)/include/no_bug $(CURDIR)/src/sysidle_sat_smoke.c 2>&1
.PHONY: sysidle_bug_0
sysidle_bug_0:
-mkdir -p gen/sysidle_bug_0 && cd gen/sysidle_bug_0 && $(SMACK) $(CURDIR)/src/sysidle_bug_0.c 2>&1
.PHONY: sysidle_sat_bug_0
sysidle_sat_bug_0:
-mkdir -p gen/sysidle_sat_bug_0 && cd gen/sysidle_sat_bug_0 && $(SMACK) $(CURDIR)/src/sysidle_sat_bug_0.c 2>&1
.PHONY: sysidle_bug_1
sysidle_bug_1:
-mkdir -p gen/sysidle_bug_1 && cd gen/sysidle_bug_1 && $(SMACK) $(CURDIR)/src/sysidle_bug_1.c 2>&1
.PHONY: sysidle_sat_bug_1
sysidle_sat_bug_1:
-mkdir -p gen/sysidle_sat_bug_1 && cd gen/sysidle_sat_bug_1 && $(SMACK) $(CURDIR)/src/sysidle_sat_bug_1.c 2>&1
# remove generated files etc
.PHONY: clean
clean:
$(RM) -r gen/*
find . -name "*.bc" -delete
find . -name "*.bpl" -delete
find . -name "*output.txt" -delete