#!/bin/sh # -*- coding: utf-8 -*- # Copyright (C) 2013, 2014 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 # Make sure degen-skip=0 and degen-skip=1 produce the expected # automata for 'GFa & GFb' ../../bin/ltl2tgba -B 'GFa & GFb' > out1 ../../bin/ltl2tgba -B -x degen-lskip=1 'GFa & GFb' > out2 ../../bin/ltl2tgba -B -x degen-lskip=0 'GFa & GFb' > out3 diff out1 out2 cmp out2 out3 && exit 1 cat <expected2 digraph G { 0 [label="", style=invis, height=0] 0 -> 1 1 [label="0", peripheries=2] 1 -> 1 [label="a & b\n{0}"] 1 -> 2 [label="!a & b\n{0}"] 1 -> 3 [label="!b\n{0}"] 2 [label="1"] 2 -> 1 [label="a"] 2 -> 2 [label="!a"] 3 [label="2"] 3 -> 1 [label="a & b"] 3 -> 2 [label="!a & b"] 3 -> 3 [label="!b"] } EOF cat <expected3 digraph G { 0 [label="", style=invis, height=0] 0 -> 1 1 [label="0", peripheries=2] 1 -> 2 [label="1\n{0}"] 2 [label="1"] 2 -> 3 [label="b"] 2 -> 2 [label="!b"] 3 [label="2"] 3 -> 1 [label="a"] 3 -> 3 [label="!a"] } EOF diff out2 expected2 diff out3 expected3