CBMC
|
#include <trace_automaton.h>
Public Types | |
typedef std::multimap< goto_programt::targett, statet, goto_programt::target_less_than > | transitionst |
typedef std::pair< transitionst::iterator, transitionst::iterator > | transition_ranget |
typedef std::vector< transitionst > | transition_tablet |
Public Member Functions | |
automatont () | |
statet | add_state () |
void | add_trans (statet s, goto_programt::targett a, statet t) |
bool | is_accepting (statet s) |
void | set_accepting (statet s) |
void | move (statet s, goto_programt::targett a, state_sett &t) |
void | move (state_sett &s, goto_programt::targett a, state_sett &t) |
void | reverse (goto_programt::targett epsilon) |
void | trim () |
std::size_t | count_transitions () |
void | output (std::ostream &str) const |
void | clear () |
void | swap (automatont &that) |
Public Attributes | |
statet | init_state |
unsigned | num_states |
transition_tablet | transitions |
state_sett | accept_states |
Static Public Attributes | |
static const statet | no_state =std::numeric_limits<statet>::max() |
Definition at line 27 of file trace_automaton.h.
typedef std::pair<transitionst::iterator, transitionst::iterator> automatont::transition_ranget |
Definition at line 81 of file trace_automaton.h.
typedef std::vector<transitionst> automatont::transition_tablet |
Definition at line 82 of file trace_automaton.h.
typedef std:: multimap<goto_programt::targett, statet, goto_programt::target_less_than> automatont::transitionst |
Definition at line 79 of file trace_automaton.h.
|
inline |
Definition at line 30 of file trace_automaton.h.
statet automatont::add_state | ( | ) |
Definition at line 285 of file trace_automaton.cpp.
void automatont::add_trans | ( | statet | s, |
goto_programt::targett | a, | ||
statet | t | ||
) |
Definition at line 296 of file trace_automaton.cpp.
|
inline |
Definition at line 59 of file trace_automaton.h.
std::size_t automatont::count_transitions | ( | ) |
Definition at line 499 of file trace_automaton.cpp.
|
inline |
Definition at line 39 of file trace_automaton.h.
void automatont::move | ( | state_sett & | s, |
goto_programt::targett | a, | ||
state_sett & | t | ||
) |
Definition at line 337 of file trace_automaton.cpp.
void automatont::move | ( | statet | s, |
goto_programt::targett | a, | ||
state_sett & | t | ||
) |
Definition at line 321 of file trace_automaton.cpp.
void automatont::output | ( | std::ostream & | str | ) | const |
Definition at line 476 of file trace_automaton.cpp.
void automatont::reverse | ( | goto_programt::targett | epsilon | ) |
Definition at line 366 of file trace_automaton.cpp.
|
inline |
Definition at line 44 of file trace_automaton.h.
|
inline |
Definition at line 66 of file trace_automaton.h.
void automatont::trim | ( | ) |
Definition at line 423 of file trace_automaton.cpp.
state_sett automatont::accept_states |
Definition at line 87 of file trace_automaton.h.
statet automatont::init_state |
Definition at line 84 of file trace_automaton.h.
Definition at line 74 of file trace_automaton.h.
unsigned automatont::num_states |
Definition at line 85 of file trace_automaton.h.
transition_tablet automatont::transitions |
Definition at line 86 of file trace_automaton.h.