From 8503dfff87a9c9ae967a293d782fd3259e9adaa0 Mon Sep 17 00:00:00 2001 From: dehnert Date: Thu, 24 May 2018 14:52:31 +0200 Subject: [PATCH] fixing issue related to unary minus in JANI --- src/storm/parser/JaniParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storm/parser/JaniParser.cpp b/src/storm/parser/JaniParser.cpp index 725ab0a9d..b92b67efb 100644 --- a/src/storm/parser/JaniParser.cpp +++ b/src/storm/parser/JaniParser.cpp @@ -905,7 +905,7 @@ namespace storm { ensureNumericalType(arguments[0], opstring, 0, scopeDescription); ensureNumericalType(arguments[1], opstring, 1, scopeDescription); return arguments[0] + arguments[1]; - } else if (opstring == "-") { + } else if (opstring == "-" && expressionStructure.count("left") > 0) { arguments = parseBinaryExpressionArguments(expressionStructure, opstring, scopeDescription, globalVars, constants, localVars, returnNoneInitializedOnUnknownOperator); assert(arguments.size() == 2); ensureNumericalType(arguments[0], opstring, 0, scopeDescription);