Catherine Oriat

33 papers A* 2A 1C 5Journal 6Unranked 18
YearRankTypeTitle / Venue / Authors
2024 J jnl
CoRR
Germán Vega, Roland Groz, Catherine Oriat, Michael Foster, Neil Walkinshaw, Adenilso Simão
2023 C conf
ICFEM
Michael Foster, Roland Groz, Catherine Oriat, Adenilso da Silva Simão, Germán Vega, Neil Walkinshaw
2023 conf
ICGI
Roland Groz, Catherine Oriat, Germán Vega, Adenilso da Silva Simão, Michael Foster, Neil Walkinshaw
2023 conf
ICSTW
Rafael S. Braz, Adenilso da Silva Simão, Roland Groz, Catherine Oriat
2021 C conf
ICTSS
Moritz Halm, Rafael S. Braz, Roland Groz, Catherine Oriat, Adenilso Simão
2020 conf
SEED/NLPaSE@APSEC
Bahareh Afshinpour, Roland Groz, Massih-Reza Amini, Yves Ledru, Catherine Oriat
2019 J jnl
Softw. Qual. J.
Alexandre Petrenko, Florent Avellaneda, Roland Groz, Catherine Oriat
2018 conf
Machine Learning for Dynamic Software Analysis
Roland Groz, Adenilso da Silva Simão, Alexandre Petrenko, Catherine Oriat
2018 conf
AST@ICSE
Roland Groz, Adenilso Simão, Nicolas Brémond, Catherine Oriat
2017 C conf
ICTSS
Roland Groz, Adenilso da Silva Simão, Catherine Oriat
2017 C conf
ICTSS
Alexandre Petrenko, Florent Avellaneda, Roland Groz, Catherine Oriat
2016 conf
ICST Workshops
Lydie du Bousquet, Mickaël Delahaye, Catherine Oriat
2016 conf
ICGI
Roland Groz, Catherine Oriat, Nicolas Brémond
2015 C conf
ICTSS
Roland Groz, Adenilso da Silva Simão, Alexandre Petrenko, Catherine Oriat
2014 conf
ICST Workshops
Karim Hossen, Roland Groz, Catherine Oriat, Jean-Luc Richier
2014 conf
HASE
Alexandre Petrenko, Keqin Li, Roland Groz, Karim Hossen, Catherine Oriat
2014 conf
CSMR-WCRE
Matthias Büchler, Karim Hossen, Petru Florin Mihancea, Marius Minea, Roland Groz, Catherine Oriat
2013 conf
ICST Workshops
Karim Hossen, Roland Groz, Catherine Oriat, Jean-Luc Richier
2013 J jnl
Adv. Comput.
Muhammad-Naeem Irfan, Catherine Oriat, Roland Groz
2012 conf
ISoLA (1)
Roland Groz, Muhammad-Naeem Irfan, Catherine Oriat
2012 conf
ICGI
Muhammad-Naeem Irfan, Roland Groz, Catherine Oriat
2010 J jnl
J. Autom. Reason.
Lydie du Bousquet, Yves Ledru, Olivier Maury, Catherine Oriat, Jean-Louis Lanet
2009 conf
ICFI
Lydie du Bousquet, Ajitha Rajan, Catherine Oriat, Jean-Luc Richier, Germán Vega
2007 conf
EHCI/DS-VIS
Jullien Bouchet, Laya Madani, Laurence Nigay, Catherine Oriat, Ioannis Parissis
2005 conf
QoSA/SOQUA
Catherine Oriat
2005 A conf
ISSRE
Laya Madani, Catherine Oriat, Ioannis Parissis, Jullien Bouchet, Laurence Nigay
2004 A* conf
ASE
Lydie du Bousquet, Yves Ledru, Olivier Maury, Catherine Oriat, Jean-Louis Lanet
2004 J jnl
CoRR
Catherine Oriat
2001 A* conf
ASE
Yves Ledru, Lydie du Bousquet, Pierre Bontron, Olivier Maury, Catherine Oriat, Marie-Laure Potet
2000 J jnl
Theor. Comput. Sci.
Catherine Oriat
1996
Catherine Oriat
1995 conf
TAPSOFT
Didier Bert, Catherine Oriat
1995 conf
AMAST
Catherine Oriat
tests/unit/test_decompile_arch.py
← Index tests/unit/test_decompile_arch.py python
"""Unit tests for architecture modules:
- bninja/arch/creator.py
- bninja/arch/x86.py
"""
import sys
import pytest

# Install binaryninja stubs before importing arch modules
from tests.unit.conftest_binja_stubs import install_binja_stubs
install_binja_stubs()

from redb.extractors.decompiler.bninja.arch.creator import ArchitectureCreator
from redb.extractors.decompiler.bninja.arch.x86 import Arch_x86


# ============================================================================
# 3a. ArchitectureCreator
# ============================================================================

class TestArchitectureCreator:
    def test_create_x86(self):
        arch = ArchitectureCreator("x86").get()
        assert isinstance(arch, Arch_x86)

    def test_create_x86_case_insensitive(self):
        for name in ["X86", "x86", "X86"]:
            arch = ArchitectureCreator(name).get()
            assert isinstance(arch, Arch_x86)

    def test_unsupported_arch_raises(self):
        with pytest.raises(ValueError, match="Unsupported architecture"):
            ArchitectureCreator("arm").get()


# ============================================================================
# 3b. Arch_x86
# ============================================================================

class TestArch_x86Registers:
    def setup_method(self):
        self.arch = Arch_x86()

    def test_is_register_valid(self):
        assert self.arch.is_register("RAX") is True
        assert self.arch.is_register("eax") is True
        assert self.arch.is_register("XMM0") is True

    def test_is_register_invalid(self):
        assert self.arch.is_register("INVALID_REG") is False

    def test_is_general_purpose_register(self):
        assert self.arch.is_general_purpose_register("RAX") is True
        assert self.arch.is_general_purpose_register("XMM0") is False

    def test_is_stack_register(self):
        assert self.arch.is_stack_register("RSP") is True
        assert self.arch.is_stack_register("RBP") is True
        assert self.arch.is_stack_register("RAX") is False

    def test_is_xmm_register(self):
        assert self.arch.is_xmm_register("XMM0") is True
        assert self.arch.is_xmm_register("RAX") is False


class TestArch_x86OpcodeCategories:
    def setup_method(self):
        self.arch = Arch_x86()

    def test_opcode_categories_populated(self):
        assert len(self.arch.opcode_categories) > 0

    def test_opcode_mov_category(self):
        assert self.arch.opcode_categories["MOV"] == "DATA_MOVEMENT"

    def test_opcode_call_category(self):
        assert self.arch.opcode_categories["CALL"] == "CONTROL_FLOW"

    def test_opcode_add_category(self):
        assert self.arch.opcode_categories["ADD"] == "ARITHMETIC"


class TestArch_x86ControlFlow:
    def setup_method(self):
        self.arch = Arch_x86()

    def test_is_control_flow_instruction_by_mnemonic(self):
        assert self.arch.is_control_flow_instruction_by_mnemonic("JMP") is True
        assert self.arch.is_control_flow_instruction_by_mnemonic("MOV") is False

    def test_is_control_flow_instruction_call(self):
        assert self.arch.is_control_flow_instruction_by_mnemonic("CALL") is True

    def test_is_control_flow_instruction_ret(self):
        assert self.arch.is_control_flow_instruction_by_mnemonic("RET") is True

    def test_is_control_flow_instruction_loop(self):
        assert self.arch.is_control_flow_instruction_by_mnemonic("LOOP") is True

    def test_is_control_flow_instruction_empty(self):
        assert self.arch.is_control_flow_instruction_by_mnemonic("") is False
        assert self.arch.is_control_flow_instruction_by_mnemonic(None) is False