#!/bin/sh # -*- coding: utf-8 -*- # Copyright (C) 2023 Laboratoire de Recherche et # Développement de l'Epita (LRDE). # # This file is part of Spot, a model checking library. # # Spot is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Spot is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . . ./defs set -e # all tools should be able to use %l as serial number for their output # Make sure serial numbers count the output automata randaut -n10 --name='aut %l' 2 | autfilt -N3..5 --name='%M/out %l' | autfilt --stats=%M >out cat >exp < aut.hoa rm aut-?.hoa autfilt aut.hoa -o aut-%l.hoa # check serial output in various tools genaut --m-nba=2..3 --name='%F=%L/%l' | autfilt --stats=%M >out genltl --and-f=2..3 --stats=%F=%L/%l >> out ltl2tgba a b --name=%f/%l | autfilt --stats=%M >> out ltldo -f a -f b ltl2tgba --name=%f/%l | autfilt --stats=%M >> out genltl --or-g=2..5 --stats=%L,%l,%f | ltlfilt -F -/3 -N 2..3 --stats='%<,%l' >>out randltl -n10 3 --stats=%l,%f | ltlfilt -F -/2 -N 2..3 --stats='%<,%l' >> out cat >exp<>%f'.ltl --format=pass2 (uniq -c p1.ltl; uniq -c p20.ltl) | sed 's/^ *\([0-9][0-9]*\) */\1 /g' >out cat >expected < naut-.hoa for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do ltl2tgba 1 --name "file$i" > naut$i.hoa done autfilt naut*.hoa naut*.hoa --output='>>%M' --format=%M > stdout cat >expected <expected7 <expected15 <