blob: 667472401bb3d02c33cfcf7d8d52497ac24304c3 [file] [log] [blame]
#
# Copyright 2014, NICTA
#
# This software may be distributed and modified according to the terms of
# the BSD 2-Clause license. Note that NO WARRANTY is provided.
# See "LICENSE_BSD2.txt" for details.
#
# @TAG(NICTA_BSD)
#
all: safety
PROMELA=binary-sem.pml
pan.c: ${PROMELA}
spin -a $<
pan: pan.c
gcc -O2 $< -DREACH -o $@
.PHONY: safety
safety: pan
./pan -N cansend -a -m500000 | tee /dev/stderr | grep -q 'errors: 0'
./pan -N mutex -a -m500000 | tee /dev/stderr | grep -q 'errors: 0'
./pan -N liveness -a -m500000 | tee /dev/stderr | grep -q 'errors: 0'
clean:
rm -f pan
rm -f ${PROMELA}.trail
rm -f pan.*
rm -f _spin_nvr.tmp