Jul 14, 2022
Control Flow Graph from ANSI C code
I'm building tool for testing ansi c applications. Basically, load code, view control flow graph, run test, mark all vertexes which were hit. I'm attempting to build CFG all by myself from parsing code. Sadly It gets screwed up assuming that code is nested. GCC gives ability to get CFG from compiled code. could compose a parser for its output, but I need line numbers for setting breakpoints. Is there way for getting line numbers when outputting Control Flow Graph with -fdump-tree-cfg or -fdump-tree-vcg?
Please also mark the comments that contributed to the solution of the article
Printed on: December 4, 2022 at 00:12 o'clock