initial commit

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
Cyrill Leutwiler
2023-12-07 20:37:23 +01:00
commit 426ab4b095
16 changed files with 2289 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
use evmil::bytecode::Disassemble;
use ir_tac::cfg::{BasicBlockFormatOption, Program};
fn main() {
let hexcode = std::fs::read_to_string(std::env::args().nth(1).unwrap()).unwrap();
let bytecode = hex::decode(hexcode.trim()).unwrap();
let instructions = bytecode.disassemble();
//for instruction in instructions.iter() {
// println!("{instruction:?}");
//}
Program::new(instructions).dot(BasicBlockFormatOption::ByteCode);
}