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.
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.
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.
15 # Copyright (C) Mathieu Desnoyers, 2009
17 # Authors: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
25 make urcu_free | tee urcu_free.log
26 make urcu_free_no_rmb | tee urcu_free_no_rmb.log
27 make urcu_free_no_wmb | tee urcu_free_no_wmb.log
28 make urcu_free_no_mb | tee urcu_free_no_mb.log
29 make urcu_free_single_flip | tee urcu_free_single_flip.log
30 make asserts | tee asserts.log
33 #show trail : spin -v -t -N pan.ltl input.spin
34 # after each individual make.
38 @echo
"Verification summary"
42 cat DEFINES
> .input.spin
43 cat
${SPINFILE} >> .input.spin
44 rm -f .input.spin.trail
45 spin
-a
-X .input.spin
46 gcc
-w
${CFLAGS} -DSAFETY
-o pan pan.c
47 .
/pan
-v
-c1
-X
-m10000
-w20
48 cp .input.spin
$@.spin.input
49 -cp .input.spin.trail
$@.spin.input.trail
51 urcu_free
: clean urcu_free_ltl run
52 cp .input.spin
$@.spin.input
53 -cp .input.spin.trail
$@.spin.input.trail
55 urcu_free_no_rmb
: clean urcu_free_ltl urcu_free_no_rmb_define run
56 cp .input.spin
$@.spin.input
57 -cp .input.spin.trail
$@.spin.input.trail
59 urcu_free_no_rmb_define
:
60 cp urcu_free_no_rmb.
define .input.
define
62 urcu_free_no_wmb
: clean urcu_free_ltl urcu_free_no_wmb_define run
63 cp .input.spin
$@.spin.input
64 -cp .input.spin.trail
$@.spin.input.trail
66 urcu_free_no_wmb_define
:
67 cp urcu_free_no_wmb.
define .input.
define
69 urcu_free_no_mb
: clean urcu_free_ltl urcu_free_no_mb_define run
70 cp .input.spin
$@.spin.input
71 -cp .input.spin.trail
$@.spin.input.trail
73 urcu_free_no_mb_define
:
74 cp urcu_free_no_mb.
define .input.
define
76 urcu_free_single_flip
: clean urcu_free_ltl urcu_free_single_flip_define run
77 cp .input.spin
$@.spin.input
78 -cp .input.spin.trail
$@.spin.input.trail
80 urcu_free_single_flip_define
:
81 cp urcu_free_single_flip.
define .input.
define
86 cat .input.
define >> pan.ltl
87 spin
-f
"!(`cat urcu_free.ltl | grep -v ^//`)" >> pan.ltl
90 .
/pan
-a
-v
-c1
-X
-m10000
-w20
93 gcc
-w
${CFLAGS} -o pan pan.c
95 pan.c
: pan.ltl
${SPINFILE}
96 cat DEFINES
> .input.spin
97 cat .input.
define >> .input.spin
98 cat
${SPINFILE} >> .input.spin
99 rm -f .input.spin.trail
100 spin
-a
-X
-N pan.ltl .input.spin
102 .PHONY
: clean default
distclean summary
104 rm -f pan
* trail.out .input.spin
* *.spin.trail .input.
define
106 rm -f
*.trail
*.input
*.log