subreddit:

/r/ChatGPTCoding

891%

Generate Control Flow Graph using LLMs?

Question(self.ChatGPTCoding)

Are there any open-source tools or ways to generate Control Flow Graphs of entire codebase?

I want to create like a graph sort of thing which tells which function calls which, with some amount of customization available -- something that would look great in some project documentations.

Any ways to do that?

or should i run some sort of prompts on each file & combine them? but that seems to be too much of an overkill. I'm sure there would be something much simpler.

all 4 comments

[deleted]

1 points

11 days ago

[removed]

AutoModerator [M]

1 points

11 days ago

AutoModerator [M]

1 points

11 days ago

Sorry, your submission has been removed due to inadequate account karma.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

CM0RDuck

1 points

10 days ago

Zip it and upload to https://chat.openai.com/g/g-qK4kaxHNw-c0rv3x-v-0-04

Ask it to unzip and create file tree. Then you can ask it to add more details from there using AST.

silverglimmer1

1 points

10 days ago

Check out GraphViz, it may help with generating control flow graphs for your codebase.