blob: 3ae4a8cfe02ae7b36d8bf4bf1c6cced43b47cbd7 [file] [log] [blame]
#
# Copyright 2017, Data61, CSIRO (ABN 41 687 119 230)
#
# SPDX-License-Identifier: BSD-2-Clause
#
all: safety liveness
pan.c: sem.promela
spin -a $<
pan-safety: pan.c
gcc $< -DREACH -DSAFETY -o $@
pan-liveness: pan.c
gcc $< -DNP -DNOREDUCE -o $@
safety: pan-safety
./pan-safety | tee /dev/stderr | grep -q 'errors: 0'
touch safety
liveness: pan-liveness
./pan-liveness -l -m100000 | tee /dev/stderr | grep -q 'errors: 0'
touch liveness
clean:
rm -f pan-safety
rm -f pan-liveness
rm -f safety
rm -f liveness
rm -f *.trail
rm -f pan.*