Update out of order memory models to include instruction scheduling
[urcu.git] / formal-model / ooomem-deps / Makefile
1 # This program is free software; you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation; either version 2 of the License, or
4 # (at your option) any later version.
5 #
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU General Public License for more details.
10 #
11 # You should have received a copy of the GNU General Public License
12 # along with this program; if not, write to the Free Software
13 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14 #
15 # Copyright (C) Mathieu Desnoyers, 2009
16 #
17 # Authors: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
18
19 #CFLAGS=-DSAFETY
20 CFLAGS=-DHASH64
21
22 SPINFILE=mem.spin
23
24 default:
25 make read_order | tee read_order.log
26 make read_order_sync_core | tee read_order_sync_core.log
27 make asserts | tee asserts.log
28 make summary
29
30 #show trail : spin -v -t -N pan.ltl input.spin
31 # after each individual make.
32
33 summary:
34 @echo
35 @echo "Verification summary"
36 @grep error *.log
37
38 asserts: clean
39 cat DEFINES > .input.spin
40 cat ${SPINFILE} >> .input.spin
41 rm -f .input.spin.trail
42 spin -a -X .input.spin
43 gcc -w ${CFLAGS} -DSAFETY -o pan pan.c
44 ./pan -v -c1 -X -m10000 -w19
45 cp .input.spin $@.spin.input
46 -cp .input.spin.trail $@.spin.input.trail
47
48 read_order: clean read_order_ltl run
49 cp .input.spin $@.spin.input
50 -cp .input.spin.trail $@.spin.input.trail
51
52 read_order_sync_core: clean read_order_ltl read_order_sync_core_define run
53 cp .input.spin $@.spin.input
54 -cp .input.spin.trail $@.spin.input.trail
55
56 read_order_sync_core_define:
57 cp read_order_sync_core.define .input.define
58
59 read_order_ltl:
60 touch .input.define
61 cat DEFINES > pan.ltl
62 cat .input.define >> pan.ltl
63 spin -f "!(`cat read_order.ltl | grep -v ^//`)" >> pan.ltl
64
65 run: pan
66 ./pan -a -v -c1 -X -m10000 -w19
67
68 pan: pan.c
69 gcc -w ${CFLAGS} -o pan pan.c
70
71 pan.c: pan.ltl ${SPINFILE}
72 cat DEFINES > .input.spin
73 cat .input.define >> .input.spin
74 cat ${SPINFILE} >> .input.spin
75 rm -f .input.spin.trail
76 spin -a -X -N pan.ltl .input.spin
77
78 .PHONY: clean default distclean summary
79 clean:
80 rm -f pan* trail.out .input.spin* *.spin.trail .input.define
81 distclean:
82 rm -f *.trail *.input *.log
This page took 0.032382 seconds and 4 git commands to generate.