private_removing #39

Merged
Alexander_KS merged 2 commits from private_removing into master 2024-04-09 07:37:05 +00:00
Showing only changes of commit 1e5ae1ef80 - Show all commits

View File

@@ -1642,6 +1642,9 @@ static vector<DefUseStmtsPair> buildDefUsePairs(Context* ctx, const CFG_Type& CF
for (auto& instruction : blockInstructionsVector)
{
SgStatement* stmt = instruction->getInstruction()->getOperator();
if (stmt == useInsertedStmt.insertedStmt)
break;
if (stmt->variant() == ASSIGN_STAT
&& stmt->expr(0)->symbol()->identifier() == defVarName
&& !isVarChangedBetween(defVarName, stmt, useInsertedStmt.insertedStmt))