5 Commits

3 changed files with 7 additions and 4 deletions

View File

@@ -911,7 +911,9 @@ static void fillFunctionPureStatus(SgStatement *header, FuncInfo *currInfo, vect
if (currInfo->commonBlocks.size() == 0) if (currInfo->commonBlocks.size() == 0)
{ {
lines.clear(); lines.clear();
bool has = hasThisIds(header, lines, { DATA_DECL, SAVE_DECL, USE_STMT }); bool has = hasThisIds(header, lines, { DATA_DECL, SAVE_DECL, USE_STMT,
WRITE_STAT, READ_STAT, OPEN_STAT, CLOSE_STAT,
PRINT_STAT, STOP_STAT, PAUSE_NODE });
if (!has || declaratedAsPure) if (!has || declaratedAsPure)
currInfo->isPure = true; currInfo->isPure = true;
else else

View File

@@ -1,3 +1,3 @@
#pragma once #pragma once
#define VERSION_SPF "2267" #define VERSION_SPF "2270"

View File

@@ -150,6 +150,7 @@ void fillUseStatement(SgStatement *st, set<string> &useMod,
{ {
SgExpression *ex = st->expr(0); SgExpression *ex = st->expr(0);
string modName = st->symbol()->identifier(); string modName = st->symbol()->identifier();
convertToLower(modName);
useMod.insert(modName); useMod.insert(modName);
if (ex) if (ex)