Interface DisambiguateStrategy

All Known Implementing Classes:
DisambiguateByBytes, DisambiguateByChild, DisambiguateByParent, DisambiguateByParentWithOrder

public interface DisambiguateStrategy
  • Method Summary

    Modifier and Type
    Method
    Description
    calcHashes(InstructHash instHash, int matchSize, HashStore store)
    Generate (possibly multiple) hashes that can be used to disambiguate an n-gram and its block from other blocks with similar instructions.
  • Method Details

    • calcHashes

      ArrayList<Hash> calcHashes(InstructHash instHash, int matchSize, HashStore store) throws CancelledException, MemoryAccessException
      Generate (possibly multiple) hashes that can be used to disambiguate an n-gram and its block from other blocks with similar instructions. Hashes are attached to the block's disambigHash list.
      Parameters:
      instHash - the instruction hash
      matchSize - the number of instructions to match
      store - is the HashStore used to store the disambiguating hashes
      Returns:
      the list of disambiguating hashes
      Throws:
      CancelledException
      MemoryAccessException