added CFG_withUnreachable option

This commit is contained in:
ALEXks
2026-02-14 10:05:25 +03:00
parent 6091fa474d
commit 9afdf2a98b
4 changed files with 11 additions and 5 deletions

View File

@@ -1162,8 +1162,9 @@ map<FuncInfo*, vector<BBlock*>> buildCFG(const map<string, CommonBlock*>& common
if (SgFile::switchToFile(oldFile) == -1)
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
for (auto& [func, blocks] : result)
removedUnreachableBlocks(blocks);
if (!settings.withUnreachable)
for (auto& [func, blocks] : result)
removedUnreachableBlocks(blocks);
return result;
}