Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Input/Output of TGBA
[TGBA algorithms]


Modules

 Decorating the dot output

Typedefs

typedef std::pair< yy::Location,
std::string > 
spot::tgba_parse_error
 A parse diagnostic with its location.
typedef std::list< tgba_parse_errorspot::tgba_parse_error_list
 A list of parser diagnostics, as filled by parse.

Functions

std::ostream & spot::dotty_reachable (std::ostream &os, const tgba *g, dotty_decorator *dd=dotty_decorator::instance())
 Print reachable states in dot format.
std::ostream & spot::lbtt_reachable (std::ostream &os, const tgba *g)
 Print reachable states in LBTT format.
std::ostream & spot::never_claim_reachable (std::ostream &os, const tgba_sba_proxy *g, const ltl::formula *f=0)
 Print reachable states in Spin never claim format.
std::ostream & spot::tgba_save_reachable (std::ostream &os, const tgba *g)
 Save reachable states in text format.
tgba_explicit * spot::tgba_parse (const std::string &filename, tgba_parse_error_list &error_list, bdd_dict *dict, ltl::environment &env=ltl::default_environment::instance(), bool debug=false)
 Build a spot::tgba_explicit from a text file.
bool spot::format_tgba_parse_errors (std::ostream &os, const std::string &filename, tgba_parse_error_list &error_list)
 Format diagnostics produced by spot::tgba_parse.

Typedef Documentation

typedef std::pair<yy::Location, std::string> spot::tgba_parse_error
 

A parse diagnostic with its location.

typedef std::list<tgba_parse_error> spot::tgba_parse_error_list
 

A list of parser diagnostics, as filled by parse.


Function Documentation

std::ostream& dotty_reachable std::ostream &  os,
const tgba *  g,
dotty_decorator *  dd = dotty_decorator::instance()
 

Print reachable states in dot format.

The dd argument allows to customize the output in various ways. See this page for a list of available decorators.

bool format_tgba_parse_errors std::ostream &  os,
const std::string &  filename,
tgba_parse_error_list error_list
 

Format diagnostics produced by spot::tgba_parse.

Parameters:
os Where diagnostics should be output.
filename The filename that should appear in the diagnostics.
error_list The error list filled by spot::ltl::parse while parsing ltl_string.
Returns:
true iff any diagnostic was output.

std::ostream& lbtt_reachable std::ostream &  os,
const tgba *  g
 

Print reachable states in LBTT format.

Parameters:
g The automata to print.
os Where to print.

std::ostream& never_claim_reachable std::ostream &  os,
const tgba_sba_proxy *  g,
const ltl::formula *  f = 0
 

Print reachable states in Spin never claim format.

Parameters:
os The output stream to print on.
g The degeneralized automaton to output.
f The (optional) formula associated to the automaton. If given it will be output as a comment.

tgba_explicit* tgba_parse const std::string &  filename,
tgba_parse_error_list error_list,
bdd_dict *  dict,
ltl::environment &  env = ltl::default_environment::instance(),
bool  debug = false
 

Build a spot::tgba_explicit from a text file.

Parameters:
filename The name of the file to parse.
error_list A list that will be filled with parse errors that occured during parsing.
dict The BDD dictionary where to use.
env The environment into which parsing should take place.
debug When true, causes the parser to trace its execution.
Returns:
A pointer to the tgba built from filename, or 0 if the file could not be opened.
Note that the parser usually tries to recover from errors. It can return an non zero value even if it encountered error during the parsing of filename. If you want to make sure filename was parsed succesfully, check error_list for emptiness.

Warning:
This function is not reentrant.

std::ostream& tgba_save_reachable std::ostream &  os,
const tgba *  g
 

Save reachable states in text format.


Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Jan 31 12:55:19 2005 for spot by doxygen 1.4.0