angr.concretization_strategies.eval 源代码

from __future__ import annotations

from .base import SimConcretizationStrategy


[文档] class SimConcretizationStrategyEval(SimConcretizationStrategy): """ Concretization strategy that resolves an address into some limited number of solutions. Always handles the concretization, but only returns a maximum of limit number of solutions. Therefore, should only be used as the fallback strategy. """
[文档] def __init__(self, limit, **kwargs): super().__init__(**kwargs) self._limit = limit
def _concretize(self, memory, addr, **kwargs): return self._eval(memory, addr, self._limit, **kwargs)