@staticmethod
    def _condition_to_lambda(condition, default=False):
        if condition is None:
            condition = lambda p: default

        if isinstance(condition, (int, long)):
            condition = { condition }

        if isinstance(condition, (tuple, set, list)):
            addrs = set(condition)
            condition = lambda p: p.addr in addrs

        return condition
Translates an integer, set or list into a lambda that checks a path address against the given addresses.
dataset/ETHPy150Open angr/angr/angr/path_group.py/PathGroup._condition_to_lambda