trivial, version updated

This commit is contained in:
ALEXks
2025-09-16 08:22:53 +03:00
parent 49d3b9b96e
commit c6f290bb56
2 changed files with 11 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ static SgExpression* findExprWithVariant(SgExpression* exp, int variant)
return NULL;
}
bool switchToDeclarationFile(DIST::Array* array_p,
static bool switchToDeclarationFile(DIST::Array* array_p,
pair<string, int>& decl_place,
const string &current_file_name,
FuncInfo *current_func)
@@ -122,9 +122,7 @@ static bool checkAssumedSize(const string &array_name, DIST::Array* array_p, con
return true;
auto *st = SgStatement::getStatementByFileAndLine(decl_place.first, decl_place.second);
if (!st)
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
checkNull(st, convertFileName(__FILE__).c_str(), __LINE__);
SgExpression* list = st->expr(0);
while (list)
@@ -255,6 +253,7 @@ static void populateDistributedIoArrays(map<SgSymbol*, set<SgStatement*>>& array
spec = spec->rhs();
}
}
break;
}
default:
break;
@@ -275,8 +274,7 @@ static void populateDistributedIoArrays(map<SgSymbol*, set<SgStatement*>>& array
DIST::Array* array_p = getArrayFromDeclarated(declaratedInStmt(by_symb), array_name);
if (array_p &&
array_p->GetDistributeFlagVal() == Distribution::distFlag::IO_PRIV &&
!checkAssumedSize(array_name, array_p, current_file_name, current_func)
)
!checkAssumedSize(array_name, array_p, current_file_name, current_func))
{
auto inserted = arrays[by_symb].insert(stat).second;
@@ -379,6 +377,7 @@ static void copyArrayBetweenStatements(SgSymbol* replace_symb,
auto* parent = start_is_scope ? start : start->controlParent();
if (parent && parent->lastNodeOfStmt() == start)
parent = parent->controlParent();
checkNull(parent, convertFileName(__FILE__).c_str(), __LINE__);
start->insertStmtAfter(*assign, *parent);
}
@@ -540,13 +539,10 @@ void replaceDistributedArraysInIO(vector<ParallelRegion*>& regions,
auto func_info_it = allFuncInfo.find(current_file_name);
if (func_info_it == allFuncInfo.end())
{
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
return;
}
auto *lbound_symb = new SgSymbol(PROCEDURE_NAME, "lbound");
auto *ubound_symb = new SgSymbol(PROCEDURE_NAME, "ubound");
auto *lbound_symb = new SgSymbol(FUNCTION_NAME, "lbound");
auto *ubound_symb = new SgSymbol(FUNCTION_NAME, "ubound");
for (auto& lines : lines_by_file.second)
{
@@ -594,10 +590,7 @@ void replaceDistributedArraysInIO(vector<ParallelRegion*>& regions,
}
if (!current_func_info)
{
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
return;
}
curr_stmt = curr_stmt->lexNext();
while (curr_stmt && !isSgExecutableStatement(curr_stmt))

View File

@@ -1,3 +1,3 @@
#pragma once
#define VERSION_SPF "2443"
#define VERSION_SPF "2444"