2023-09-14 19:43:13 +03:00
|
|
|
#define _LEAK_
|
2025-06-02 19:08:09 +03:00
|
|
|
#include "leak_detector.h"
|
2023-09-14 19:43:13 +03:00
|
|
|
|
|
|
|
|
#include <cstdio>
|
|
|
|
|
#include <cstring>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <set>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <fstream>
|
|
|
|
|
|
2025-06-02 19:08:09 +03:00
|
|
|
#include "graph_calls.h"
|
2023-09-14 19:43:13 +03:00
|
|
|
#include "private_analyzer.h"
|
|
|
|
|
#include "dvm.h"
|
2025-09-23 08:21:05 +03:00
|
|
|
#include "CFGraph/CFGraph.h"
|
2023-09-14 19:43:13 +03:00
|
|
|
|
|
|
|
|
using std::vector;
|
|
|
|
|
|
|
|
|
|
void PrivateAnalyzer(SgFile *file, vector<FuncInfo*> &funcs)
|
|
|
|
|
{
|
|
|
|
|
for (int i = 0; i < funcs.size(); ++i)
|
|
|
|
|
if (funcs[i]->doNotAnalyze == false && funcs[i]->deadFunction == false)
|
|
|
|
|
Private_Vars_Analyzer(funcs[i]->funcPointer);
|
|
|
|
|
}
|