Grégoire Sutre, 07/22/2010 03:09 pm
Download (247 Bytes)
#!/bin/sh
cat <<EOF
scm flat :
nb_channels = 1 ;
parameters :
real a ;
automaton proc :
initial : 1
EOF
i=1
while [ $i -lt $1 ]; do
state $i : to $((i+1)) : when true ;
i=$((i+1))
done
state $i : to 1 : when true ;