FDR
4.2.7(6ecbe5a21b71ab020e8fcaeccfe5ebaad0599f4f)
|
8 #include <fdr/evaluator/evaluator_result.h>
9 #include <fdr/evaluator/event.h>
10 #include <fdr/evaluator/process_name.h>
11 #include <fdr/error.h>
12 #include <fdr/lts/events.h>
13 #include <fdr/lts/machine.h>
14 #include <fdr/lts/semantic_model.h>
21 class DeadlockFreeAssertion;
22 class DeterministicAssertion;
23 class DivergenceFreeAssertion;
24 class HasTraceAssertion;
25 class RefinementAssertion;
39 const std::string file_name_;
69 std::string expression_;
70 std::string source_location_;
102 std::vector<std::string>
load_file(
const std::string& file_path);
115 const std::map<std::string, std::string>& file_contents);
118 const std::vector<std::shared_ptr<Assertions::Assertion>>&
assertions()
const;
148 const LTS::SemanticModel semantic_model,
160 const std::string& assertion)
const;
163 LTS::CompiledEvent
compile_event(
const std::shared_ptr<Evaluator::Event>& event)
const;
169 std::shared_ptr<Evaluator::Event>
uncompile_event(
const LTS::CompiledEvent event)
const;
173 const std::vector<LTS::CompiledEvent>& events)
const;
194 std::unique_ptr<Data> data;
const std::string & expression() const
The expression that this print statement contains, i.e.
std::vector< std::string > load_strings_as_file(const std::string &root_file_path, const std::map< std::string, std::string > &file_contents)
Loads the specified file using the specified contents strings.
An refinement assertion about two processes.
Definition: refinement_assertion.h:13
Session()
Creates a new, empty session.
const std::vector< PrintStatement > & print_statements() const
The list of print statements in the input file.
Encapsulates information about an input file.
Definition: session.h:79
std::shared_ptr< Evaluator::ProcessName > machine_node_name(const LTS::Machine &machine, const LTS::Node &node) const
The name the given machine node was assigned in the input file.
const std::string & source_location() const
A representation of the location in the input file this expression is at.
std::vector< std::string > load_file(const std::string &file_path)
Loads a file into this session.
A compiled state machine (a GLTS).
Definition: machine.h:43
std::shared_ptr< Evaluator::ProcessName > machine_name(const LTS::Machine &machine) const
The name the given machine was assigned in the input file, if any.
Thrown when a file could not be loaded for some reason.
Definition: session.h:31
A node (also known as state) in a GLTS.
Definition: node.h:15
std::vector< std::shared_ptr< Evaluator::Event > > uncompile_events(const std::vector< LTS::CompiledEvent > &events) const
As per uncompile_event, but uncompiles a list of events.
Evaluator::EvaluatorResult< std::string > evaluate_expression(const std::string &expression, Canceller *canceller) const
Evaluates the expression, returning a string representation of the value.
Evaluator::EvaluatorResult< std::shared_ptr< LTS::Machine > > evaluate_process(const std::string &expression, const LTS::SemanticModel semantic_model, Canceller *canceller) const
Evaluates an expression of type Proc into a state machine.
An assertion that the given machine is divergence free.
Definition: divergence_free_assertion.h:11
An assertion that the given machine is deterministic.
Definition: deterministic_assertion.h:11
An assertion about processes.
Definition: assertion.h:23
std::shared_ptr< Evaluator::Event > uncompile_event(const LTS::CompiledEvent event) const
Converts a compiled event into the original event.
An assertion that a process is deadlock free.
Definition: deadlock_free_assertion.h:11
An error thrown by libfdr.
Definition: error.h:11
Allows cancellation of a running task to be requested.
Definition: canceller.h:53
A print statement in an input file.
Definition: session.h:51
Evaluator::EvaluatorResult< std::shared_ptr< Assertions::Assertion > > parse_assertion(const std::string &assertion) const
Parses the given string as an assertion.
An assertion that a process has a certain trace.
Definition: has_trace_assertion.h:11
LTS::CompiledEvent compile_event(const std::shared_ptr< Evaluator::Event > &event) const
Converts a raw event into the corresponding compiled event.
const std::vector< std::shared_ptr< Assertions::Assertion > > & assertions() const
The list of assertions that are loaded in this session.
std::string file_name() const
The name of the file that was being loaded when the error occured.
Represents the result of evaluating something.
Definition: evaluator_result.h:13