20 lines
640 B
C++
20 lines
640 B
C++
#pragma once
|
|
#include "Procedure.h"
|
|
/* CALL GRAPH NODE */
|
|
struct CALL_GRAPH
|
|
{
|
|
PtrFunction proc; /* Pointer to procedure in pProcList */
|
|
std::vector<CALL_GRAPH *> outEdges; /* array of out edges */
|
|
public:
|
|
void write();
|
|
CALL_GRAPH()
|
|
{
|
|
}
|
|
public:
|
|
void writeNodeCallGraph(int indIdx);
|
|
bool insertCallGraph(PtrFunction caller, PtrFunction callee);
|
|
//bool insertCallGraph(PtrFunction caller, PtrFunction callee);
|
|
void insertArc(PtrFunction newProc);
|
|
};
|
|
//extern CALL_GRAPH * callGraph; /* Pointer to the head of the call graph */
|