Class PurityIntraproceduralAnalysis

    • Method Detail

      • flowThrough

        protected void flowThrough​(PurityGraphBox inValue,
                                   Unit unit,
                                   PurityGraphBox outValue)
        Description copied from class: FlowAnalysis
        Given the merge of the out sets, compute the in set for s (or in to out, depending on direction). This function often causes confusion, because the same interface is used for both forward and backward flow analyses. The first parameter is always the argument to the flow function (i.e. it is the "in" set in a forward analysis and the "out" set in a backward analysis), and the third parameter is always the result of the flow function (i.e. it is the "out" set in a forward analysis and the "in" set in a backward analysis).
        Specified by:
        flowThrough in class FlowAnalysis<Unit,​PurityGraphBox>
        Parameters:
        inValue - the input flow
        unit - the current node
        outValue - the returned flow
      • drawAsOneDot

        public void drawAsOneDot​(String prefix,
                                 String name)
        Draw the result of the intra-procedural analysis as one big dot file, named className.methodName.dot, containing one purity graph for each statement in the method.
        Parameters:
        prefix -
        name -
      • copyResult

        public void copyResult​(PurityGraphBox dst)
        Put into dst the purity graph obtained by merging all purity graphs at the method return. It is a valid summary that can be used in methodCall if you do interprocedural analysis.
        Parameters:
        dst -