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

rename tgba_ptr into twa_ptr

Automatic mass renaming.

* iface/ltsmin/modelcheck.cc, src/dstarparse/dra2ba.cc,
src/dstarparse/nra2nba.cc, src/ltlvisit/apcollect.cc,
src/ltlvisit/apcollect.hh, src/ta/taexplicit.cc, src/ta/taexplicit.hh,
src/ta/tgtaexplicit.cc, src/ta/tgtaexplicit.hh, src/ta/tgtaproduct.hh,
src/taalgos/tgba2ta.cc, src/taalgos/tgba2ta.hh, src/tgba/fwd.hh,
src/tgba/tgba.cc, src/tgba/tgba.hh, src/tgba/tgbagraph.hh,
src/tgba/tgbamask.cc, src/tgba/tgbamask.hh, src/tgba/tgbaproduct.cc,
src/tgba/tgbaproduct.hh, src/tgba/tgbaproxy.cc, src/tgba/tgbaproxy.hh,
src/tgbaalgos/bfssteps.cc, src/tgbaalgos/bfssteps.hh,
src/tgbaalgos/complete.cc, src/tgbaalgos/complete.hh,
src/tgbaalgos/compsusp.cc, src/tgbaalgos/dotty.cc,
src/tgbaalgos/dotty.hh, src/tgbaalgos/dtgbasat.cc,
src/tgbaalgos/dupexp.cc, src/tgbaalgos/dupexp.hh,
src/tgbaalgos/emptiness.cc, src/tgbaalgos/emptiness.hh,
src/tgbaalgos/gtec/gtec.cc, src/tgbaalgos/gtec/gtec.hh,
src/tgbaalgos/gtec/status.cc, src/tgbaalgos/gtec/status.hh,
src/tgbaalgos/gv04.cc, src/tgbaalgos/gv04.hh, src/tgbaalgos/hoa.cc,
src/tgbaalgos/hoa.hh, src/tgbaalgos/lbtt.cc, src/tgbaalgos/lbtt.hh,
src/tgbaalgos/magic.cc, src/tgbaalgos/magic.hh,
src/tgbaalgos/minimize.cc, src/tgbaalgos/ndfs_result.hxx,
src/tgbaalgos/neverclaim.cc, src/tgbaalgos/neverclaim.hh,
src/tgbaalgos/projrun.cc, src/tgbaalgos/projrun.hh,
src/tgbaalgos/reachiter.cc, src/tgbaalgos/reachiter.hh,
src/tgbaalgos/reducerun.cc, src/tgbaalgos/reducerun.hh,
src/tgbaalgos/replayrun.cc, src/tgbaalgos/replayrun.hh,
src/tgbaalgos/scc.cc, src/tgbaalgos/scc.hh, src/tgbaalgos/se05.cc,
src/tgbaalgos/se05.hh, src/tgbaalgos/stats.cc, src/tgbaalgos/stats.hh,
src/tgbaalgos/stutter.cc, src/tgbaalgos/tau03.cc,
src/tgbaalgos/tau03.hh, src/tgbaalgos/tau03opt.cc,
src/tgbaalgos/tau03opt.hh, src/tgbatest/checkta.cc,
src/tgbatest/complementation.cc, src/tgbatest/emptchk.cc,
src/tgbatest/ltl2tgba.cc, wrap/python/spot_impl.i: Rename tgba_ptr as
twa_ptr.
parent 5d977847
......@@ -54,7 +54,7 @@ namespace spot
///
/// \pre The automaton \a a must have at most one acceptance
/// condition (i.e. it is a TBA).
se05_search(const const_tgba_ptr a, size_t size,
se05_search(const const_twa_ptr a, size_t size,
option_map o = option_map())
: emptiness_check(a, o),
h(size)
......@@ -676,20 +676,20 @@ namespace spot
} // anonymous
emptiness_check_ptr
explicit_se05_search(const const_tgba_ptr& a, option_map o)
explicit_se05_search(const const_twa_ptr& a, option_map o)
{
return std::make_shared<se05_search<explicit_se05_search_heap>>(a, 0, o);
}
emptiness_check_ptr
bit_state_hashing_se05_search(const const_tgba_ptr& a,
bit_state_hashing_se05_search(const const_twa_ptr& a,
size_t size, option_map o)
{
return std::make_shared<se05_search<bsh_se05_search_heap>>(a, size, o);
}
emptiness_check_ptr
se05(const const_tgba_ptr& a, option_map o)
se05(const const_twa_ptr& a, option_map o)
{
size_t size = o.get("bsh");
if (size)
......
......@@ -101,7 +101,7 @@ namespace spot
/// \sa spot::explicit_magic_search
///
SPOT_API emptiness_check_ptr
explicit_se05_search(const const_tgba_ptr& a, option_map o = option_map());
explicit_se05_search(const const_twa_ptr& a, option_map o = option_map());
/// \brief Returns an emptiness checker on the spot::tgba automaton \a a.
///
......@@ -131,7 +131,7 @@ namespace spot
/// \sa spot::explicit_se05_search
///
SPOT_API emptiness_check_ptr
bit_state_hashing_se05_search(const const_tgba_ptr& a, size_t size,
bit_state_hashing_se05_search(const const_twa_ptr& a, size_t size,
option_map o = option_map());
......@@ -142,7 +142,7 @@ namespace spot
/// in the \c option_map. If \c "bsh" is set and non null, its value
/// is used as the size of the hash map.
SPOT_API emptiness_check_ptr
se05(const const_tgba_ptr& a, option_map o);
se05(const const_twa_ptr& a, option_map o);
/// @}
}
......@@ -36,7 +36,7 @@ namespace spot
class stats_bfs: public tgba_reachable_iterator_breadth_first
{
public:
stats_bfs(const const_tgba_ptr& a, tgba_statistics& s)
stats_bfs(const const_twa_ptr& a, tgba_statistics& s)
: tgba_reachable_iterator_breadth_first(a), s_(s)
{
}
......@@ -61,7 +61,7 @@ namespace spot
class sub_stats_bfs: public stats_bfs
{
public:
sub_stats_bfs(const const_tgba_ptr& a, tgba_sub_statistics& s)
sub_stats_bfs(const const_twa_ptr& a, tgba_sub_statistics& s)
: stats_bfs(a, s), s_(s), seen_(bddtrue)
{
}
......@@ -118,7 +118,7 @@ namespace spot
}
tgba_statistics
stats_reachable(const const_tgba_ptr& g)
stats_reachable(const const_twa_ptr& g)
{
tgba_statistics s;
stats_bfs d(g, s);
......@@ -127,7 +127,7 @@ namespace spot
}
tgba_sub_statistics
sub_stats_reachable(const const_tgba_ptr& g)
sub_stats_reachable(const const_twa_ptr& g)
{
tgba_sub_statistics s;
sub_stats_bfs d(g, s);
......
......@@ -50,9 +50,9 @@ namespace spot
};
/// \brief Compute statistics for an automaton.
SPOT_API tgba_statistics stats_reachable(const const_tgba_ptr& g);
SPOT_API tgba_statistics stats_reachable(const const_twa_ptr& g);
/// \brief Compute subended statistics for an automaton.
SPOT_API tgba_sub_statistics sub_stats_reachable(const const_tgba_ptr& g);
SPOT_API tgba_sub_statistics sub_stats_reachable(const const_twa_ptr& g);
class SPOT_API printable_formula: public printable_value<const ltl::formula*>
......
......@@ -206,7 +206,7 @@ namespace spot
class tgbasl final : public twa
{
public:
tgbasl(const const_tgba_ptr& a, bdd atomic_propositions)
tgbasl(const const_twa_ptr& a, bdd atomic_propositions)
: twa(a->get_dict()), a_(a), aps_(atomic_propositions)
{
get_dict()->register_all_propositions_of(&a_, this);
......@@ -249,13 +249,13 @@ namespace spot
}
private:
const_tgba_ptr a_;
const_twa_ptr a_;
bdd aps_;
};
typedef std::shared_ptr<tgbasl> tgbasl_ptr;
inline tgbasl_ptr make_tgbasl(const const_tgba_ptr& aut, bdd ap)
inline tgbasl_ptr make_tgbasl(const const_twa_ptr& aut, bdd ap)
{
return std::make_shared<tgbasl>(aut, ap);
}
......
......@@ -54,7 +54,7 @@ namespace spot
{
public:
/// \brief Initialize the search algorithm on the automaton \a a
tau03_search(const const_tgba_ptr a, size_t size, option_map o)
tau03_search(const const_twa_ptr a, size_t size, option_map o)
: emptiness_check(a, o),
h(size)
{
......@@ -376,7 +376,7 @@ namespace spot
} // anonymous
emptiness_check_ptr
explicit_tau03_search(const const_tgba_ptr& a, option_map o)
explicit_tau03_search(const const_twa_ptr& a, option_map o)
{
return std::make_shared<tau03_search<explicit_tau03_search_heap>>(a, 0, o);
}
......
......@@ -95,7 +95,7 @@ namespace spot
\endverbatim */
///
SPOT_API emptiness_check_ptr
explicit_tau03_search(const const_tgba_ptr& a, option_map o = option_map());
explicit_tau03_search(const const_twa_ptr& a, option_map o = option_map());
/// @}
}
......@@ -65,7 +65,7 @@ namespace spot
{
public:
/// \brief Initialize the search algorithm on the automaton \a a
tau03_opt_search(const const_tgba_ptr& a, size_t size, option_map o)
tau03_opt_search(const const_twa_ptr& a, size_t size, option_map o)
: emptiness_check(a, o),
current_weight(a->acc()),
h(size),
......@@ -562,7 +562,7 @@ namespace spot
} // anonymous
emptiness_check_ptr
explicit_tau03_opt_search(const const_tgba_ptr& a, option_map o)
explicit_tau03_opt_search(const const_twa_ptr& a, option_map o)
{
return
std::make_shared<tau03_opt_search<explicit_tau03_opt_search_heap>>(a,
......
......@@ -97,7 +97,7 @@ namespace spot
/// state of this stack.
///
SPOT_API emptiness_check_ptr
explicit_tau03_opt_search(const const_tgba_ptr& a,
explicit_tau03_opt_search(const const_twa_ptr& a,
option_map o = option_map());
/// @}
......
......@@ -51,7 +51,7 @@ void stats(std::string title, const spot::ta_ptr& ta)
<< std::setw(6) << s.acceptance_states << '\n';
}
void stats(std::string title, const spot::tgba_ptr& tg)
void stats(std::string title, const spot::twa_ptr& tg)
{
auto s = stats_reachable(tg);
......
......@@ -127,7 +127,7 @@ int main(int argc, char* argv[])
return 2;
spot::twa_graph_ptr a = h->aut;
spot::tgba_ptr complement = 0;
spot::twa_ptr complement = 0;
complement = spot::make_safra_complement(a);
......@@ -155,7 +155,7 @@ int main(int argc, char* argv[])
return 2;
auto a = spot::ltl_to_tgba_fm(f1, dict);
spot::tgba_ptr complement = 0;
spot::twa_ptr complement = 0;
complement = spot::make_safra_complement(a);
spot::dotty_reachable(std::cout, complement);
......
......@@ -98,7 +98,7 @@ main(int argc, char** argv)
auto d = spot::make_bdd_dict();
// Build many different automata from this formula.
spot::const_tgba_ptr aut[4];
spot::const_twa_ptr aut[4];
{
auto a = spot::ltl_to_taa(f, d);
aut[0] = a;
......
......@@ -309,7 +309,7 @@ to_int(const char* s)
return res;
}
spot::twa_graph_ptr ensure_digraph(const spot::tgba_ptr& a)
spot::twa_graph_ptr ensure_digraph(const spot::twa_ptr& a)
{
auto aa = std::dynamic_pointer_cast<spot::twa_graph>(a);
if (aa)
......@@ -371,7 +371,7 @@ checked_main(int argc, char** argv)
const char* hoa_opt = nullptr;
auto& env = spot::ltl::default_environment::instance();
spot::ltl::atomic_prop_set* unobservables = 0;
spot::tgba_ptr system_aut = 0;
spot::twa_ptr system_aut = 0;
auto dict = spot::make_bdd_dict();
spot::timer_map tm;
bool use_timer = false;
......@@ -960,7 +960,7 @@ checked_main(int argc, char** argv)
if (f || from_file)
{
spot::tgba_ptr a = 0;
spot::twa_ptr a = 0;
bool assume_sba = false;
if (from_file)
......
......@@ -376,7 +376,7 @@ empty_hoa_parse_error_list()
}
spot::twa_graph_ptr
ensure_digraph(const spot::tgba_ptr& a)
ensure_digraph(const spot::twa_ptr& a)
{
auto aa = std::dynamic_pointer_cast<spot::twa_graph>(a);
if (aa)
......
Markdown is supported
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