2024-01-09 18:28:50 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include<string>
|
|
|
|
|
#include<vector>
|
|
|
|
|
|
|
|
|
|
#include "../Utils/SgUtils.h"
|
|
|
|
|
#include "../CFGraph/CFGraph.h"
|
|
|
|
|
#include "../CFGraph/live_variable_analysis.h"
|
|
|
|
|
#include "../CFGraph/DataFlow/data_flow.h"
|
|
|
|
|
#include "../CFGraph/DataFlow/backward_data_flow.h"
|
|
|
|
|
|
2024-04-09 16:41:48 +03:00
|
|
|
int removeDeadCode(SgStatement* func,
|
|
|
|
|
const std::map<std::string, std::vector<FuncInfo*>>&allFuncs,
|
|
|
|
|
const std::map<std::string, CommonBlock*>& commonBlocks,
|
|
|
|
|
SgStatement* intervalDelStart = NULL, SgStatement* intervalDelEnd = NULL);
|