twagraph: fix purge_dead_states on alternating automata
* tests/core/alternating.test: Run some of the test through valgrind to exhibit the bug. * spot/twa/twagraph.cc: Fix it.
This commit is contained in:
parent
042c7a0f5b
commit
12ecb3febf
2 changed files with 10 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2016 Laboratoire de Recherche et Développement de
|
||||
# l'Epita (LRDE).
|
||||
# Copyright (C) 2016, 2017 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
#
|
||||
|
|
@ -319,9 +319,9 @@ State: 3
|
|||
--END--
|
||||
EOF
|
||||
|
||||
autfilt --remove-unreachable-states ex4 > out4
|
||||
run 0 autfilt --remove-unreachable-states ex4 > out4
|
||||
diff expect4 out4
|
||||
autfilt --remove-dead-states ex4 > out4
|
||||
run 0 autfilt --remove-dead-states ex4 > out4
|
||||
diff ex2 out4
|
||||
|
||||
|
||||
|
|
@ -338,7 +338,7 @@ State: 1
|
|||
--END--
|
||||
EOF
|
||||
|
||||
autfilt --remove-dead-states ex5 > out5
|
||||
run 0 autfilt --remove-dead-states ex5 > out5
|
||||
cat >expect <<EOF
|
||||
HOA: v1
|
||||
States: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue