23 lines
No EOL
376 B
Bash
Executable file
23 lines
No EOL
376 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ $# -ne 1 ]; then
|
|
echo "LTL property name required" > /dev/stderr
|
|
exit 1
|
|
else
|
|
userid="$1"
|
|
fi
|
|
|
|
set -e
|
|
|
|
spin -a reversal.pml
|
|
gcc-13 -Wno-format-overflow -o pan pan.c
|
|
./pan -a "$1"
|
|
|
|
exitcode="$?"
|
|
|
|
if [ "$exitcode" -ne 0 ]; then
|
|
echo "Terminated with status: $exitcode" > /dev/stderr
|
|
exit "$exitcode"
|
|
else
|
|
echo "Terminated successfully"
|
|
fi |