fixed pure

This commit is contained in:
ALEXks
2024-02-02 21:02:11 +03:00
parent 95479c4740
commit 05609dadc0
2 changed files with 4 additions and 2 deletions

View File

@@ -911,7 +911,9 @@ static void fillFunctionPureStatus(SgStatement *header, FuncInfo *currInfo, vect
if (currInfo->commonBlocks.size() == 0)
{
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)
currInfo->isPure = true;
else

View File

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