This repository has been archived on 2023-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
soft-an04/ReversalModel/verify.sh
2023-05-08 19:10:41 +02:00

28 lines
No EOL
525 B
Bash
Executable file

#!/bin/bash
set -e
SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
if [ $# -ne 1 ]; then
echo "LTL property name required" > /dev/stderr
exit 1
else
userid="$1"
fi
set -e
m4 -I"$SCRIPT_DIR" reversal.pml.m4 > reversal.pml
spin -a reversal.pml
gcc-13 -Wno-format-overflow -DPRINTF -o pan pan.c
./pan -a -N "$1"
exitcode="$?"
if [ "$exitcode" -ne 0 ]; then
echo "Terminated with status: $exitcode" > /dev/stderr
exit "$exitcode"
else
echo "Terminated successfully"
fi