spot  0.9.1
Modules | Typedefs | Functions
Input/Output of TGBA
TGBA algorithms

Modules

 Decorating the dot output

Typedefs

typedef std::pair
< neverclaimyy::location,
std::string > 
spot::neverclaim_parse_error
 A parse diagnostic with its location.
typedef std::list
< neverclaim_parse_error > 
spot::neverclaim_parse_error_list
 A list of parser diagnostics, as filled by parse.
typedef std::pair
< tgbayy::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.

Functions

std::ostream & spot::kripke_save_reachable (std::ostream &os, const kripke *k)
 Save the reachable part of Kripke structure in text format.
std::ostream & spot::kripke_save_reachable_renumbered (std::ostream &os, const kripke *k)
 Save the reachable part of Kripke structure in text format.
tgba_explicit_string * spot::neverclaim_parse (const std::string &filename, neverclaim_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 Spin never claim file.
bool spot::format_neverclaim_parse_errors (std::ostream &os, const std::string &filename, neverclaim_parse_error_list &error_list)
 Format diagnostics produced by spot::neverclaim_parse.
std::ostream & spot::dotty_reachable (std::ostream &os, const tgba *g, bool assume_sba=false, dotty_decorator *dd=0)
 Print reachable states in dot format.If assume_sba is set, this assumes that the automaton is an SBA and use double elipse to mark accepting states.
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 *g, const ltl::formula *f=0, bool comments=false)
 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_string * spot::tgba_parse (const std::string &filename, tgba_parse_error_list &error_list, bdd_dict *dict, ltl::environment &env=ltl::default_environment::instance(), ltl::environment &envacc=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<neverclaimyy::location, std::string> spot::neverclaim_parse_error

A parse diagnostic with its location.

typedef std::list<neverclaim_parse_error> spot::neverclaim_parse_error_list

A list of parser diagnostics, as filled by parse.

typedef std::pair<tgbayy::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& spot::dotty_reachable ( std::ostream &  os,
const tgba *  g,
bool  assume_sba = false,
dotty_decorator *  dd = 0 
)

Print reachable states in dot format.If assume_sba is set, this assumes that the automaton is an SBA and use double elipse to mark accepting states.

The dd argument allows to customize the output in various ways. See this page for a list of available decorators. If no decorator is specified, the dotty_decorator is used. labels the transitions are encoded in UTF-8.

bool spot::format_neverclaim_parse_errors ( std::ostream &  os,
const std::string &  filename,
neverclaim_parse_error_list &  error_list 
)

Format diagnostics produced by spot::neverclaim_parse.

Parameters:
osWhere diagnostics should be output.
filenameThe filename that should appear in the diagnostics.
error_listThe error list filled by spot::ltl::parse while parsing ltl_string.
Returns:
true iff any diagnostic was output.
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.

Parameters:
osWhere diagnostics should be output.
filenameThe filename that should appear in the diagnostics.
error_listThe error list filled by spot::ltl::parse while parsing ltl_string.
Returns:
true iff any diagnostic was output.
std::ostream& spot::kripke_save_reachable ( std::ostream &  os,
const kripke *  k 
)

Save the reachable part of Kripke structure in text format.

The states will be named with the value returned by the kripke::format_state() method. Such a string can be large, so the output will not be I/O efficient. We recommend using this function only for debugging. Use kripke_save_reachable_renumbered() for large output.

std::ostream& spot::kripke_save_reachable_renumbered ( std::ostream &  os,
const kripke *  k 
)

Save the reachable part of Kripke structure in text format.

States will be renumbered with sequential number. This is much more I/O efficient when dumping large Kripke structures with big state names. The drawback is that any information carried by the state name is lost.

std::ostream& spot::lbtt_reachable ( std::ostream &  os,
const tgba *  g 
)

Print reachable states in LBTT format.

Parameters:
gThe automata to print.
osWhere to print.
std::ostream& spot::never_claim_reachable ( std::ostream &  os,
const tgba *  g,
const ltl::formula *  f = 0,
bool  comments = false 
)

Print reachable states in Spin never claim format.

Parameters:
osThe output stream to print on.
gThe (state-based degeneralized) automaton to output. There should be only one acceptance condition, and all the transitions of a state should be either all accepting or all unaccepting.
fThe (optional) formula associated to the automaton. If given it will be output as a comment.
commentsWhether to comment each state of the never clause with the label of the g automaton.
tgba_explicit_string* spot::neverclaim_parse ( const std::string &  filename,
neverclaim_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 Spin never claim file.

Parameters:
filenameThe name of the file to parse.
error_listA list that will be filled with parse errors that occured during parsing.
dictThe BDD dictionary where to use.
envThe environment of atomic proposition into which parsing should take place.
debugWhen 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.
tgba_explicit_string* spot::tgba_parse ( const std::string &  filename,
tgba_parse_error_list &  error_list,
bdd_dict *  dict,
ltl::environment &  env = ltl::default_environment::instance(),
ltl::environment &  envacc = ltl::default_environment::instance(),
bool  debug = false 
)

Build a spot::tgba_explicit from a text file.

Parameters:
filenameThe name of the file to parse.
error_listA list that will be filled with parse errors that occured during parsing.
dictThe BDD dictionary where to use.
envThe environment of atomic proposition into which parsing should take place.
envaccThe environment of acceptance conditions into which parsing should take place.
debugWhen 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& spot::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 Wed May 23 2012 12:06:46 for spot by doxygen 1.7.6.1