Skip to content

Instantly share code, notes, and snippets.

@5nizza
Created October 21, 2024 12:00
Show Gist options
  • Save 5nizza/f51d2c35cd0bb1899f35a767091a1a7a to your computer and use it in GitHub Desktop.
Save 5nizza/f51d2c35cd0bb1899f35a767091a1a7a to your computer and use it in GitHub Desktop.
Convert TLSF into LTL and feed to Strix
#/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