Module cli

Module cli 

Source
Expand description

Command Line Interface for TACO

TACO uses the clap crate to parse command line arguments and create the CLI interface. This module defines all available commands and options (and their documentation) as well as some utility functions to apply these options.

Modulesยง

output_formats ๐Ÿ”’
This module contains the logic to output a GeneralThresholdAutomaton into a specific format

Structsยง

Cli ๐Ÿ”’
TACO toolsuite for threshold automata - Command Line Interface
LoggerConfig ๐Ÿ”’
SpecFileInput ๐Ÿ”’
TranslationOutput
VisualizationOutput

Enumsยง

BDDManagerOption ๐Ÿ”’
CheckMode
Commands
ModelCheckerOption ๐Ÿ”’
OutputFormat
SMTSolverDefaultOptions
SMT solvers that are supported by default
SpecFileFormat ๐Ÿ”’
SymbolicModelCheckerHeuristics ๐Ÿ”’

Constantsยง

DEFAULT_PREPROCESSORS
Preprocessors that will be used by default

Functionsยง

create_coverability_expression
The coverability specification looks as follows: We want to find a path from an initial configuration to a configuration where the location is covered Thus the specification looks as follows: (expression_initial) => [](to_be_covered_loc = 0) Since the initial configuration is coded into the ta, there is no need for the implication. A counter example to this specification is exactly the path we are looking for
create_reachability_expression
The reachability specification looks as follows: We want to find a path from an initial configuration to a specific configuration Thus the specification looks as follows: (expression_initial) => []((pop_loc_1 = 0) || โ€ฆ || (pop_loc_p = 0) || (unpop_loc_1 > 0) || โ€ฆ || (unpop_loc_u > 0) Since the initial configuration is coded into the ta, there is no need for the implication. A counter example to this specification is exactly the path we are looking for
display_result
get_bdd_manager_cfg ๐Ÿ”’
Get BDD manager configuration based on selected BDD manager
get_preprocessors ๐Ÿ”’
Constructs the preprocessors, either from the configuration file or just uses the default preprocessors specified in DEFAULT_PREPROCESSORS
get_smt_solver ๐Ÿ”’
Get SMT solver configuration based on selected solver
get_zcs_model_checker_heuristic ๐Ÿ”’
Get the symbolic model checker heuristic based on the CLI option
initialize_cs_model_checker ๐Ÿ”’
initialize_logger ๐Ÿ”’
Initialize the logger as specified in cfg
initialize_smt_model_checker ๐Ÿ”’
initialize_zcs_model_checker ๐Ÿ”’
Initialize the symbolic model checker with the given options, threshold automaton and specifications
model_check_ta ๐Ÿ”’
parse_coverability
parse_initial_configuration ๐Ÿ”’
parse_input_file ๐Ÿ”’
Parse the input file into a threshold automaton
parse_reachability
translate_ta ๐Ÿ”’
Translate a threshold automaton into the specified format and write the resulting specification to the specified output file
visualize_ta ๐Ÿ”’
Visualize the threshold automaton in the given format