hoa: use the tgba_digraph interface to save automata

* src/tgbaalgos/hoa.cc: Here.
* src/tgbatest/det.test, src/tgbatest/hoaparse.test,
src/tgbatest/monitor.test, doc/org/oaut.org: Adjust.
This commit is contained in:
Alexandre Duret-Lutz 2015-01-04 23:33:49 +01:00
parent 892fb11f04
commit 0895f11503
5 changed files with 246 additions and 163 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement
# de l'Epita (LRDE).
# Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche et
# Développement de l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
#
@ -83,7 +83,7 @@ EOF
# FIXME: we should improve this output
cat >ex.hoa <<'EOF'
HOA: v1
States: 5
States: 7
Start: 0
AP: 1 "a"
acc-name: Buchi
@ -93,21 +93,25 @@ properties: trans-labels explicit-labels state-acc
State: 0
[!0] 0
[0] 1
[!0] 2
[!0] 3
State: 1
[!0] 0
[0] 3
[!0] 2
State: 2 {0}
[!0] 2
State: 3
[0] 2
[!0] 3
State: 2
[!0] 0
[0] 3
[!0] 2
[0] 4
[0] 2
[!0] 3
[0] 5
State: 3 {0}
[!0] 3
State: 4 {0}
[!0] 2
[0] 4
[!0] 3
State: 5 {0}
[!0] 3
[0] 5
State: 6 {0}
[t] 6
--END--
EOF

View file

@ -1,6 +1,6 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2014 Laboratoire de Recherche et Développement de
# Copyright (C) 2014, 2015 Laboratoire de Recherche et Développement de
# l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
@ -271,16 +271,16 @@ Acceptance: 2 Inf(0)&Inf(1)
properties: trans-labels explicit-labels state-acc complete deterministic
--BODY--
State: 0 {0}
[!0&!1] 1
[!0&!1] 2
[0&!1] 0
[!0&1] 2
[0&1] 2
State: 1 {0}
[!0&1] 1
[0&1] 1
State: 1 {1}
[!0&!1] 1
[0&!1] 1
[!0&1] 1
[0&1] 1
State: 2 {1}
State: 2 {0}
[!0&!1] 2
[0&!1] 2
[!0&1] 2
@ -561,23 +561,23 @@ EOF
expectok input <<EOF
HOA: v1
States: 3
Start: 0
Start: 2
AP: 2 "a" "\"b\""
acc-name: Buchi
Acceptance: 1 Inf(0)
properties: trans-labels explicit-labels state-acc complete
--BODY--
State: 0
State: 0 {0}
[1] 1
[!1] 2
[!0] 1
[0] 2
[!1] 0
State: 1
[!0] 1
[0] 2
State: 2 {0}
[0] 0
State: 2
[1] 1
[!1] 2
[!1] 0
[!0] 1
[0] 0
--END--
HOA: v1
States: 4

View file

@ -1,7 +1,7 @@
#!/bin/sh
# -*- coding: utf-8 -*-
# Copyright (C) 2014 Laboratoire de Recherche et Développement de
# l'Epita (LRDE).
# Copyright (C) 2014, 2015 Laboratoire de Recherche et Développement
# de l'Epita (LRDE).
#
# This file is part of Spot, a model checking library.
#
@ -47,16 +47,16 @@ expect ../../bin/ltl2tgba --monitor a --hoa<<EOF
HOA: v1
name: "a"
States: 2
Start: 0
Start: 1
AP: 1 "a"
acc-name: all
Acceptance: 0 t
properties: trans-labels explicit-labels state-acc deterministic
--BODY--
State: 0
[0] 1
[t] 0
State: 1
[t] 1
[0] 0
--END--
EOF