21#include <spot/twa/twa.hh>
22#include <spot/twaalgos/sccinfo.hh>
24#include <spot/misc/formater.hh>
40 std::ostream&
dump(std::ostream& out)
const;
50 std::ostream&
dump(std::ostream& out)
const;
59 SPOT_API
unsigned long long
76 print(std::ostream& os,
const char*)
const override;
94 void print(std::ostream& os,
const char* pos)
const override;
102 std::unique_ptr<scc_info> val_;
107 val_ = std::make_unique<scc_info>(aut);
117 void print(std::ostream& os,
const char* pos)
const override;
125 unsigned reachable_ = 0;
129 void set(
unsigned reachable,
unsigned all)
131 reachable_ = reachable;
136 void print(std::ostream& os,
const char* pos)
const override;
144 unsigned long long reachable_ = 0;
145 unsigned long long all_ = 0;
148 void set(
unsigned long long reachable,
unsigned long long all)
150 reachable_ = reachable;
155 void print(std::ostream& os,
const char* pos)
const override;
An acceptance condition.
Definition acc.hh:54
A printable wrapper for an acceptance condition, for use in format strings.
Definition stats.hh:82
printable_acc_cond & operator=(const acc_cond &new_val)
Assign a new acceptance condition value.
Definition stats.hh:87
void print(std::ostream &os, const char *pos) const override
Print the acceptance condition to an output stream.
A printable wrapper reporting reachable and total transition counts as long long.
Definition stats.hh:143
void print(std::ostream &os, const char *pos) const override
Print the long size to an output stream.
void set(unsigned long long reachable, unsigned long long all)
Set the reachable and total counts.
Definition stats.hh:148
A printable wrapper for SCC information of an automaton, for use in format strings.
Definition stats.hh:101
void print(std::ostream &os, const char *pos) const override
Print SCC statistics to an output stream.
void reset()
Clear the stored SCC information.
Definition stats.hh:111
void automaton(const const_twa_graph_ptr &aut)
Compute SCC information for the given automaton.
Definition stats.hh:105
A printable wrapper reporting reachable and total state/edge counts.
Definition stats.hh:124
void set(unsigned reachable, unsigned all)
Set the reachable and total counts.
Definition stats.hh:129
void print(std::ostream &os, const char *pos) const override
Print the size to an output stream.
A printable wrapper around a value of type T.
Definition formater.hh:50
Abstract base class for objects that can be printed to a stream via a format string.
Definition formater.hh:35
prints various statistics about a TGBA
Definition stats.hh:164
stat_printer(std::ostream &os, const char *format)
Construct with an output stream and a format string.
std::ostream & print(const const_twa_graph_ptr &aut, formula f=nullptr)
print the configured statistics.
std::shared_ptr< const twa > const_twa_ptr
Shared pointer to a const twa.
Definition fwd.hh:36
twa_statistics stats_reachable(const const_twa_ptr &g)
Compute statistics for an automaton.
unsigned long long count_all_transitions(const const_twa_graph_ptr &g)
Count all transitions, even unreachable ones.
twa_sub_statistics sub_stats_reachable(const const_twa_ptr &g)
Compute sub statistics for an automaton.
std::shared_ptr< const twa_graph > const_twa_graph_ptr
Shared pointer to a const twa_graph.
Definition fwd.hh:41
Definition automata.hh:26
Basic statistics (states and edges counts) for a TωA.
Definition stats.hh:34
unsigned states
Number of states in the automaton.
Definition stats.hh:36
unsigned edges
Number of edges in the automaton.
Definition stats.hh:35
std::ostream & dump(std::ostream &out) const
Dump statistics to an output stream.
Extended statistics including transition counts for a TωA.
Definition stats.hh:45
unsigned long long transitions
Number of transitions in the automaton.
Definition stats.hh:46
std::ostream & dump(std::ostream &out) const
Dump statistics to an output stream.