MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / mergePotential

Method mergePotential

src/function_context.py:870–876  ·  view source on GitHub ↗

Check if this is a collision function with a potential to merge more src functions. Return value: True iff this is a merged function with growth potential

(self)

Source from the content-addressed store, hash-verified

868 return self.taken_collision
869
870 def mergePotential(self):
871 """Check if this is a collision function with a potential to merge more src functions.
872
873 Return value:
874 True iff this is a merged function with growth potential
875 """
876 return self.matched() and (not self.match.isPartial()) and len([x for x in self.match.collision_candidates if not x.matched()]) > 0
877
878 def isHinted(self):
879 """Check if our function was hinted at sometimes - meaning we should suspect it is a valid function.

Callers 1

activeMethod · 0.95

Calls 2

matchedMethod · 0.45
isPartialMethod · 0.45

Tested by

no test coverage detected