(self, ail_graph, stack_pointer_tracker=None)
return ail_graph, TempClass.stack_arg_offsets
Simplify all function call statements.

        :return:    None
Simplify all function call statements.
Simplify all function call statements .
def _make_callsites(self, ail_graph, stack_pointer_tracker=None):
        """
        Simplify all function call statements.

        :return:    None
        """

        # Computing reaching definitions
        rd = self.project.analyses.ReachingDefinitions(subject=self.function, func_graph=ail_graph,
                                                       observe_callback=self._make_callsites_rd_observe_callback)

        class TempClass:  # pylint:disable=missing-class-docstring
            stack_arg_offsets = set()

        def _handler(block):
            csm = self.project.analyses.AILCallSiteMaker(block,
                                                         reaching_definitions=rd,
                                                         stack_pointer_tracker=stack_pointer_tracker,
                                                         ail_manager=self._ail_manager,
                                                         )
            if csm.stack_arg_offsets is not None:
                TempClass.stack_arg_offsets |= csm.stack_arg_offsets
            if csm.result_block:
                if csm.result_block != block:
                    ail_block = csm.result_block
                    simp = self.project.analyses.AILBlockSimplifier(ail_block,
                                                                    stack_pointer_tracker=stack_pointer_tracker,
                                                                    peephole_optimizations=self.peephole_optimizations,
                                                                    stack_arg_offsets=csm.stack_arg_offsets,
                                                                    )
                    return simp.result_block
            return None

        AILGraphWalker(ail_graph, _handler, replace_nodes=True).walk()

        return ail_graph, TempClass.stack_arg_offsets
def _make_callsites ( self , ail_graph , stack_pointer_tracker = None ) : # Computing reaching definitions rd = self . project . analyses . ReachingDefinitions ( subject = self . function , func_graph = ail_graph , observe_callback = self . _make_callsites_rd_observe_callback ) class TempClass : # pylint:disable=missing-class-docstring stack_arg_offsets = set ( ) def _handler ( block ) : csm = self . project . analyses . AILCallSiteMaker ( block , reaching_definitions = rd , stack_pointer_tracker = stack_pointer_tracker , ail_manager = self . _ail_manager , ) if csm . stack_arg_offsets is not None : TempClass . stack_arg_offsets |= csm . stack_arg_offsets if csm . result_block : if csm . result_block != block : ail_block = csm . result_block simp = self . project . analyses . AILBlockSimplifier ( ail_block , stack_pointer_tracker = stack_pointer_tracker , peephole_optimizations = self . peephole_optimizations , stack_arg_offsets = csm . stack_arg_offsets , ) return simp . result_block return None AILGraphWalker ( ail_graph , _handler , replace_nodes = True ) . walk ( ) return ail_graph , TempClass . stack_arg_offsets