angr.analyses.decompiler.decompilation_options

class angr.analyses.decompiler.decompilation_options.DecompilationOption

Bases: Generic[T]

Describes a decompilation option.

__init__(name, description, value_type, cls, param, value_range=None, category='General', default_value=None, clears_cache=True, candidate_values=None, convert=None)
Parameters:
  • name (str)

  • description (str)

  • value_type (type[T])

  • cls (str)

  • param (str)

  • category (str)

  • default_value (T | None)

  • clears_cache (bool)

  • candidate_values (list[T] | None)

  • convert (Callable[[str], T] | None)

angr.analyses.decompiler.decompilation_options.O

alias of DecompilationOption

angr.analyses.decompiler.decompilation_options.parse_known_patterns(value)

Normalize the known_patterns option value into None (force-enable nothing), the string "all", or a tuple of pattern names.

Both spellings are accepted so that the GUI can offer a single text field ("all" / "IsListEmpty, std::string::front") while API callers can pass a list. Names are not resolved here; that happens against the template registry, which is where an unknown name is reported.

Return type:

str | tuple[str, ...] | None

angr.analyses.decompiler.decompilation_options.get_structurer_option()
Return type:

DecompilationOption | None