Sparx Systems Forum

Enterprise Architect => Uml Process => Topic started by: Qwe_EA on September 21, 2021, 05:13:56 pm

Title: Create flowchart from source code
Post by: Qwe_EA on September 21, 2021, 05:13:56 pm
Hi,

Is there any capability for obtain flowchart (activity diagram) from source code c/c++ ?

Thanks.
Title: Re: Create flowchart from source code
Post by: qwerty on September 21, 2021, 10:21:33 pm
No.

q.
Title: Re: Create flowchart from source code
Post by: Qwe_EA on September 22, 2021, 11:15:22 pm
Can it done by any third-party add-in ? (integrated in EA)
Title: Re: Create flowchart from source code
Post by: qwerty on September 23, 2021, 02:02:28 am
Who knows? I would guess also no.

q.
Title: Re: Create flowchart from source code
Post by: KalpakD on October 15, 2023, 01:10:40 am
An IDE like Understand does it.
But I don't know if its output compatible with EA.
Title: Re: Create flowchart from source code
Post by: qwerty on October 15, 2023, 01:30:04 am
Generally it's pointless to create any "flow" from code. Read about the halting problem or just think what you are trying to do. SD (or any similar kind of "flow" description) needs to be done by a human (or try ChatGPT if you are desperate). Someone(/thing) needs to decide which are meaningful paths out of the endless number of possible ones.

q.
Title: Re: Create flowchart from source code
Post by: KalpakD on October 20, 2023, 12:01:49 am
Not true.
Even a top-level flowchart will go a long in helping to understand the code.
Especially poorly documented legacy code.
I have used Understand quite effectively to review a big project in embedded C which did not have any kind of design documents and code which had almost no meaningful comments.
 
Title: Re: Create flowchart from source code
Post by: qwerty on October 20, 2023, 03:12:33 am
I was talking about an automat doing that which will not work. You are (very likely) talking about human created flows.

q.