Fix some bdd_dict_ptr not being passed by const reference.
* iface/dve2/dve2.cc, iface/dve2/dve2.hh, src/kripke/kripkeexplicit.cc, src/kripke/kripkeexplicit.hh, src/ltlvisit/contain.cc, src/ltlvisit/contain.hh, src/ltlvisit/simplify.cc, src/ltlvisit/simplify.hh, src/tgba/bddprint.cc, src/tgba/bddprint.hh, src/tgba/formula2bdd.cc, src/tgba/formula2bdd.hh, src/tgba/taatgba.cc, src/tgba/taatgba.hh, src/tgba/tgbagraph.hh, src/tgbaalgos/compsusp.cc, src/tgbaalgos/compsusp.hh, src/tgbaalgos/lbtt.cc, src/tgbaalgos/lbtt.hh, src/tgbaalgos/ltl2tgba_fm.cc, src/tgbaalgos/ltl2tgba_fm.hh, src/tgbaalgos/randomgraph.cc, src/tgbaalgos/randomgraph.hh, src/tgbaalgos/translate.cc, src/tgbaalgos/translate.hh, src/tgbaalgos/word.cc, src/tgbaalgos/word.hh: Pass shared_ptr to functions by const ref.
This commit is contained in:
parent
51151ab271
commit
bf6c906772
27 changed files with 62 additions and 61 deletions
|
|
@ -345,7 +345,7 @@ namespace spot
|
|||
|
||||
|
||||
tgba_digraph_ptr
|
||||
compsusp(const ltl::formula* f, bdd_dict_ptr dict,
|
||||
compsusp(const ltl::formula* f, const bdd_dict_ptr& dict,
|
||||
bool no_wdba, bool no_simulation,
|
||||
bool early_susp, bool no_susp_product, bool wdba_smaller,
|
||||
bool oblig)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace spot
|
|||
/// long-term stability should better use the services of the
|
||||
/// spot::translator class instead.
|
||||
SPOT_API tgba_digraph_ptr
|
||||
compsusp(const ltl::formula* f, bdd_dict_ptr dict,
|
||||
compsusp(const ltl::formula* f, const bdd_dict_ptr& dict,
|
||||
bool no_wdba = false, bool no_simulation = false,
|
||||
bool early_susp = false, bool no_susp_product = false,
|
||||
bool wdba_smaller = false, bool oblig = false);
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ namespace spot
|
|||
tgba_digraph_ptr
|
||||
lbtt_read_tgba(unsigned num_states, unsigned num_acc,
|
||||
std::istream& is, std::string& error,
|
||||
bdd_dict_ptr dict,
|
||||
const bdd_dict_ptr& dict,
|
||||
ltl::environment& env, ltl::environment& envacc)
|
||||
{
|
||||
auto aut = make_tgba_digraph(dict);
|
||||
|
|
@ -237,7 +237,7 @@ namespace spot
|
|||
tgba_digraph_ptr
|
||||
lbtt_read_gba(unsigned num_states, unsigned num_acc,
|
||||
std::istream& is, std::string& error,
|
||||
bdd_dict_ptr dict,
|
||||
const bdd_dict_ptr& dict,
|
||||
ltl::environment& env, ltl::environment& envacc)
|
||||
{
|
||||
auto aut = make_tgba_digraph(dict);
|
||||
|
|
@ -313,7 +313,7 @@ namespace spot
|
|||
|
||||
|
||||
tgba_digraph_ptr
|
||||
lbtt_parse(std::istream& is, std::string& error, bdd_dict_ptr dict,
|
||||
lbtt_parse(std::istream& is, std::string& error, const bdd_dict_ptr& dict,
|
||||
ltl::environment& env, ltl::environment& envacc)
|
||||
{
|
||||
is >> std::skipws;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace spot
|
|||
/// \return the read tgba or 0 on error.
|
||||
SPOT_API tgba_digraph_ptr
|
||||
lbtt_parse(std::istream& is, std::string& error,
|
||||
bdd_dict_ptr dict,
|
||||
const bdd_dict_ptr& dict,
|
||||
ltl::environment& env = ltl::default_environment::instance(),
|
||||
ltl::environment& envacc = ltl::default_environment::instance());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ namespace spot
|
|||
{
|
||||
public:
|
||||
|
||||
translate_dict(bdd_dict_ptr dict, ltl_simplifier* ls, bool exprop,
|
||||
translate_dict(const bdd_dict_ptr& dict, ltl_simplifier* ls, bool exprop,
|
||||
bool single_acc)
|
||||
: dict(dict),
|
||||
ls(ls),
|
||||
|
|
@ -2027,7 +2027,7 @@ namespace spot
|
|||
|
||||
|
||||
tgba_digraph_ptr
|
||||
ltl_to_tgba_fm(const formula* f, bdd_dict_ptr dict,
|
||||
ltl_to_tgba_fm(const formula* f, const bdd_dict_ptr& dict,
|
||||
bool exprop, bool symb_merge, bool branching_postponement,
|
||||
bool fair_loop_approx, const atomic_prop_set* unobs,
|
||||
ltl_simplifier* simplifier)
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ namespace spot
|
|||
///
|
||||
/// \return A spot::tgba_digraph that recognizes the language of \a f.
|
||||
SPOT_API tgba_digraph_ptr
|
||||
ltl_to_tgba_fm(const ltl::formula* f, bdd_dict_ptr dict,
|
||||
ltl_to_tgba_fm(const ltl::formula* f, const bdd_dict_ptr& dict,
|
||||
bool exprop = false, bool symb_merge = true,
|
||||
bool branching_postponement = false,
|
||||
bool fair_loop_approx = false,
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ namespace spot
|
|||
|
||||
tgba_digraph_ptr
|
||||
random_graph(int n, float d,
|
||||
const ltl::atomic_prop_set* ap, bdd_dict_ptr dict,
|
||||
const ltl::atomic_prop_set* ap, const bdd_dict_ptr& dict,
|
||||
int n_acc, float a, float t,
|
||||
ltl::environment* env)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ namespace spot
|
|||
/// successors one by one.)
|
||||
SPOT_API tgba_digraph_ptr
|
||||
random_graph(int n, float d,
|
||||
const ltl::atomic_prop_set* ap, bdd_dict_ptr dict,
|
||||
const ltl::atomic_prop_set* ap, const bdd_dict_ptr& dict,
|
||||
int n_acc = 0, float a = 0.1, float t = 0.5,
|
||||
ltl::environment* env = <l::default_environment::instance());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace spot
|
|||
}
|
||||
}
|
||||
|
||||
void translator::build_simplifier(bdd_dict_ptr dict)
|
||||
void translator::build_simplifier(const bdd_dict_ptr& dict)
|
||||
{
|
||||
ltl::ltl_simplifier_options options(false, false, false);
|
||||
switch (level_)
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ namespace spot
|
|||
setup_opt(opt);
|
||||
}
|
||||
|
||||
translator(bdd_dict_ptr dict, const option_map* opt = 0)
|
||||
translator(const bdd_dict_ptr& dict, const option_map* opt = 0)
|
||||
: postprocessor(opt)
|
||||
{
|
||||
build_simplifier(dict);
|
||||
|
|
@ -114,7 +114,7 @@ namespace spot
|
|||
|
||||
protected:
|
||||
void setup_opt(const option_map* opt);
|
||||
void build_simplifier(bdd_dict_ptr dict);
|
||||
void build_simplifier(const bdd_dict_ptr& dict);
|
||||
|
||||
private:
|
||||
ltl::ltl_simplifier* simpl_;
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ namespace spot
|
|||
}
|
||||
|
||||
std::ostream&
|
||||
tgba_word::print(std::ostream& os, bdd_dict_ptr d) const
|
||||
tgba_word::print(std::ostream& os, const bdd_dict_ptr& d) const
|
||||
{
|
||||
if (!prefix.empty())
|
||||
for (seq_t::const_iterator i = prefix.begin(); i != prefix.end(); ++i)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ namespace spot
|
|||
{
|
||||
tgba_word(const tgba_run* run);
|
||||
void simplify();
|
||||
std::ostream& print(std::ostream& os, bdd_dict_ptr d) const;
|
||||
std::ostream& print(std::ostream& os, const bdd_dict_ptr& d) const;
|
||||
|
||||
typedef std::list<bdd> seq_t;
|
||||
seq_t prefix;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue