(self, cfg, start=None, no_construct=False)
Constructor.

        :param cfg:             The control flow graph upon which this control dependence graph will build
        :param start:           The starting point to begin constructing the control dependence graph
        :param no_construct:    Skip the construction step. Only used in unit-testing.
Constructor.
Constructor .
def __init__(self, cfg, start=None, no_construct=False):
        """
        Constructor.

        :param cfg:             The control flow graph upon which this control dependence graph will build
        :param start:           The starting point to begin constructing the control dependence graph
        :param no_construct:    Skip the construction step. Only used in unit-testing.
        """
        self._binary = self.project.loader.main_object
        self._start = start if start is not None else self.project.entry
        self._cfg = cfg

        self._ancestor = None
        self._semi = None
        self._post_dom: Optional[networkx.DiGraph] = None

        self._graph: Optional[networkx.DiGraph] = None
        self._normalized_cfg = None

        if not no_construct:
            if self._cfg is None:
                self._cfg = self.project.analyses.CFGEmulated()

            # FIXME: We should not use get_any_irsb in such a real setting...
            self._entry = self._cfg.model.get_any_node(self._start)

            self._construct()
def __init__ ( self , cfg , start = None , no_construct = False ) : self . _binary = self . project . loader . main_object self . _start = start if start is not None else self . project . entry self . _cfg = cfg self . _ancestor = None self . _semi = None self . _post_dom : Optional [ networkx . DiGraph ] = None self . _graph : Optional [ networkx . DiGraph ] = None self . _normalized_cfg = None if not no_construct : if self . _cfg is None : self . _cfg = self . project . analyses . CFGEmulated ( ) # FIXME: We should not use get_any_irsb in such a real setting... self . _entry = self . _cfg . model . get_any_node ( self . _start ) self . _construct ( )