| # |
| # Copyright 2017, Data61 |
| # Commonwealth Scientific and Industrial Research Organisation (CSIRO) |
| # ABN 41 687 119 230. |
| # |
| # 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(DATA61_BSD) |
| # |
| |
| 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.* |