Browse Source

Fixed silently truncating bits when parsing integer literal expressions (see https://github.com/moves-rwth/stormpy/issues/20)

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
41ae9d5624
  1. 2
      src/storm-parsers/parser/ExpressionCreator.cpp
  2. 2
      src/storm-parsers/parser/ExpressionCreator.h

2
src/storm-parsers/parser/ExpressionCreator.cpp

@ -173,7 +173,7 @@ namespace storm {
}
}
storm::expressions::Expression ExpressionCreator::createIntegerLiteralExpression(int value, bool&) const {
storm::expressions::Expression ExpressionCreator::createIntegerLiteralExpression(int64_t value, bool&) const {
if (this->createExpressions) {
return manager.integer(value);
} else {

2
src/storm-parsers/parser/ExpressionCreator.h

@ -66,7 +66,7 @@ namespace storm {
storm::expressions::Expression createPowerModuloExpression(storm::expressions::Expression const& e1, storm::expressions::OperatorType const& operatorType, storm::expressions::Expression const& e2, bool& pass) const;
storm::expressions::Expression createUnaryExpression(std::vector<storm::expressions::OperatorType> const& operatorType, storm::expressions::Expression const& e1, bool& pass) const;
storm::expressions::Expression createRationalLiteralExpression(storm::RationalNumber const& value, bool& pass) const;
storm::expressions::Expression createIntegerLiteralExpression(int value, bool& pass) const;
storm::expressions::Expression createIntegerLiteralExpression(int64_t value, bool& pass) const;
storm::expressions::Expression createBooleanLiteralExpression(bool value, bool& pass) const;
storm::expressions::Expression createMinimumMaximumExpression(storm::expressions::Expression const& e1, storm::expressions::OperatorType const& operatorType, storm::expressions::Expression const& e2, bool& pass) const;
storm::expressions::Expression createFloorCeilExpression(storm::expressions::OperatorType const& operatorType, storm::expressions::Expression const& e1, bool& pass) const;

Loading…
Cancel
Save