degen: consider incoming edges to select initial levels
Fixes #257. * spot/twaalgos/degen.cc: Implement this optimization. * tests/core/degendet.test: Add a few test cases. * tests/core/ltl2tgba2.test: Adjust expected sizes. * NEWS: Mention the change.
This commit is contained in:
parent
e1c14eb90a
commit
679b6cff78
4 changed files with 74 additions and 34 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011, 2015, 2016 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
# Copyright (C) 2011, 2015-2017 Laboratoire de Recherche et
|
||||
# Développement de l'Epita (LRDE).
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
#
|
||||
|
|
@ -43,3 +43,13 @@ done
|
|||
# used to be reused, instead of the first one.
|
||||
run 0 ltl2tgba -B -f '(b & Fa) U XXG(a M Gb)' --stats=%s,%t >out
|
||||
test "4,14" = "`cat out`"
|
||||
|
||||
# Some optimization in the degeneralization allows this formula
|
||||
# to be reduced to 3 and 5 states...
|
||||
run 0 ltl2tgba -B -f 'G(Fp1 & (F!p1 W X!p1))' -f 'F(!p0 & Fp0) W Gp0' \
|
||||
--stats=%s >out
|
||||
cat >exp<<EOF
|
||||
3
|
||||
5
|
||||
EOF
|
||||
diff out exp
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ hkrss-patterns,32, 3,46, 3,46, 3,46, 3,46
|
|||
hkrss-patterns,33, 3,46, 3,46, 3,46, 3,46
|
||||
hkrss-patterns,34, 2,12, 2,12, 2,12, 2,12
|
||||
hkrss-patterns,35, 2,7, 2,7, 2,7, 2,7
|
||||
hkrss-patterns,36, 34,192, 34,192, 35,208, 35,208
|
||||
hkrss-patterns,36, 34,192, 34,192, 34,192, 34,192
|
||||
hkrss-patterns,37, 2,30, 2,30, 2,30, 2,30
|
||||
hkrss-patterns,38, 2,7, 2,7, 3,10, 3,10
|
||||
hkrss-patterns,39, 3,11, 3,11, 3,11, 3,11
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue