Class BSimMatchResult

java.lang.Object
ghidra.features.bsim.gui.search.results.BSimMatchResult

public class BSimMatchResult extends Object
A possible BSim function match. The similarity of this function is scored and denoted by similarity. The significance of the match is denoted by getSignificance().
  • Constructor Details

  • Method Details

    • isFlagSet

      public boolean isFlagSet(int mask)
    • getOriginalFunctionDescription

      public FunctionDescription getOriginalFunctionDescription()
    • getMatchFunctionDescription

      public FunctionDescription getMatchFunctionDescription()
    • getAddress

      public Address getAddress()
    • getExecutableURLString

      public String getExecutableURLString()
    • getStatus

      public BSimResultStatus getStatus()
    • setStatus

      public void setStatus(BSimResultStatus status)
    • getOriginalFunctionName

      public String getOriginalFunctionName()
      The name of the input function to which this function is similar.
      Returns:
      name of the input function to which this function is similar.
    • getOriginalFunctionAddress

      public long getOriginalFunctionAddress()
    • getExecutableName

      public String getExecutableName()
      The name of the executable containing this function.
      Returns:
      the name of the executable containing this function.
    • getExeCategoryAlphabetic

      public String getExeCategoryAlphabetic(String type)
    • getArchitecture

      public String getArchitecture()
    • getCompilerName

      public String getCompilerName()
    • getMd5

      public String getMd5()
    • getSimilarFunctionName

      public String getSimilarFunctionName()
      The name of this function.
      Returns:
      the name of this function.
    • getSimilarFunctionAddress

      public long getSimilarFunctionAddress()
    • getSimilarity

      public double getSimilarity()
      The similarity of this function to the input function. This is a value from 0.0 to 1.0.
      Returns:
      the similarity of this function to the input function.
    • getSignificance

      public double getSignificance()
      The significance of the similarity of this function to the input function. This is a value that starts at 0.0, with no upper bound. Functions small in size will have a low significance score, as there is a chance that many small functions will have a similar makeup.
      Returns:
      the significance of the similarity of this function to the input function.
    • getDate

      public Date getDate()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • generate

      public static List<BSimMatchResult> generate(List<SimilarityResult> results, Program prog)
    • filterMatchRows

      public static List<BSimMatchResult> filterMatchRows(BSimFilter filter, List<BSimMatchResult> rows)