neo-decompiler 0.8.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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { createBranchHelpers } from "./high-level-branches.js";
import { createLoopHelpers } from "./high-level-loops.js";
import { createTryHelpers } from "./high-level-try.js";
import { rewriteForLoops } from "./high-level-control-flow-shared.js";

export function createControlFlowHelpers(runtime) {
  const branches = createBranchHelpers(runtime);
  const loops = createLoopHelpers(runtime);
  const tries = createTryHelpers(runtime);

  return {
    ...branches,
    ...loops,
    ...tries,
    rewriteForLoops,
  };
}