--- layout: fc_discuss_archives title: Message 30 from Frama-C-discuss on November 2012 ---
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Frama-c-discuss] PDG semantic



Hi,

I have investigated the PDG plugin with the example below. I Know little
about PDGs.

I would like to Know the semantic of the PDG nodes and edges (e.g. what
does it mean blue edges, dark edges, and dotted edges?
And about the color of the nodes? What are circle nodes, rectangle nodes,
... ). Is there some reference for reading?

Is it possible use the PDG to help the value analysis? Maybe with the
slevel?

I attached the graphs.

I would like to know if is possible to create a Control Flow Graph as
showed in the attached figure.  Exist another plugin for this or another
way to obtain the same information?

Best regards,
Rovedy

//-------------------------------------------------------------------------------------------------


void main()
{
int a=0,b=0,c=0;

 a=4;

if ( a > 5 )
{
   b = 3;
   c = a + 5;
   return ;
}
else
{
   b = 4;
   a = foo(a);
   c = a+5;
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20121130/317fdb76/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graphPDG.png
Type: image/png
Size: 60260 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20121130/317fdb76/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: controlflow.png
Type: image/png
Size: 5370 bytes
Desc: not available
URL: <http://lists.gforge.inria.fr/pipermail/frama-c-discuss/attachments/20121130/317fdb76/attachment-0003.png>