Comment on I accidentally turned LLM memory into program analysisComments−alexpotato13dI recently stumbled upon the technique of asking the LLM to create a Dot Viz (or mermaid) flowchart of the program flow.The LLMs are great at:- understanding the flow- making diagrams- running the code with logging they add to to even better understand the flowThe flow being in Dot (or other machine readable format) makes it even easier for the LLM to use that as a reference going forward.−aiman_alsari12dYeah I do something similar. I've been using mermaid to create attack trees and as we explore the codebase for vulnerabilities we keep the tree up to date.This is how I used to do it before LLMs too, it's just way faster now
Comments
I recently stumbled upon the technique of asking the LLM to create a Dot Viz (or mermaid) flowchart of the program flow.
The LLMs are great at:
- understanding the flow
- making diagrams
- running the code with logging they add to to even better understand the flow
The flow being in Dot (or other machine readable format) makes it even easier for the LLM to use that as a reference going forward.
Yeah I do something similar. I've been using mermaid to create attack trees and as we explore the codebase for vulnerabilities we keep the tree up to date.
This is how I used to do it before LLMs too, it's just way faster now