H. Paul Keeler

13 papers B 2Journal 11
YearRankTypeTitle / Venue / Authors
2026 J jnl
CoRR
H. Paul Keeler
2023 J jnl
CoRR
H. Paul Keeler, Bartek Blaszczyszyn, Elie Cali
2020 B conf
WiOpt
Bartek Blaszczyszyn, Antoine Brochard, H. Paul Keeler
2020 J jnl
CoRR
Bartek Blaszczyszyn, Antoine Brochard, H. Paul Keeler
2018 J jnl
CoRR
Rhys Bowden, H. Paul Keeler, Anthony E. Krzesinski, Peter G. Taylor
2018 J jnl
CoRR
Bartlomiej Blaszczyszyn, H. Paul Keeler
2018 B conf
WiOpt
H. Paul Keeler, Benedikt Jahnel, Oliver Maye, Daniel Aschenbach, Marcin Brzozowski
2018 J jnl
IEEE Trans. Wirel. Commun.
Arpan Chattopadhyay, Bartlomiej Blaszczyszyn, H. Paul Keeler
2017 J jnl
CoRR
H. Paul Keeler, Benedikt Jahnel, Oliver Maye, Marcin Brzozowski, Daniel Aschenbach
2016 J jnl
CoRR
H. Paul Keeler, Bartlomiej Blaszczyszyn, Paul Mühlethaler
2016 J jnl
CoRR
H. Paul Keeler, Nathan Ross, Aihua Xia, Bartlomiej Blaszczyszyn
2015 J jnl
CoRR
Johannes Göbel, H. Paul Keeler, Anthony E. Krzesinski, Peter G. Taylor
2015 J jnl
IEEE Trans. Wirel. Commun.
Bartlomiej Blaszczyszyn, Mohamed Kadhem Karray, H. Paul Keeler
redb/extractors/decompiler/bninja/analysis/low_level_normalization.py
← Index redb/extractors/decompiler/bninja/analysis/low_level_normalization.py python
from binaryninja import (
    ILRegister, ILRegisterStack, ILFlag,
    ILIntrinsic, ILSemanticFlagGroup,
)

class LowLevelNormalization:
    def __init__(self):
        return

    def _collect_ops(self, il, ops):
        if il is None:
            return
        ops.append(int(il.operation))
        operands = getattr(il, "operands", None)
        if not operands:
            return
        for op in operands:
            if hasattr(op, "operation"):
                self._collect_ops(op, ops)
            elif isinstance(op, (list, tuple)):
                for sub in op:
                    if hasattr(sub, "operation"):
                        self._collect_ops(sub, ops)

    def normalize_instruction_all_levels(self, instr_il):
        ops = []
        self._collect_ops(instr_il, ops)

        return ops

    def _leaf_type(self, val):
        if isinstance(val, ILRegister):
            return "REG"
        if isinstance(val, ILRegisterStack):
            return "REG_STACK"
        if isinstance(val, ILFlag):
            return "FLAG"
        if isinstance(val, ILSemanticFlagGroup):
            return "FLAG_GROUP"
        if isinstance(val, ILIntrinsic):
            return "INTRINSIC"
        if isinstance(val, bool):
            return "BOOL"
        if isinstance(val, int):
            return "CONST"
        return type(val).__name__.upper()

    def _collect(self, il, out):
        if il is None:
            return
        out.append(int(il.operation))
        operands = getattr(il, "operands", None)
        if not operands:
            return
        for op in operands:
            if hasattr(op, "operation"):
                self._collect(op, out)
            elif isinstance(op, (list, tuple)):
                for sub in op:
                    if hasattr(sub, "operation"):
                        self._collect(sub, out)
                    else:
                        out.append(self._leaf_type(sub))
            else:
                out.append(self._leaf_type(op))

    def normalize_instr_with_operands(self, instr_il):
        ops = []
        self._collect(instr_il, ops)
        return ops