Skip to content

umasii/disassembler-graph-view

Repository files navigation

Disassembler Graph View

Edit: Huge shoutout to evade (https://github.com/depicts) for QOL improvements such as adding a sidebar and generally making my frontend code not terrible.

Fork of https://github.com/wbkd/react-flow-example-apps/tree/main/reactflow-nextjs for the purpose of viewing the control flow of bytecode functions. All the code I wrote is in src/components/Flow/getNodes.tsx.

For the disassembler, see https://github.com/umasii/ips-disassembler.

To see the graph of a function, click on the function on the left navigation.

Edit functions.json and branches.json in the src/constants directory.

Just as a disclaimer, I have no frontend experience so please don't judge this code too hard. Pull requests welcome.

Doesn't yet include branches that are indicated by N and I values, and the redundant branch block splitting algorithm is not as optimal as it could be. Specifically, there are certain ignorable cases based on the length of each block.

Installation

npm install

Start Dev Server

npm run dev

Runs the app in development mode. Open http://localhost:3000 to view it in the browser. alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published