Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
TerminalStatesGetter.h
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4#include <string>
5#include <vector>
6
7namespace storm {
8
9namespace expressions {
10class Expression;
11}
12namespace logic {
13class Formula;
14}
15
16namespace builder {
17
28 std::function<void(storm::expressions::Expression const&, bool)> const& terminalExpressionCallback,
29 std::function<void(std::string const&, bool)> const& terminalLabelCallback);
30
32 std::vector<storm::expressions::Expression> terminalExpressions; // if one of these is true, we can stop exploration
33 std::vector<storm::expressions::Expression> negatedTerminalExpressions; // if one of these is false, we can stop exploration
34 std::vector<std::string> terminalLabels; // if a state has one of these labels, we can stop exploration
35 std::vector<std::string> negatedTerminalLabels; // if a state does not have all of these labels, we can stop exploration
36
40 void clear();
41
45 bool empty() const;
46
51 storm::expressions::Expression asExpression(std::function<storm::expressions::Expression(std::string const&)> const& labelToExpressionMap) const;
52};
53
59
60} // namespace builder
61} // namespace storm
void getTerminalStatesFromFormula(storm::logic::Formula const &formula, std::function< void(storm::expressions::Expression const &, bool)> const &terminalExpressionCallback, std::function< void(std::string const &, bool)> const &terminalLabelCallback)
Traverses the formula.
LabParser.cpp.
Definition cli.cpp:18
std::vector< storm::expressions::Expression > terminalExpressions
std::vector< std::string > terminalLabels
std::vector< storm::expressions::Expression > negatedTerminalExpressions
bool empty() const
True if no terminal states are specified.
std::vector< std::string > negatedTerminalLabels
void clear()
Clears all terminal states.
storm::expressions::Expression asExpression(std::function< storm::expressions::Expression(std::string const &)> const &labelToExpressionMap) const
Returns an expression that evaluates to true only if the exploration can stop at the corresponding st...