Is there a software or lib that visualizes generated assembly (preferred) or C++/C code to a directed graph, which in turn shows the paths of execution. Something similar like the example in the picture. This is from Godbolt.
I want the assembly code to be divided into blocks, and the function calls to be represented in a graph format. This would resemble an assembly compilation cycle graph. The issue lies in the inlines and attributes from GCC/G++, which create various shortcuts, leading to significant loss of clarity. Optimization exacerbates the problem, making it even more obscure. However, with the right adjustments in the code and the use of volatile, assembly instructions, the assembly code would become more understandable.


