From 2d25a61ee7e99f491157f460de89df9c79772d8c Mon Sep 17 00:00:00 2001 From: ALEXks Date: Fri, 10 Apr 2026 20:09:50 +0300 Subject: [PATCH] fixed analysis of arrays with type character in function parameters --- src/GraphCall/graph_calls.cpp | 6 +++--- src/Utils/version.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GraphCall/graph_calls.cpp b/src/GraphCall/graph_calls.cpp index 1ec24f9..1100366 100644 --- a/src/GraphCall/graph_calls.cpp +++ b/src/GraphCall/graph_calls.cpp @@ -723,7 +723,7 @@ static void fillIn(FuncInfo *currF, SgExpression *ex, const map &pa { if (ex) { - if (!isInFuncPar && (ex->variant() == VAR_REF || isArrayRef(ex))) + if (!isInFuncPar && (ex->variant() == VAR_REF || ex->variant() == ARRAY_REF)) { const char *name = ex->symbol()->identifier(); if (name && name != string("")) @@ -880,7 +880,7 @@ static void fillInOut(FuncInfo *currF, SgStatement *start, SgStatement *last, co for (auto ex = read->itemList(); ex; ex = ex->rhs()) { SgExpression* item = ex->lhs(); - if (item->variant() == VAR_REF || isArrayRef(item)) + if (item && (item->variant() == VAR_REF || item->variant() == ARRAY_REF)) { string symb = ""; if (item->symbol()) @@ -901,7 +901,7 @@ static void fillInOut(FuncInfo *currF, SgStatement *start, SgStatement *last, co if (item->rhs()) queue.push(item->rhs()); - if (item->variant() == VAR_REF || isArrayRef(item)) + if (item->variant() == VAR_REF || item->variant() == ARRAY_REF) { string symb = ""; if (item->symbol()) diff --git a/src/Utils/version.h b/src/Utils/version.h index 3680f7f..f4e1cca 100644 --- a/src/Utils/version.h +++ b/src/Utils/version.h @@ -1,3 +1,3 @@ #pragma once -#define VERSION_SPF "2474" +#define VERSION_SPF "2475"