diff --git a/projects/dvm b/projects/dvm index 3a567d7..37910db 160000 --- a/projects/dvm +++ b/projects/dvm @@ -1 +1 @@ -Subproject commit 3a567d7582d01ec80d026a320415820e32e82c7c +Subproject commit 37910dba0a717b3dfa4dfa1266d1f6788a079765 diff --git a/src/Transformations/ExpressionSubstitution/expr_transform.cpp b/src/Transformations/ExpressionSubstitution/expr_transform.cpp index eff3540..b2338ec 100644 --- a/src/Transformations/ExpressionSubstitution/expr_transform.cpp +++ b/src/Transformations/ExpressionSubstitution/expr_transform.cpp @@ -440,15 +440,18 @@ bool replaceConstantRec(SgExpression *&exp) if (exp->variant() == CONST_REF) { SgExpression *ret = ReplaceParameter_(exp); + int sign = 1; SgExpression* toCalc = ret; - if (ret->variant() == UNARY_ADD_OP) - toCalc = ret->lhs(); - if (ret->variant() == MINUS_OP) + if (toCalc->variant() == UNARY_ADD_OP) + toCalc = toCalc->lhs(); + + if (toCalc->variant() == MINUS_OP) { - toCalc = ret->lhs(); + toCalc = toCalc->lhs(); sign = -1; } + if (toCalc->isInteger()) { exp = new SgValueExp(sign * toCalc->valueInteger()); diff --git a/src/Utils/version.h b/src/Utils/version.h index 08f8d2d..f02529d 100644 --- a/src/Utils/version.h +++ b/src/Utils/version.h @@ -1,3 +1,3 @@ #pragma once -#define VERSION_SPF "2440" +#define VERSION_SPF "2441"