nondet.test 1.41 KB
Newer Older
1
2
#!/bin/sh
# -*- coding: utf-8 -*-
3
# Copyright (C) 2012, 2013 Laboratoire de Recherche et Développement
4
5
6
7
8
9
# 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
10
# the Free Software Foundation; either version 3 of the License, or
11
12
13
14
15
16
17
18
# (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
19
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
21
22
23
24

. ./defs
set -e

cat >expected.1<<EOF
25
26
27
28
FGa, 0 0
GFa, 1 1
a U b, 1 0
G(Fa | !r) | Fx, 0 1
29
30
EOF

31
32
33
cut -d, -f1 expected.1 |
../../bin/ltl2tgba -F- --stats='%f, %d %p' >out.1
diff out.1 expected.1
34
35

cat >expected.2<<EOF
36
37
38
39
FGa, 0 1
GFa, 1 1
a U b, 1 1
G(Fa | !r) | Fx, 0 1
40
41
EOF

42
43
cut -d, -f1 expected.2 |
../../bin/ltl2tgba -C -F- --stats='%f, %d %p' >out.2
44
diff out.2 expected.2
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63


../../bin/ltl2tgba FGa GFa --stats='%f %d %n %s %p' >out.3
cat >expected.3<<EOF
FGa 0 1 2 0
GFa 1 0 1 1
EOF

diff out.3 expected.3


../../bin/ltl2tgba -DC FGa GFa --stats='%f %d %n %s %p' >out.4
cat >expected.4<<EOF
FGa 0 1 3 1
GFa 1 0 1 1
EOF

diff out.4 expected.4