Class DecompilerUtils


  • public class DecompilerUtils
    extends java.lang.Object
    • Constructor Detail

      • DecompilerUtils

        public DecompilerUtils()
    • Method Detail

      • getVarnodeRef

        public static Varnode getVarnodeRef​(ClangToken vartoken)
        If the token refers to an individual Varnode, return it. Otherwise return null;
        Returns:
        the Varnode or null otherwise
      • getForwardSlice

        public static java.util.Set<Varnode> getForwardSlice​(Varnode seed)
        Construct the set of varnodes making up a simple forward slice of seed
        Parameters:
        seed - Varnode where the slice starts
        Returns:
        set of Varnodes in the slice
      • getBackwardSlice

        public static java.util.Set<Varnode> getBackwardSlice​(Varnode seed)
      • getForwardSliceToPCodeOps

        public static java.util.Set<PcodeOp> getForwardSliceToPCodeOps​(Varnode seed)
      • getBackwardSliceToPCodeOps

        public static java.util.Set<PcodeOp> getBackwardSliceToPCodeOps​(Varnode seed)
      • findIndexOfFirstField

        public static int findIndexOfFirstField​(java.util.List<ClangToken> tokenlist,
                                                Field[] fields)
        Find index of first field containing a ClangNode in tokenList
        Parameters:
        tokenlist -
        Returns:
        index of field, or -1
      • getTokens

        public static java.util.List<ClangToken> getTokens​(ClangNode root,
                                                           AddressSetView addressSet)
        Find all ClangNodes that have a minimum address in the AddressSetView
        Parameters:
        reslist - is resulting list of found ClangNodes
        parentNode - is root of node tree to search
        aset - is the AddressSetView to match