#pragma once #include "Procedure.h" /* CALL GRAPH NODE */ struct CALL_GRAPH { PtrFunction proc; /* Pointer to procedure in pProcList */ std::vector 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 */