franck44 / evm-dis

An EVM bytecode disassembler/assembler
Apache License 2.0
29 stars 6 forks source link

Simplify/Re-factor CFGraph #32

Closed franck44 closed 7 months ago

franck44 commented 8 months ago

The module in CFGraph.dfy is too large. It contains lots of pretty-printing functions, and a few that converts a CFraph into an automaton and back. This is overly complicated.

To do

  1. separate pretty-printing from other functions
  2. see if buildCFG can be altered to compute a graph in another form then a list of edges (e.g. a map as used in the Automaton module).