├── .gitmodules ├── CMakeLists.txt ├── LICENSE ├── README.md ├── bin └── CMakeLists.txt ├── examples ├── CMakeLists.txt └── disassembler │ ├── CMakeLists.txt │ └── disassembler.cpp ├── include ├── CMakeLists.txt ├── befa.hpp └── befa │ ├── assembly │ ├── basic_block.hpp │ ├── instruction.hpp │ ├── instruction_parser.hpp │ ├── section.hpp │ └── symbol.hpp │ ├── llvm │ ├── assignment.hpp │ ├── binary_operation.hpp │ ├── call.hpp │ ├── cmp.hpp │ ├── instruction.hpp │ ├── jmp.hpp │ └── unary_instruction.hpp │ └── utils │ ├── algorithms.hpp │ ├── assert.hpp │ ├── backward.hpp │ ├── byte_array_view.hpp │ ├── range.hpp │ ├── types.hpp │ └── visitor.hpp ├── main.cpp ├── src ├── CMakeLists.txt ├── assembly │ ├── decoder.cpp │ ├── disassembler.cpp │ └── executable_file.cpp └── llvm │ └── decompiler.cpp └── tests ├── CMakeLists.txt ├── allocator.cpp ├── c_prog ├── CMakeLists.txt └── sample.c ├── decoder.cpp ├── decompiler.cpp ├── disassembler.cpp ├── executable.cpp ├── fixtures.hpp ├── main.cpp ├── observer.cpp ├── test_cases ├── CMakeLists.txt ├── global_function │ ├── CMakeLists.txt │ └── global_function.c └── simple │ ├── CMakeLists.txt │ └── simple.c └── visitor.cpp /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/.gitmodules -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/README.md -------------------------------------------------------------------------------- /bin/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/bin/CMakeLists.txt -------------------------------------------------------------------------------- /examples/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/examples/CMakeLists.txt -------------------------------------------------------------------------------- /examples/disassembler/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/examples/disassembler/CMakeLists.txt -------------------------------------------------------------------------------- /examples/disassembler/disassembler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/examples/disassembler/disassembler.cpp -------------------------------------------------------------------------------- /include/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /include/befa.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa.hpp -------------------------------------------------------------------------------- /include/befa/assembly/basic_block.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/assembly/basic_block.hpp -------------------------------------------------------------------------------- /include/befa/assembly/instruction.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/assembly/instruction.hpp -------------------------------------------------------------------------------- /include/befa/assembly/instruction_parser.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/assembly/instruction_parser.hpp -------------------------------------------------------------------------------- /include/befa/assembly/section.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/assembly/section.hpp -------------------------------------------------------------------------------- /include/befa/assembly/symbol.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/assembly/symbol.hpp -------------------------------------------------------------------------------- /include/befa/llvm/assignment.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/llvm/assignment.hpp -------------------------------------------------------------------------------- /include/befa/llvm/binary_operation.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/llvm/binary_operation.hpp -------------------------------------------------------------------------------- /include/befa/llvm/call.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/llvm/call.hpp -------------------------------------------------------------------------------- /include/befa/llvm/cmp.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/llvm/cmp.hpp -------------------------------------------------------------------------------- /include/befa/llvm/instruction.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/llvm/instruction.hpp -------------------------------------------------------------------------------- /include/befa/llvm/jmp.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/llvm/jmp.hpp -------------------------------------------------------------------------------- /include/befa/llvm/unary_instruction.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/llvm/unary_instruction.hpp -------------------------------------------------------------------------------- /include/befa/utils/algorithms.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/utils/algorithms.hpp -------------------------------------------------------------------------------- /include/befa/utils/assert.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/utils/assert.hpp -------------------------------------------------------------------------------- /include/befa/utils/backward.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/utils/backward.hpp -------------------------------------------------------------------------------- /include/befa/utils/byte_array_view.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/utils/byte_array_view.hpp -------------------------------------------------------------------------------- /include/befa/utils/range.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/utils/range.hpp -------------------------------------------------------------------------------- /include/befa/utils/types.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/utils/types.hpp -------------------------------------------------------------------------------- /include/befa/utils/visitor.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/include/befa/utils/visitor.hpp -------------------------------------------------------------------------------- /main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/main.cpp -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/assembly/decoder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/src/assembly/decoder.cpp -------------------------------------------------------------------------------- /src/assembly/disassembler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/src/assembly/disassembler.cpp -------------------------------------------------------------------------------- /src/assembly/executable_file.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/src/assembly/executable_file.cpp -------------------------------------------------------------------------------- /src/llvm/decompiler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/src/llvm/decompiler.cpp -------------------------------------------------------------------------------- /tests/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/CMakeLists.txt -------------------------------------------------------------------------------- /tests/allocator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/allocator.cpp -------------------------------------------------------------------------------- /tests/c_prog/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/c_prog/CMakeLists.txt -------------------------------------------------------------------------------- /tests/c_prog/sample.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/c_prog/sample.c -------------------------------------------------------------------------------- /tests/decoder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/decoder.cpp -------------------------------------------------------------------------------- /tests/decompiler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/decompiler.cpp -------------------------------------------------------------------------------- /tests/disassembler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/disassembler.cpp -------------------------------------------------------------------------------- /tests/executable.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/executable.cpp -------------------------------------------------------------------------------- /tests/fixtures.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/fixtures.hpp -------------------------------------------------------------------------------- /tests/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/main.cpp -------------------------------------------------------------------------------- /tests/observer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/observer.cpp -------------------------------------------------------------------------------- /tests/test_cases/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/test_cases/CMakeLists.txt -------------------------------------------------------------------------------- /tests/test_cases/global_function/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/test_cases/global_function/CMakeLists.txt -------------------------------------------------------------------------------- /tests/test_cases/global_function/global_function.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/test_cases/global_function/global_function.c -------------------------------------------------------------------------------- /tests/test_cases/simple/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/test_cases/simple/CMakeLists.txt -------------------------------------------------------------------------------- /tests/test_cases/simple/simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/test_cases/simple/simple.c -------------------------------------------------------------------------------- /tests/visitor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/onionka/BEFA-Library/HEAD/tests/visitor.cpp --------------------------------------------------------------------------------