Skip to content

Latest commit

 

History

History

example

Comparison between the assembly and the IR of a transformed and an unaltered C code

Commands:

clang -emit-llvm -S test.c -o test.ll
opt -load-pass-plugin ../build/ManglePass.so -passes=manglepass test.ll -S -o mangled-test.ll
clang test.c -o normal-exe
clang mangled-test.ll -o mangled-exe
objdump -d normal-exe > normal-assembly.asm
objdump -d mangled-exe > mangled-assembly.asm

ASM Diff:

asm-diff

IR Diff:

IR-diff