Commit bf6c9067 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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.
parent 51151ab2
......@@ -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 = &ltl::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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment