Browse Source

JaniParser: Added missing template instantiation and other fixes.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
1dccab9673
  1. 4
      src/storm-parsers/parser/JaniParser.cpp
  2. 2
      src/storm-parsers/parser/JaniParser.h

4
src/storm-parsers/parser/JaniParser.cpp

@ -41,7 +41,7 @@ namespace storm {
template <typename ValueType>
const bool JaniParser<ValueType>::defaultBooleanInitialValue = false;
template <typename ValueType>
const double JaniParser<ValueType>::defaultRationalInitialValue = storm::utility::zero<ValueType>();
const ValueType JaniParser<ValueType>::defaultRationalInitialValue = storm::utility::zero<ValueType>();
template <typename ValueType>
const int64_t JaniParser<ValueType>::defaultIntegerInitialValue = 0;
const std::string VARIABLE_AUTOMATON_DELIMITER = "_";
@ -1061,7 +1061,7 @@ namespace storm {
} else if (expressionStructure.is_number_integer()) {
return expressionManager->integer(expressionStructure.template get<int64_t>());
} else if (expressionStructure.is_number_float()) {
return expressionManager->rational(storm::utility::convertNumber<storm::RationalNumber>(expressionStructure.dump()));
return expressionManager->rational(storm::utility::convertNumber<storm::RationalNumber>(expressionStructure.template get<ValueType>()));
} else if (expressionStructure.is_string()) {
std::string ident = expressionStructure.template get<std::string>();
return storm::expressions::Expression(getVariableOrConstantExpression(ident, scope, auxiliaryVariables));

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

@ -128,7 +128,7 @@ namespace storm {
static const bool defaultVariableTransient;
static const bool defaultBooleanInitialValue;
static const double defaultRationalInitialValue;
static const ValueType defaultRationalInitialValue;
static const int64_t defaultIntegerInitialValue;
static const std::set<std::string> unsupportedOpstrings;

Loading…
Cancel
Save