ltl2tgba: clear simplification cache between translations
The cache used in formula simplification will keep atomic propositions defined between several translations, and may impact variable order. Reported by Maximilien Colange. * spot/tl/simplify.hh, spot/tl/simplify.cc, spot/twaalgos/translate.cc, spot/twaalgos/translate.hh (clear_cache): New method. * bin/ltl2tgba.cc, bin/ltl2tgta.cc: Call it. * spot/twaalgos/stats.cc: Do not keep a point to the formula after printing statistics. * tests/core/ltl2tgba.test: Add a test case. * tests/core/readsave.test: Adjust one formula. * NEWS: Mention the issue.
This commit is contained in:
parent
8e19d3f47e
commit
f07fbbae79
10 changed files with 60 additions and 14 deletions
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/sh
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
|
||||
# Laboratoire de Recherche et Développement de l'Epita (LRDE).
|
||||
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
# et Marie Curie.
|
||||
# Copyright (C) 2009-2017 Laboratoire de Recherche et Développement de
|
||||
# l'Epita (LRDE).
|
||||
# Copyright (C) 2003-2004 Laboratoire d'Informatique de Paris 6
|
||||
# (LIP6), département Systèmes Répartis Coopératifs (SRC), Université
|
||||
# Pierre et Marie Curie.
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
#
|
||||
|
|
@ -230,3 +230,11 @@ ltl2tgba -f a -s | autfilt -q --ap=1 --lbtt | autfilt -q --ap=1
|
|||
# of the test-suite where this resize is triggered, so do not remove
|
||||
# it unless you can find another place that triggers that.
|
||||
genltl --go-theta=18 | ltl2tgba --low --any -q
|
||||
|
||||
# Calling ltl2tgba once for two formulas should give the same result
|
||||
# as calling twice on each formula. We had a problem where the order
|
||||
# of atomic propositions would be sensible to the formulas seen
|
||||
# before.
|
||||
(ltl2tgba Fb ; ltl2tgba 'GFa & GFb') >out1
|
||||
ltl2tgba Fb 'GFa & GFb' >out2
|
||||
diff out1 out2
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ cat >expected <<EOF
|
|||
<F(b | Ga), 3 states>, 5, 1
|
||||
<F(!b & G(!b | G!a)), 3 states>, 5, 1
|
||||
<XF!b, 3 states>, 4, 1
|
||||
<Gb | G!b, 3 states>, 4, 1
|
||||
<G!b | Gb, 3 states>, 4, 1
|
||||
<XFb, 3 states>, 4, 1
|
||||
<F(b W a), 3 states>, 6, 1
|
||||
<(a & !b & (b | (!b M F!a))) | (!a & (b | (!b & (b W Ga)))), 3 states>, 5, 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue