langmap: adjust to only color non-unique languages
Fixes #203. * spot/twaalgos/langmap.hh (highlight_languages): Simplify the interface by only taking the automaton to color. * spot/twaalgos/langmap.cc (highlight_languages): Only introduce color for states that have a non-unique language. * tests/core/highlightstate.test: Update and add more tests. * tests/python/langmap.py: Keep the tests simple. * bin/autfilt.cc: Adjust usage and help string.
This commit is contained in:
parent
aa457a204d
commit
0ad62cb97b
5 changed files with 131 additions and 104 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2016 Laboratoire de Recherche et Développement de l'Epita.
|
||||
// Copyright (C) 2016, 2017 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
//
|
||||
|
|
@ -34,7 +35,9 @@ namespace spot
|
|||
SPOT_API std::vector<unsigned>
|
||||
language_map(const const_twa_graph_ptr& aut);
|
||||
|
||||
/// \brief Color automaton's states that recognize the same language.
|
||||
/// \brief Color state that recognize identical language.
|
||||
///
|
||||
/// State that recognize a unique language will not be colored.
|
||||
SPOT_API void
|
||||
highlight_languages(twa_graph_ptr& aut, const std::vector<unsigned>& v);
|
||||
highlight_languages(twa_graph_ptr& aut);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue