Browse Source
Bugfix: undefined constant expressions for the same constant now share a common structure internally that defines their value and definedness.
Bugfix: undefined constant expressions for the same constant now share a common structure internally that defines their value and definedness.
Former-commit-id: dd2fda5ab5
main
8 changed files with 87 additions and 215 deletions
-
34src/ir/expressions/BooleanConstantExpression.cpp
-
30src/ir/expressions/BooleanConstantExpression.h
-
32src/ir/expressions/ConstantExpression.cpp
-
77src/ir/expressions/ConstantExpression.h
-
33src/ir/expressions/DoubleConstantExpression.cpp
-
30src/ir/expressions/DoubleConstantExpression.h
-
36src/ir/expressions/IntegerConstantExpression.cpp
-
30src/ir/expressions/IntegerConstantExpression.h
@ -1,32 +0,0 @@ |
|||
/*
|
|||
* ConstantExpression.cpp |
|||
* |
|||
* Created on: 10.06.2013 |
|||
* Author: Christian Dehnert |
|||
*/ |
|||
|
|||
#include "ConstantExpression.h"
|
|||
|
|||
namespace storm { |
|||
namespace ir { |
|||
namespace expressions { |
|||
|
|||
ConstantExpression::ConstantExpression(ReturnType type, std::string const& constantName) : BaseExpression(type), constantName(constantName) { |
|||
// Nothing to do here.
|
|||
} |
|||
|
|||
ConstantExpression::ConstantExpression(ConstantExpression const& constantExpression) : BaseExpression(constantExpression), constantName(constantExpression.constantName) { |
|||
// Nothing to do here
|
|||
} |
|||
|
|||
std::string const& ConstantExpression::getConstantName() const { |
|||
return constantName; |
|||
} |
|||
|
|||
std::string ConstantExpression::toString() const { |
|||
return constantName; |
|||
} |
|||
|
|||
} // namespace expressions
|
|||
} // namespace ir
|
|||
} // namespace storm
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue