I-Cheng Yeh

14 papers Journal 12Unranked 2
YearRankTypeTitle / Venue / Authors
2021 J jnl
Int. J. Hum. Comput. Interact.
Yi-Jheng Huang, Kang-Yi Liu, Suiang-Shyan Lee, I-Cheng Yeh
2020 J jnl
Multim. Tools Appl.
I-Cheng Yeh, Shih-Syun Lin, Shuo-Tse Hung, Tong-Yee Lee
2020 conf
ICCE-TW
I-Cheng Yeh, Sebastian Chung, Yung-Peng Hsu, Chung-I Huang
2018 J jnl
IEEE Trans. Vis. Comput. Graph.
Yi-Jheng Huang, Wen-Chieh Lin, I-Cheng Yeh, Tong-Yee Lee
2018 conf
SIGGRAPH ASIA Posters
Charles C. Morace, Feng-Wei Wu, Chih-Kuo Yeh, Chia-Hsiang Chen, I-Cheng Yeh, Tong-Yee Lee
2015 J jnl
Comput. Graph. Forum
Hsin Yang Ho, I-Cheng Yeh, Yu-Chi Lai, Wen-Chieh Lin, Fu-Yin Cherng
2013 J jnl
IEEE Trans. Vis. Comput. Graph.
Shih-Syun Lin, Chao-Hung Lin, I-Cheng Yeh, Shu-Huai Chang, Chih-Kuo Yeh, Tong-Yee Lee
2013 J jnl
IEEE Trans. Multim.
Shih-Syun Lin, I-Cheng Yeh, Chao-Hung Lin, Tong-Yee Lee
2012 J jnl
IEEE Trans. Vis. Comput. Graph.
Hongchuan Yu, Tong-Yee Lee, I-Cheng Yeh, Xiaosong Yang, Wenxi Li, Jian J. Zhang
2012 J jnl
IEEE Trans. Vis. Comput. Graph.
I-Cheng Yeh, Wen-Chieh Lin, Tong-Yee Lee, Hsin-Ju Han, Jehee Lee, Manmyung Kim
2011 J jnl
Comput. Animat. Virtual Worlds
I-Cheng Yeh, Chao-Hung Lin, Hung-Jen Chien, Tong-Yee Lee
2011 J jnl
IEEE Trans. Vis. Comput. Graph.
I-Cheng Yeh, Chao-Hung Lin, Olga Sorkine, Tong-Yee Lee
2008 J jnl
ACM Trans. Graph.
Jackie Assa, Daniel Cohen-Or, I-Cheng Yeh, Tong-Yee Lee
2008 J jnl
IEEE Trans. Vis. Comput. Graph.
Tong-Yee Lee, Shao-Wei Yen, I-Cheng Yeh
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