Files
revive/crates/cli/src/main.rs
T
xermicus 7a094f17c0 add more crates
Signed-off-by: xermicus <cyrill@parity.io>
2023-12-09 17:48:52 +01:00

11 lines
365 B
Rust

use evmil::bytecode::Disassemble;
use revive_ir::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();
Program::new(instructions).dot(BasicBlockFormatOption::ByteCode);
}