dupexp: rename to copy, and preserve named states on request
* src/twaalgos/dupexp.cc, src/twaalgos/dupexp.hh: Rename to... * src/twaalgos/copy.cc, src/twaalgos/copy.hh: ... these. Get rid of dupexp_bfs, rename dupexp_dfs as copy, and add an option to preserve named states. * src/twaalgos/Makefile.am, src/tests/dupexp.test, src/tests/ikwiad.cc, src/tests/sccsimpl.test, src/twa/twagraph.hh, src/twaalgos/dot.cc, src/twaalgos/stutter.cc, wrap/python/spot_impl.i: Adjust. * NEWS: Mention this change.
This commit is contained in:
parent
dcb9d7e8a8
commit
0bbcd6e85e
11 changed files with 42 additions and 54 deletions
|
|
@ -24,7 +24,7 @@
|
|||
#include "graph/ngraph.hh"
|
||||
#include "twa/bdddict.hh"
|
||||
#include "twa/twa.hh"
|
||||
#include "twaalgos/dupexp.hh"
|
||||
#include "twaalgos/copy.hh"
|
||||
#include "tl/formula.hh"
|
||||
#include <sstream>
|
||||
|
||||
|
|
@ -476,24 +476,24 @@ namespace spot
|
|||
}
|
||||
|
||||
inline twa_graph_ptr make_twa_graph(const twa_graph_ptr& aut,
|
||||
twa::prop_set p)
|
||||
twa::prop_set p)
|
||||
{
|
||||
return std::make_shared<twa_graph>(aut, p);
|
||||
}
|
||||
|
||||
inline twa_graph_ptr make_twa_graph(const const_twa_graph_ptr& aut,
|
||||
twa::prop_set p)
|
||||
twa::prop_set p)
|
||||
{
|
||||
return std::make_shared<twa_graph>(aut, p);
|
||||
}
|
||||
|
||||
inline twa_graph_ptr make_twa_graph(const const_twa_ptr& aut,
|
||||
twa::prop_set p)
|
||||
twa::prop_set p)
|
||||
{
|
||||
auto a = std::dynamic_pointer_cast<const twa_graph>(aut);
|
||||
if (a)
|
||||
return std::make_shared<twa_graph>(a, p);
|
||||
else
|
||||
return tgba_dupexp_dfs(aut, p);
|
||||
return copy(aut, p);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue