From 1dccab9673bc018345cc09a3f603d20b8572e403 Mon Sep 17 00:00:00 2001 From: Tim Quatmann Date: Fri, 13 Mar 2020 18:46:52 +0100 Subject: [PATCH] JaniParser: Added missing template instantiation and other fixes. --- src/storm-parsers/parser/JaniParser.cpp | 4 ++-- src/storm-parsers/parser/JaniParser.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storm-parsers/parser/JaniParser.cpp b/src/storm-parsers/parser/JaniParser.cpp index 6400818fe..e82ad294e 100644 --- a/src/storm-parsers/parser/JaniParser.cpp +++ b/src/storm-parsers/parser/JaniParser.cpp @@ -41,7 +41,7 @@ namespace storm { template const bool JaniParser::defaultBooleanInitialValue = false; template - const double JaniParser::defaultRationalInitialValue = storm::utility::zero(); + const ValueType JaniParser::defaultRationalInitialValue = storm::utility::zero(); template const int64_t JaniParser::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()); } else if (expressionStructure.is_number_float()) { - return expressionManager->rational(storm::utility::convertNumber(expressionStructure.dump())); + return expressionManager->rational(storm::utility::convertNumber(expressionStructure.template get())); } else if (expressionStructure.is_string()) { std::string ident = expressionStructure.template get(); return storm::expressions::Expression(getVariableOrConstantExpression(ident, scope, auxiliaryVariables)); diff --git a/src/storm-parsers/parser/JaniParser.h b/src/storm-parsers/parser/JaniParser.h index 2133f464f..5e2ba447a 100644 --- a/src/storm-parsers/parser/JaniParser.h +++ b/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 unsupportedOpstrings;