control-flow-graph Questions

4

I would like to create control flow graph(CFG) from assembly file using C language. I have been thinking about it and these are my ideas: 1. create blocks - process assembly file line by line - fi...
Bullis asked 20/2, 2016 at 20:57

1

Solved

I am trying to improve my unit tests by inspecting my current code coverage percentage. I am using gcov and lcov to produce a HTML report of the coverage results. However, I am having problems unde...
Bantling asked 19/12, 2016 at 16:31

3

I'm attempting to build a control-flow graph of the assembly results that are returned via a call to objdump -d . Currently the best method I've come up with is to put each line of the result into ...
Combustor asked 25/11, 2010 at 4:50

3

Solved

int main() { int i, grade = 0; printf (" Enter points: \n"); scanf ("%d", &i); if (i >= 50 && i <= 60) grade = 5; else if (i > 50 && i <= 60) grade = 6; else i...
Stark asked 18/6, 2018 at 16:20

1

I am drawing control-flow graphs for Python programs and would like to influence which kind of edges should not be crossed over. Is there a way to do this? Consider this simple Python program: t...
Nevis asked 25/11, 2018 at 15:6

2

I'm looking for Control Flow Graph generator for source code written in C++. Do you know any open-source, static generator? I would like to use it in my graduation project to generate cont...
Outcaste asked 12/11, 2016 at 13:17

1

Solved

Can I translate an Abstract Syntax Tree directly into SSA form, or will I need to create a control flow graph and then create the Static Single Assignment form from said CFG? And in the context of...
Evacuate asked 20/12, 2016 at 6:37

1

I am trying to find any possible path in my program by LLVM. Right now I can find paths from entry to exit BB of all functions in my code. However that's not what I need. What I need is extending C...
Phenothiazine asked 20/5, 2016 at 3:58

1

Does anyone from LLVM community know if there is a way to generate CFG for the whole input source code using opt -dot-cfg foo.ll(.bc) ? as this one generates the CFG per function thus the connectio...
Malevolent asked 24/10, 2014 at 21:12

1

I have a class of computations that seems to naturally take a graph structure. The graph is far from linear, as there are multiple inputs as well as nodes that fan out and nodes that require the re...
Paronomasia asked 18/11, 2015 at 3:26

0

I want to find all the possible linearly independent paths in a CFG. As per my limited knowledge of algorithms, a CFG would essentially be a directed graph containing cycles. The formula for cyclom...
Axiom asked 24/6, 2015 at 2:13

1

Solved

There is -view-cfg option (doc) in llvm's opt program, which enables me to view the Control Flow Graph via dot program. But the CFG in too big to be rendered as postscript from dot. I know that the...
Husky asked 12/6, 2013 at 9:51
1

© 2022 - 2024 — McMap. All rights reserved.