#!/bin/sh # -*- coding: utf-8 -*- # Copyright (C) by the Spot authors, see the AUTHORS file for details. # # 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 for x in P 'Pmin odd' 'Pmax even' p 'pmin odd' 'pmax even'; do ltl2tgba "-$x" FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' >>res ltl2tgba FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' | autfilt --name=%M --high "-$x" >>res2 ltl2tgba -D "-$x" FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' >>res3 ltl2tgba FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' | autfilt -D --name=%M --high "-$x" >>res4 ( ## --colored is normally short for --colored-parity=any ## But in case someone types something like ## --parity='max odd' --colored ## let's make sure we handle it like --colored-parity='max odd'. echo "=== -$x ===" ltl2tgba FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' \ "-$x" --stats='%[]g' echo "=== -$x --colored ===" ltl2tgba FGa 'GFa & GFb' '(p0 W XXGp0) & GFp1 & FGp2' \ "-$x" --colored --stats='%[]g' ) >> res5 done cat >expected<expected2<expected3<expected4<expected5 < XXXb)' -f '(p0 W XXGp0) & GFp1 & FGp2' # Test the behavior of our determinization on Max Michel automata. # Any change to Spot that lowers the output.states is welcome :-) genaut --m-nba=1..4 | autcross --language-preserved 'autfilt -D' --csv=out.csv cut -d, -f4,17 out.csv > sizes.csv cat >expected <