kdrag.utils.decl_index

kdrag.utils.decl_index(rules: list[Rule]) dict[FuncDeclRef, Rule]

Build a dictionary of rules indexed by their lhs head function declaration.