mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-29 08:57:56 +00:00
7a094f17c0
Signed-off-by: xermicus <cyrill@parity.io>
11 lines
365 B
Rust
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);
|
|
}
|