-
-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: add support for execution/control flow analysis #2734
Comments
There is an experimental project on github which contains such spoon extension for control flow analysis. But it is actually not up to date with latest Spoon and it is not finished. But I am sure it would be good starting point. I agree that it would be nice to have it as part of Spoon core too. |
Maybe this one? |
See also: |
@tempuser1909 such a feature would be welcome, do you plan to contribute with a pull-request? |
@monperrus, I can try and see if I can implement such a big feature. I will first try implementing one of the issues I have raised a couple months ago (#2396). And once I am comfortable with developing/compiling Spoon and with Spoon internals, I will try my hand at implementing this. |
It sounds really great! You have our support! 👍
It would be nice to have it too, but may be with sniper printing mode this feature is not so urgent for you? |
Yes, it is not as urgent with Sniper mode. However, I thought that it would be easier to implement and at the same time get to know Spoon's internals better with that issue first. |
I guess #2827 implements this feature request. So, I am closing this. Don't hesitate to reopen if it's missing something. |
FYI: |
Hello! It is probably too late for this post, but I was looking for java to CFG library, and unfortunately haven't found this thread at the beginning (*feeling super dumb*). So I wrote my converter, completely based on Spoon model. I leave the link here, maybe someone will be interested https://gitlab.inria.fr/lsafina/java-cfg-builder P.S: After finding this thread I wanted to check on |
thanks for the pointer. yes, spoon-control-flow is not deployed on Maven Central, you can build and install from source. |
Shall I create a PR to remove the following lines from https://github.com/INRIA/spoon/tree/master/spoon-control-flow/README.md
|
yes, PRs to improve documentation are much welcome!
|
Hi,
I would like to ask if it has been proposed to have execution/control flow analysis?
For example, instead having just one CtModel when you call launcher#buildModel(), Spoon can have another model (maybe something like CtExecutionModel/CtExecutionGraph) that is still tied to CtModel but allows user to analyze the parsed code in a different way.
Or maybe Spoon is just meant to be purely for AST analysis?
Thank you.
The text was updated successfully, but these errors were encountered: