Created
October 21, 2024 12:00
-
-
Save 5nizza/f51d2c35cd0bb1899f35a767091a1a7a to your computer and use it in GitHub Desktop.
Convert TLSF into LTL and feed to Strix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
set -e | |
if [ "$#" -ne 1 ]; then | |
echo "Specify input TLSF file" | |
exit 1 | |
fi | |
tlsf_file=$1 | |
echo "input tlsf: " $tlsf_file | |
ltl_file=$(mktemp).ltl | |
echo "tmp ltl file: " $ltl_file | |
echo "output file: " $ltl_file.hoa | |
echo | |
syfco $1 -s0 -f ltl -q double -m fully -os Mealy -o $ltl_file | |
cat $ltl_file | |
echo | |
ins=`syfco $1 -ins` | |
outs=`syfco $1 -outs` | |
echo "inputs: " $ins | |
echo "outputs: " $outs | |
echo "-------------------------------------------------------------" | |
# run strix | |
strix -F $ltl_file --ins "$ins" --outs "$outs" -o hoa -O $ltl_file.hoa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment