angr.exploration_techniques.common¶
- angr.exploration_techniques.common.condition_to_lambda(condition, default=False)¶
Translates an integer, set, list or function into a lambda that checks if state’s current basic block matches some condition.
- Parameters:
condition – An integer, set, list or lambda to convert to a lambda.
default – The default return value of the lambda (in case condition is None). Default: false.
- Returns:
A tuple of two items: a lambda that takes a state and returns the set of addresses that it matched from the condition, and a set that contains the normalized set of addresses to stop at, or None if no addresses were provided statically.