

def register_hooks(s, cc):
    h = s.function_hooks

    def register_hook(name, hook):
        h[name] = functools.partial(hook, cc=cc)
    register_hook('open', open)
    register_hook('read', read)
    register_hook('sleep', sleep)

dataset/ETHPy150Open c01db33f/concolica/library_emulation/unix.py register_hooks/original