Source code for angr.analyses.decompiler.structuring

from typing import Optional, Type

from .dream import DreamStructurer
from .phoenix import PhoenixStructurer
from .recursive_structurer import RecursiveStructurer


STRUCTURER_CLASSES = {
    "dream": DreamStructurer,
    "phoenix": PhoenixStructurer,
}


[docs]def structurer_class_from_name(name: str) -> Optional[Type]: return STRUCTURER_CLASSES.get(name.lower(), None)