In-Beum Lee

17 papers C 4Journal 12Unranked 1
YearRankTypeTitle / Venue / Authors
2020 J jnl
IEEE Trans. Ind. Informatics
Ha-Nui Jo, Byeong Eon Park, Yumi Ji, Dong-Kuk Kim, Jeong Eun Yang, In-Beum Lee
2019 C conf
INDIN
Ha-Nui Jo, Byeong Eon Park, Yumi Ji, Dong-Kuk Kim, Jeong Eun Yang, In-Beum Lee, Jeong Byeol Hong
2014 J jnl
Autom.
Kyungsu Kim, Yu Jin Cheon, In-Beum Lee, Jietae Lee, Su Whan Sung
2013 conf
ASCC
Yu Jin Cheon, Donghyun Lee, In-Beum Lee, Su Whan Sung
2013 J jnl
Comput. Chem. Eng.
Kyung Tae Park, Hansol Kim, Soobin Lee, Ho-Kyung Lee, Jun-Hyung Ryu, In-Beum Lee
2007 J jnl
BMC Bioinform.
Kyungpil Kim, Shibo Zhang, Keni Jiang, Li Cai, In-Beum Lee, Lewis J. Feldman, Haiyan Huang
2005 J jnl
Comput. Chem. Eng.
ChangKyoo Yoo, In-Beum Lee, Peter A. Vanrolleghem
2004 J jnl
Comput. Chem. Eng.
Jong-Min Lee, ChangKyoo Yoo, In-Beum Lee
2004 J jnl
Comput. Chem. Eng.
Sang Wook Choi, Jin Hyun Park, In-Beum Lee
2004 C conf
CCA
Changkyu Lee, Sang Wook Choi, Jong-Min Lee, In-Beum Lee
2004 C conf
CCA
Ji-Hoon Cho, Jong-Min Lee, Sang Wook Choi, DongKwon Lee, In-Beum Lee
2003 J jnl
Comput. Chem. Eng.
ChangKyoo Yoo, Su Whan Sung, In-Beum Lee
2003 J jnl
Comput. Chem. Eng.
Jong-Min Lee, ChangKyoo Yoo, In-Beum Lee
2002 C conf
ACC
Yangdong Pan, ChangKyoo Yoo, Jay H. Lee, In-Beum Lee
1998 J jnl
Autom.
Jin Hyun Park, Su Whan Sung, In-Beum Lee
1998 J jnl
Autom.
Su Whan Sung, In-Beum Lee, Jietae Lee
1997 J jnl
Autom.
Jin Hyun Park, Su Whan Sung, In-Beum Lee
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