79 changed files with 314 additions and 143 deletions
-
2src/formula/ComparisonType.h
-
3src/formula/Csl.h
-
7src/formula/Csl/AbstractCslFormula.h
-
4src/formula/Csl/And.h
-
4src/formula/Csl/Ap.h
-
4src/formula/Csl/Eventually.h
-
4src/formula/Csl/Globally.h
-
4src/formula/Csl/Next.h
-
4src/formula/Csl/Not.h
-
4src/formula/Csl/Or.h
-
4src/formula/Csl/ProbabilisticBoundOperator.h
-
4src/formula/Csl/ProbabilisticNoBoundOperator.h
-
4src/formula/Csl/SteadyStateBoundOperator.h
-
4src/formula/Csl/SteadyStateNoBoundOperator.h
-
4src/formula/Csl/TimeBoundedEventually.h
-
4src/formula/Csl/TimeBoundedUntil.h
-
4src/formula/Csl/Until.h
-
2src/formula/Ltl.h
-
3src/formula/Ltl/AbstractLtlFormula.h
-
4src/formula/Ltl/And.h
-
4src/formula/Ltl/Ap.h
-
4src/formula/Ltl/BoundedEventually.h
-
2src/formula/Ltl/BoundedUntil.h
-
2src/formula/Ltl/Eventually.h
-
2src/formula/Ltl/Globally.h
-
2src/formula/Ltl/Next.h
-
4src/formula/Ltl/Not.h
-
4src/formula/Ltl/Or.h
-
2src/formula/Ltl/Until.h
-
2src/formula/Prctl.h
-
4src/formula/Prctl/And.h
-
4src/formula/Prctl/Ap.h
-
4src/formula/Prctl/BoundedEventually.h
-
4src/formula/Prctl/BoundedNaryUntil.h
-
4src/formula/Prctl/BoundedUntil.h
-
4src/formula/Prctl/CumulativeReward.h
-
4src/formula/Prctl/Eventually.h
-
4src/formula/Prctl/Globally.h
-
4src/formula/Prctl/InstantaneousReward.h
-
4src/formula/Prctl/Next.h
-
4src/formula/Prctl/Not.h
-
4src/formula/Prctl/Or.h
-
4src/formula/Prctl/ProbabilisticBoundOperator.h
-
4src/formula/Prctl/ProbabilisticNoBoundOperator.h
-
4src/formula/Prctl/ReachabilityReward.h
-
4src/formula/Prctl/RewardBoundOperator.h
-
4src/formula/Prctl/RewardNoBoundOperator.h
-
4src/formula/Prctl/SteadyStateReward.h
-
4src/formula/Prctl/Until.h
-
4src/formula/abstract/And.h
-
4src/formula/abstract/Ap.h
-
4src/formula/abstract/BoundedEventually.h
-
4src/formula/abstract/BoundedNaryUntil.h
-
4src/formula/abstract/BoundedUntil.h
-
4src/formula/abstract/CumulativeReward.h
-
4src/formula/abstract/Eventually.h
-
4src/formula/abstract/Globally.h
-
4src/formula/abstract/InstantaneousReward.h
-
4src/formula/abstract/Next.h
-
4src/formula/abstract/Not.h
-
4src/formula/abstract/Or.h
-
4src/formula/abstract/PathBoundOperator.h
-
4src/formula/abstract/PathNoBoundOperator.h
-
2src/formula/abstract/ProbabilisticBoundOperator.h
-
2src/formula/abstract/ProbabilisticNoBoundOperator.h
-
2src/formula/abstract/RewardBoundOperator.h
-
2src/formula/abstract/RewardNoBoundOperator.h
-
4src/formula/abstract/StateBoundOperator.h
-
4src/formula/abstract/StateNoBoundOperator.h
-
2src/formula/abstract/SteadyStateBoundOperator.h
-
2src/formula/abstract/SteadyStateNoBoundOperator.h
-
4src/formula/abstract/SteadyStateReward.h
-
4src/formula/abstract/TimeBoundedEventually.h
-
2src/formula/abstract/TimeBoundedOperator.h
-
4src/formula/abstract/TimeBoundedUntil.h
-
4src/formula/abstract/Until.h
-
62src/ir/expressions/BooleanLiteral.h
-
62src/ir/expressions/DoubleLiteral.h
-
58src/ir/expressions/IntegerLiteral.h
@ -0,0 +1,62 @@ |
|||
/* |
|||
* BooleanLiteral.h |
|||
* |
|||
* Created on: 03.01.2013 |
|||
* Author: chris |
|||
*/ |
|||
|
|||
#ifndef STORM_IR_EXPRESSIONS_BOOLEANLITERAL_H_ |
|||
#define STORM_IR_EXPRESSIONS_BOOLEANLITERAL_H_ |
|||
|
|||
#include "src/ir/expressions/BaseExpression.h" |
|||
|
|||
namespace storm { |
|||
namespace ir { |
|||
namespace expressions { |
|||
|
|||
class BooleanLiteral : public BaseExpression { |
|||
public: |
|||
bool value; |
|||
|
|||
BooleanLiteral(bool value) : BaseExpression(bool_), value(value) { |
|||
|
|||
} |
|||
|
|||
virtual ~BooleanLiteral() { |
|||
|
|||
} |
|||
|
|||
virtual std::shared_ptr<BaseExpression> clone(const std::map<std::string, std::string>& renaming, const std::map<std::string, uint_fast64_t>& bools, const std::map<std::string, uint_fast64_t>& ints) override { |
|||
return std::shared_ptr<BaseExpression>(new BooleanLiteral(this->value)); |
|||
} |
|||
|
|||
virtual bool getValueAsBool(std::pair<std::vector<bool>, std::vector<int_fast64_t>> const* variableValues) const override { |
|||
return value; |
|||
} |
|||
|
|||
virtual void accept(ExpressionVisitor* visitor) override { |
|||
visitor->visit(this); |
|||
} |
|||
|
|||
virtual std::string toString() const override { |
|||
if (value) { |
|||
return std::string("true"); |
|||
} else { |
|||
return std::string("false"); |
|||
} |
|||
} |
|||
|
|||
virtual std::string dump(std::string prefix) const override { |
|||
std::stringstream result; |
|||
result << prefix << "BooleanLiteral " << this->toString() << std::endl; |
|||
return result.str(); |
|||
} |
|||
}; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
#endif /* STORM_IR_EXPRESSIONS_BOOLEANLITERAL_H_ */ |
|||
@ -0,0 +1,62 @@ |
|||
/* |
|||
* DoubleLiteral.h |
|||
* |
|||
* Created on: 03.01.2013 |
|||
* Author: chris |
|||
*/ |
|||
|
|||
#ifndef STORM_IR_EXPRESSIONS_DOUBLELITERAL_H_ |
|||
#define STORM_IR_EXPRESSIONS_DOUBLELITERAL_H_ |
|||
|
|||
#include "src/ir/expressions/BaseExpression.h" |
|||
|
|||
#include "boost/lexical_cast.hpp" |
|||
|
|||
namespace storm { |
|||
|
|||
namespace ir { |
|||
|
|||
namespace expressions { |
|||
|
|||
class DoubleLiteral : public BaseExpression { |
|||
public: |
|||
double value; |
|||
|
|||
DoubleLiteral(double value) : BaseExpression(double_), value(value) { |
|||
|
|||
} |
|||
|
|||
virtual ~DoubleLiteral() { |
|||
|
|||
} |
|||
|
|||
virtual std::shared_ptr<BaseExpression> clone(const std::map<std::string, std::string>& renaming, const std::map<std::string, uint_fast64_t>& bools, const std::map<std::string, uint_fast64_t>& ints) override { |
|||
return std::shared_ptr<BaseExpression>(new DoubleLiteral(this->value)); |
|||
} |
|||
|
|||
virtual double getValueAsDouble(std::pair<std::vector<bool>, std::vector<int_fast64_t>> const* variableValues) const override { |
|||
return value; |
|||
} |
|||
|
|||
virtual void accept(ExpressionVisitor* visitor) override { |
|||
visitor->visit(this); |
|||
} |
|||
|
|||
virtual std::string toString() const override { |
|||
return boost::lexical_cast<std::string>(value); |
|||
} |
|||
|
|||
virtual std::string dump(std::string prefix) const override { |
|||
std::stringstream result; |
|||
result << prefix << "DoubleLiteral " << this->toString() << std::endl; |
|||
return result.str(); |
|||
} |
|||
}; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
#endif /* STORM_IR_EXPRESSIONS_DOUBLELITERAL_H_ */ |
|||
@ -0,0 +1,58 @@ |
|||
/* |
|||
* IntegerLiteral.h |
|||
* |
|||
* Created on: 03.01.2013 |
|||
* Author: chris |
|||
*/ |
|||
|
|||
#ifndef STORM_IR_EXPRESSIONS_INTEGERLITERAL_H_ |
|||
#define STORM_IR_EXPRESSIONS_INTEGERLITERAL_H_ |
|||
|
|||
#include "src/ir/expressions/BaseExpression.h" |
|||
|
|||
namespace storm { |
|||
|
|||
namespace ir { |
|||
|
|||
namespace expressions { |
|||
|
|||
class IntegerLiteral : public BaseExpression { |
|||
public: |
|||
int_fast64_t value; |
|||
|
|||
IntegerLiteral(int_fast64_t value) : BaseExpression(int_), value(value) { |
|||
} |
|||
|
|||
virtual ~IntegerLiteral() { |
|||
} |
|||
|
|||
virtual std::shared_ptr<BaseExpression> clone(const std::map<std::string, std::string>& renaming, const std::map<std::string, uint_fast64_t>& bools, const std::map<std::string, uint_fast64_t>& ints) override { |
|||
return std::shared_ptr<BaseExpression>(new IntegerLiteral(this->value)); |
|||
} |
|||
|
|||
virtual int_fast64_t getValueAsInt(std::pair<std::vector<bool>, std::vector<int_fast64_t>> const* variableValues) const override { |
|||
return value; |
|||
} |
|||
|
|||
virtual void accept(ExpressionVisitor* visitor) override { |
|||
visitor->visit(this); |
|||
} |
|||
|
|||
virtual std::string toString() const override { |
|||
return boost::lexical_cast<std::string>(value); |
|||
} |
|||
|
|||
virtual std::string dump(std::string prefix) const override { |
|||
std::stringstream result; |
|||
result << prefix << "IntegerLiteral " << this->toString() << std::endl; |
|||
return result.str(); |
|||
} |
|||
}; |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
#endif /* STORM_IR_EXPRESSIONS_INTEGERLITERAL_H_ */ |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue