JetBrains-Research / astminer

A library for mining of path-based representations of code (and more)
MIT License
282 stars 80 forks source link

can astminer extract control flow of a source code? #209

Closed Avv22 closed 2 years ago

Avv22 commented 2 years ago

Hello JetBrains Team,

I understand that your tool is supposed to extract paths from AST of a source code, do you have similar tools that extract control flow graph of a source code please?

Thanks.

egor-bogomolov commented 2 years ago

Hello! Astminer currently does not have this functionality. We are working on extending PsiMiner with functionality for mining more complex graph representations such as CFG and DFG, stay tuned :slightly_smiling_face:

Avv22 commented 2 years ago

@egor-bogomolov. Any expectations please when this tool should be published?

egor-bogomolov commented 2 years ago

@Avra2 I expect to have a working prototype for Java in May. Not yet a stable version and likely with some performance issues, but I can ping you to try it :slightly_smiling_face: What is your use case, and which languages do you need?

Avv22 commented 2 years ago

@egor-bogomolov. Thanks for your quick responses as always. I am looking to extract python and Java dependency graph or control flow graph information. Java/python file can have classes or methods, so not sure if your tool can parse whole file or it only accepts methods please?

Avv22 commented 2 years ago

@egor-bogomolov. Hello Egor. Is there any update on your tool please to extract control flow graph from source code? I am interested only in Java and Python.