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
|
|
@ -45,7 +45,7 @@ namespace spot
|
|||
|
||||
public:
|
||||
ec_renault13lpar(kripkecube<State, SuccIterator>& sys,
|
||||
twacube* twa)
|
||||
twacube_ptr twa)
|
||||
: intersect<State, SuccIterator, StateHash, StateEqual,
|
||||
ec_renault13lpar<State, SuccIterator,
|
||||
StateHash, StateEqual>>(sys, twa),
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ namespace spot
|
|||
{
|
||||
public:
|
||||
intersect(kripkecube<State, SuccIterator>& sys,
|
||||
twacube* twa):
|
||||
twacube_ptr twa):
|
||||
sys_(sys), twa_(twa)
|
||||
{
|
||||
assert(is_a_kripkecube(sys));
|
||||
|
|
@ -254,7 +254,7 @@ namespace spot
|
|||
std::shared_ptr<trans_index> it_prop;
|
||||
};
|
||||
kripkecube<State, SuccIterator>& sys_;
|
||||
twacube* twa_;
|
||||
twacube_ptr twa_;
|
||||
std::vector<todo_element> todo;
|
||||
typedef std::unordered_map<const product_state, int,
|
||||
product_state_hash,
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ namespace spot
|
|||
std::vector<std::string>* names_;
|
||||
bdd_dict_ptr dict_;
|
||||
std::unordered_map<int, int> reverse_binder_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -116,7 +115,7 @@ namespace spot
|
|||
|
||||
public:
|
||||
product_to_twa(kripkecube<State, SuccIterator>& sys,
|
||||
twacube* twa)
|
||||
twacube_ptr twa)
|
||||
: intersect<State, SuccIterator, StateHash, StateEqual,
|
||||
product_to_twa<State, SuccIterator,
|
||||
StateHash, StateEqual>>(sys, twa)
|
||||
|
|
@ -143,7 +142,6 @@ namespace spot
|
|||
for (auto ap : this->twa_->get_ap())
|
||||
{
|
||||
auto idx = res_->register_ap(ap);
|
||||
std::cout << ap << idx << std::endl;
|
||||
reverse_binder_[i++] = idx;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue