Carmine Cerrone

30 papers C 1Journal 27Unranked 2
YearRankTypeTitle / Venue / Authors
2025 J jnl
Comput. Oper. Res.
Jiaqi Wang, Carmine Cerrone, Bruce L. Golden
2025 J jnl
Soft Comput.
Carmine Cerrone, Anna Sciomachen, Maria Truvolo
2025 J jnl
Soft Comput.
Carmine Cerrone, Raffaele Dragone, Anna Franca Sciomachen
2024 conf
DSA ISC (1)
Carmine Cerrone, Maria Truvolo, Raffaele Dragone, Raffaele Battaglia
2023 J jnl
Comput. Oper. Res.
Carmine Cerrone, Davide Donato Russo
2023 J jnl
Algorithms
Jiaqi Wang, Bruce L. Golden, Carmine Cerrone
2023 J jnl
Eur. J. Oper. Res.
Andrea Di Placido, Claudia Archetti, Carmine Cerrone, Bruce L. Golden
2022 J jnl
Algorithms
Daniela Ambrosino, Carmine Cerrone, Anna Sciomachen
2022 J jnl
Comput. Oper. Res.
Andrea Di Placido, Claudia Archetti, Carmine Cerrone
2022 J jnl
Soft Comput.
Carmine Cerrone, Anna Sciomachen
2021 J jnl
Networks
Carmine Cerrone, Raffaele Cerulli, Anna Sciomachen
2021 J jnl
Soft Comput.
Giovanni Capobianco, Carmine Cerrone, Andrea Di Placido, Daniel Durand, Luigi Pavone, Davide Donato Russo, Fabio Sebastiano
2020 J jnl
INFORMS J. Comput.
Francesco Carrabs, Carmine Cerrone, Raffaele Cerulli, Bruce L. Golden
2019 J jnl
Networks
Francesco Carrabs, Carmine Cerrone, Rosa Pentangelo
2019 J jnl
Eur. J. Oper. Res.
Carmine Cerrone, Benjamin Dussault, Xingyin Wang, Bruce L. Golden, Edward A. Wasil
2019 J jnl
Networks
Carmine Cerrone, Ciriaco D'Ambrosio, Andrea Raiconi
2018 J jnl
EAI Endorsed Trans. Serious Games
Stefano Dalla Palma, Damian Andrew Tamburri, Remo Pareschi, Carmine Cerrone, Willem-Jan van den Heuvel
2018 J jnl
Optim. Lett.
Francesco Carrabs, Carmine Cerrone, Raffaele Cerulli, Selene Silvestri
2018 J jnl
Soft Comput.
Francesco Carrabs, Carmine Cerrone, Raffaele Cerulli, Selene Silvestri
2017 J jnl
Comput. Oper. Res.
Francesco Carrabs, Carmine Cerrone, Raffaele Cerulli, Manlio Gaudioso
2017 J jnl
Comput. Oper. Res.
Carmine Cerrone, Raffaele Cerulli, Bruce L. Golden
2017 C conf
GPC
Francesco Carrabs, Carmine Cerrone, Raffaele Cerulli, Ciriaco D'Ambrosio
2017 J jnl
Networks
Oliver Lum, Carmine Cerrone, Bruce L. Golden, Edward A. Wasil
2016 J jnl
Optim. Lett.
Carmine Cerrone, Raffaele Cerulli, Manlio Gaudioso
2015 J jnl
Eur. J. Oper. Res.
Carmine Cerrone, Raffaele Cerulli, Monica Gentili
2014 conf
NBiS
Francesco Carrabs, Carmine Cerrone, Raffaele Cerulli
2014 J jnl
Networks
Francesco Carrabs, Carmine Cerrone, Raffaele Cerulli
2014 J jnl
Comput. Oper. Res.
Lucio Bianco, Carmine Cerrone, Raffaele Cerulli, Monica Gentili
2014 J jnl
Int. J. Metaheuristics
Carmine Cerrone, Benjamin Dussault, Bruce L. Golden, Edward A. Wasil
2014 J jnl
Eur. J. Oper. Res.
Carmine Cerrone, Raffaele Cerulli, Andrea Raiconi
redb/extractors/decompiler/bninja/analysis/medium_level_normalization.py
← Index redb/extractors/decompiler/bninja/analysis/medium_level_normalization.py python
from binaryninja import (
    MediumLevelILInstruction,
    Variable, SSAVariable,
    ILIntrinsic,
)


class MediumLevelNormalization:
    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 isinstance(op, MediumLevelILInstruction):
                self._collect_ops(op, ops)
            elif isinstance(op, (list, tuple)):
                for sub in op:
                    if isinstance(sub, MediumLevelILInstruction):
                        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, SSAVariable):
            return "SSA_VAR"
        if isinstance(val, Variable):
            return "VAR"
        if isinstance(val, ILIntrinsic):
            return "INTRINSIC"
        if isinstance(val, bool):
            return "BOOL"
        if isinstance(val, float):
            return "FLOAT_CONST"
        if isinstance(val, int):
            return "CONST"
        if isinstance(val, str):
            return "STR"
        return type(val).__name__.upper()

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

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