Promote use of shared_ptr
* spot/kripke/kripke.hh, spot/ltsmin/ltsmin.cc, spot/ltsmin/ltsmin.hh, spot/mc/ec.hh, spot/mc/intersect.hh, spot/mc/utils.hh, spot/twacube/Makefile.am, spot/twacube/fwd.hh, spot/twacube/twacube.hh, spot/twacube_algos/convert.cc, spot/twacube_algos/convert.hh, tests/core/twacube.cc, tests/ltsmin/modelcheck.cc: here.
This commit is contained in:
parent
7d2abe229b
commit
765bb8a7c4
13 changed files with 64 additions and 31 deletions
|
|
@ -59,14 +59,14 @@ namespace spot
|
|||
return result;
|
||||
}
|
||||
|
||||
spot::twacube* twa_to_twacube(const spot::const_twa_graph_ptr aut)
|
||||
spot::twacube_ptr twa_to_twacube(const spot::const_twa_graph_ptr aut)
|
||||
{
|
||||
// Compute the necessary binder and extract atomic propositions
|
||||
std::unordered_map<int, int> ap_binder;
|
||||
std::vector<std::string>* aps = extract_aps(aut, ap_binder);
|
||||
|
||||
// Declare the twa cube
|
||||
spot::twacube* tg = new spot::twacube(*aps);
|
||||
auto tg = spot::make_twacube(*aps);
|
||||
|
||||
// Fix acceptance
|
||||
tg->acc() = aut->acc();
|
||||
|
|
@ -135,7 +135,7 @@ namespace spot
|
|||
}
|
||||
|
||||
spot::twa_graph_ptr
|
||||
twacube_to_twa(spot::twacube* twacube)
|
||||
twacube_to_twa(spot::twacube_ptr twacube)
|
||||
{
|
||||
// Grab necessary variables
|
||||
auto& theg = twacube->get_graph();
|
||||
|
|
|
|||
|
|
@ -47,10 +47,10 @@ namespace spot
|
|||
std::unordered_map<int, int>& ap_binder);
|
||||
|
||||
/// \brief Convert a twa into a twacube
|
||||
SPOT_API spot::twacube*
|
||||
SPOT_API twacube_ptr
|
||||
twa_to_twacube(spot::const_twa_graph_ptr aut);
|
||||
|
||||
/// \brief Convert a twacube into a twa
|
||||
SPOT_API spot::twa_graph_ptr
|
||||
twacube_to_twa(spot::twacube* twacube);
|
||||
twacube_to_twa(spot::twacube_ptr twacube);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue