21#include <spot/twa/twa.hh>
22#include <spot/twaalgos/sccinfo.hh>
24#include <spot/misc/formater.hh>
32 struct SPOT_API twa_statistics
37 twa_statistics() { edges = 0; states = 0; }
38 std::ostream& dump(std::ostream& out)
const;
41 struct SPOT_API twa_sub_statistics:
public twa_statistics
43 unsigned long long transitions;
45 twa_sub_statistics() { transitions = 0; }
46 std::ostream& dump(std::ostream& out)
const;
55 SPOT_API
unsigned long long
69 print(std::ostream& os,
const char*)
const override;
83 void print(std::ostream& os,
const char* pos)
const override;
89 std::unique_ptr<scc_info> val_;
91 void automaton(
const const_twa_graph_ptr& aut)
93 val_ = std::make_unique<scc_info>(aut);
101 void print(std::ostream& os,
const char* pos)
const override;
107 unsigned reachable_ = 0;
110 void set(
unsigned reachable,
unsigned all)
112 reachable_ = reachable;
116 void print(std::ostream& os,
const char* pos)
const override;
122 unsigned long long reachable_ = 0;
123 unsigned long long all_ = 0;
125 void set(
unsigned long long reachable,
unsigned long long all)
127 reachable_ = reachable;
131 void print(std::ostream& os,
const char* pos)
const override;
139 class SPOT_API stat_printer:
protected formater
142 stat_printer(std::ostream& os,
const char*
format);
An acceptance condition.
Definition acc.hh:61
Definition formater.hh:43
Definition formater.hh:30
std::ostream & print(const const_twa_graph_ptr &aut, formula f=nullptr)
print the configured statistics.
ta_statistics stats_reachable(const const_ta_ptr &t)
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.
Definition automata.hh:26
Please direct any
question,
comment, or
bug report to the Spot mailing list at
spot@lrde.epita.fr.
Generated on for spot by
1.15.0