This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ghidra.program.model.symbol import RefType | |
import itertools | |
def memoize(func): | |
cache = dict() | |
def memoized_func(*args): | |
if args in cache: | |
return cache[args] | |
result = func(*args) |