Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
BooleanLiteralFormula.cpp
Go to the documentation of this file.
2#include <boost/any.hpp>
3#include <ostream>
4
6
7namespace storm {
8namespace logic {
10 // Intenionally left empty.
11}
12
14 return true;
15}
16
18 return value;
19}
20
22 return !value;
23}
24
25boost::any BooleanLiteralFormula::accept(FormulaVisitor const& visitor, boost::any const& data) const {
26 return visitor.visit(*this, data);
27}
28
29std::ostream& BooleanLiteralFormula::writeToStream(std::ostream& out, bool /*allowParentheses */) const {
30 // No parentheses necessary
31 if (value) {
32 out << "true";
33 } else {
34 out << "false";
35 }
36 return out;
37}
38} // namespace logic
39} // namespace storm
virtual bool isBooleanLiteralFormula() const override
virtual std::ostream & writeToStream(std::ostream &out, bool allowParentheses=false) const override
Writes the forumla to the given output stream.
virtual boost::any accept(FormulaVisitor const &visitor, boost::any const &data) const override
virtual bool isTrueFormula() const override
virtual bool isFalseFormula() const override
virtual boost::any visit(AtomicExpressionFormula const &f, boost::any const &data) const =0
LabParser.cpp.
Definition cli.cpp:18