LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Automatic flowchart generator (https://www.linuxquestions.org/questions/linux-software-2/automatic-flowchart-generator-4175568025/)

joenew 01-27-2016 09:04 AM

Automatic flowchart generator
 
Hi all.
I'm searching for a tool able to automatically draw a "flow chart" of a source code read as input.
I'm especially interested in analysis of a source code written in Fortran.
I found some alternatives running on linux, such as doxygen and f77_diagram, but none of them has been able to make a complete flow chart as expected.

Then I tried a closed alternative called Visustin, it supports Fortran and its demo version has made a flowchart for the input source code as expected. Anyway this application doesn't support Linux OS and it has many limitations since it's just a demo version.

You can get a preview screenshot of what kind of diagram I obtained using Visustin, take a look at this link:

https://dl.dropboxusercontent.com/u/...2/visustin.jpg


I'd glad if you could suggest a working Free alternative running on Linux.
Thanks in advance! :)

Elizine 01-27-2016 11:42 PM

Dia is an automatic flowchart generator working on Linux. Here a link on information about Dia - https://www.linux.com/learn/tutorial...harts-with-dia

jamison20000e 01-28-2016 12:03 AM

It's been awhile but a java app came to mind, think this is it: JFreeChart\http://www.jfree.org/jfreechart/
or: https://docs.oracle.com/javafx/2/cha...pub-charts.htm

The image makes me think Freemind?

joenew 01-28-2016 04:37 AM

Quote:

Originally Posted by Elizine (Post 5488427)
Dia is an automatic flowchart generator working on Linux. Here a link on information about Dia - https://www.linux.com/learn/tutorial...harts-with-dia

Uhmmm... Reading that link I can't find feature I need. It seems just a tool for draw diagram "by hand". Instead I need an app that parse my Fortran source code and automagically draws corresponding flowchart. There is a project with a similar name, AutoDia (http://www.aarontrevena.co.uk/opensource/autodia/) which I think it does what I'm looking for. But It doesn't support Fortran language as input code.

Quote:

Originally Posted by jamison20000e
JFreeChart
javafx

Seems they are not able to create "flowcharts", support other types of diagrams.
http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=16843
http://www.jfree.org/forum/viewtopic.php?f=3&t=3879
https://docs.oracle.com/javafx/2/cha...w.htm#CJAHHJCB

Quote:

Originally Posted by jamison20000e
Freemind

Ok, I don't have to draw a diagram by hand or something similar. I have a program code written by an other person and I'm working on its analysis. The goal is to understand what that code does, which is the scheme it follows... so, how it works. Then I'll try to rewrite and optimize it if possible.

To better explain what I need... following online tool is an interactive example of code to flowchart translation I'm looking for:
http://code2flow.com/#help

Unfortunately it just support "C" , not Fortran...

An other alternative seems to be "Understand For Fortran" by Scilab:
https://scitools.com/feature/control-flow-graphs/

But it is not free...

ark704 05-26-2016 02:59 AM

Hi joenew.

Did you make any break through in generating the flow chart?

joenew 06-06-2016 05:01 PM

"Understand for fortran" seems to work fine.

rumbling 06-07-2016 12:21 AM

Dia is great for creating flowcharts, but I'm not sure it supports automatic creation of flowcharts based on code.


All times are GMT -5. The time now is 05:34 PM.