asm2cfg icon indicating copy to clipboard operation
asm2cfg copied to clipboard

Mark dominator edges in CFG

Open yugr opened this issue 2 years ago • 2 comments

Knowing that one block dominates another may be useful for reading the CFG. Such edges can be highlighted with different color or thickness.

yugr avatar Mar 14 '22 16:03 yugr

hi, I have slightly modified this project https://github.com/x213212/asm2cfg so that it can read riscv asm to draw the control flow graph, and the latter added the tarjan algorithm according to your suggestion so that it can find the loops in asm

newmatrix_test

I added SVG viewer to easily see the different ASMs in the browser. https://github.com/x213212/asm2cfg/blob/main/compare.html

image

x213212 avatar Nov 21 '22 11:11 x213212

Yeah this looks very promising. Can you make a PR about these so I can review them?

Kazhuu avatar Nov 22 '22 17:11 Kazhuu