neo-decompiler 0.10.1

Neo N3 NEF decompiler: parse, disassemble, lift bytecode to high-level pseudocode and C# skeletons, with a CLI, JSON reports, and optional WebAssembly bindings.
Documentation
//! Per-method view of a contract for the structured-IR renderer.

mod extract;
mod render;
#[cfg(test)]
mod tests;

use crate::decompiler::analysis::MethodRef;
use crate::decompiler::cfg::Cfg;
use crate::instruction::Instruction;

pub(crate) use extract::extract_method_cfgs;
pub(crate) use render::render_envelope;

/// A per-method view: the method's instruction slice and a self-contained
/// sub-CFG whose terminators do not leave the method (cross-range jumps are
/// rewritten to `Return`; the sub-CFG has a synthesised entry block).
#[derive(Debug, Clone)]
pub(crate) struct MethodView {
    pub method: MethodRef,
    pub cfg: Cfg,
    pub instructions: Vec<Instruction>,
}