improved CFG settings
This commit is contained in:
@@ -26,6 +26,7 @@ using std::string;
|
||||
using std::vector;
|
||||
using std::pair;
|
||||
using std::make_pair;
|
||||
using SAPFOR::CFG_Settings;
|
||||
|
||||
extern int debSh;
|
||||
|
||||
@@ -1672,9 +1673,11 @@ void GroupShadow(const map<string, vector<FuncInfo*>>& allFuncs,
|
||||
|
||||
SgStatement* func = currF->funcPointer->GetOriginal();
|
||||
|
||||
auto cfg = buildCFGforCurrentFunc(func, SAPFOR::CFG_Settings(true, false, false, true, false, true, false), commonBlocks, allFuncs);
|
||||
const auto settings = CFG_Settings({ CFG_Settings::CFG_atLeastOneIterInLoop, CFG_Settings::CFG_withSPF, CFG_Settings::CFG_withCallsInBlocks });
|
||||
auto cfg = buildCFGforCurrentFunc(func, settings, commonBlocks, allFuncs);
|
||||
if (cfg.size() != 1)
|
||||
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
|
||||
|
||||
auto& blocks = cfg.begin()->second;
|
||||
|
||||
//create reaching blocks
|
||||
|
||||
Reference in New Issue
Block a user