tuli
10th September 2013, 13:57
Hi,
I am working on an prject, where i want ot visualize intermediate compiler bytecode output in form of a control flow graph (cfg). This means, that i will probably want to have algorithms for formatting the graph.
I opted for graphviz + Qt graphics scene. Thanks to Qt/gv documentation, i am able to render a such a graph to a scene...however, it looks nothing like a cfg.
see the attached screenshot.
9562
For comparison, there is a perfect CFG for the same code, of the popular IDA Disassembler.
q1: how can i get better layout results?
While looking at the perfect CFGs of that disassembler, i noticed that the disassembler is NOT, in fact, using graphviz at all! Instead, it only seems to use Qt to render the CFGs!
q2: can i actually drop graphviz and use Qt only? That's be awesome. But i dont really see how that is possible in the Qt docs?
I am working on an prject, where i want ot visualize intermediate compiler bytecode output in form of a control flow graph (cfg). This means, that i will probably want to have algorithms for formatting the graph.
I opted for graphviz + Qt graphics scene. Thanks to Qt/gv documentation, i am able to render a such a graph to a scene...however, it looks nothing like a cfg.
see the attached screenshot.
9562
For comparison, there is a perfect CFG for the same code, of the popular IDA Disassembler.
q1: how can i get better layout results?
While looking at the perfect CFGs of that disassembler, i noticed that the disassembler is NOT, in fact, using graphviz at all! Instead, it only seems to use Qt to render the CFGs!
q2: can i actually drop graphviz and use Qt only? That's be awesome. But i dont really see how that is possible in the Qt docs?