1 val
=${1-1} rounds
=${2-5}
2 echo "running $rounds iterations on initial input $val"
6 echo "starting visit $@" >&3
8 echo $val |
sed 's/\(.\)/\1\n/g'
11 exec < <(visit $
(($1 - 1)) $val)
18 [[ ! $next ]] && continue
20 if [[ $lines -lt 70 ]]; then
22 elif [[ $lines == 70 ]]; then
25 if [[ $next == $prev ]]; then
36 echo "visit $1 parsed $lines bytes" >&3
38 echo "final length $(visit $rounds $val | wc -l)"