[Avrora] cfg/dot
diz rael
dizraelus at yahoo.com
Fri Jul 15 19:55:03 PDT 2005
Having some difficulty with getting a cfg drawn. The
example given on the website crashes the dotty
renderer.
http://compilers.cs.ucla.edu/avrora/cfg.html
has a sample asm file, and the dot file generated is
shown below. Dotty/dot doesn't like the last but one
entry - the self-loop. The offender seems to be the
headport/tailport statement in the self-loop..
removing the port statements it makes it work alright.
Using dot version 2.2.1 (latest stable release)
digraph G {
"0x0000 - \n0x0004" [shape=box];
"0x0004 - \n0x0006" [shape=box];
"0x0082 - \n0x0086" [shape=ellipse];
"0x0086 - \n0x008E" [shape=ellipse];
"0x008E - \n0x009C" [shape=ellipse];
"0x009C - \n0x00A0" [shape=ellipse];
"0x00A0 - \n0x00A4" [shape=ellipse];
"0x00A4 - \n0x00A8" [shape=ellipse];
"0x00A8 - \n0x00AC" [shape=ellipse];
subgraph cluster0 {
"0x00B4 - \n0x00B6"
[shape=hexagon,style=filled,fillcolor=aquamarine];
"0x00AC - \n0x00B4"
[shape=doubleoctagon,style=filled,fillcolor=aquamarine];
}
"0x0086 - \n0x008E" -> "0x008E - \n0x009C"
[headport=s,tailport=n];
"0x00A8 - \n0x00AC" -> "0x0082 - \n0x0086"
[headport=s,tailport=n];
"0x009C - \n0x00A0" -> "0x008E - \n0x009C"
[headport=s,tailport=n];
"0x00A0 - \n0x00A4" -> "0x00A4 - \n0x00A8"
[headport=s,tailport=n];
"0x00A0 - \n0x00A4" -> "0x00AC - \n0x00B4"
[headport=s,tailport=n,color=red];
"0x00A4 - \n0x00A8" -> "0x00A8 - \n0x00AC"
[headport=s,tailport=n];
"0x00A4 - \n0x00A8" -> "0x00AC - \n0x00B4"
[headport=s,tailport=n,color=red];
"0x0082 - \n0x0086" -> "0x0086 - \n0x008E"
[headport=s,tailport=n];
"0x0082 - \n0x0086" -> "0x00AC - \n0x00B4"
[headport=s,tailport=n,color=red];
"0x008E - \n0x009C" -> "0x009C - \n0x00A0"
[headport=s,tailport=n];
"0x008E - \n0x009C" -> "0x00A0 - \n0x00A4"
[headport=s,tailport=n];
"0x00AC - \n0x00B4" -> "0x00B4 - \n0x00B6"
[headport=s,tailport=n];
// Dot doesn't like ports on this node. Use next
statement:
// "0x00AC - \n0x00B4" -> "0x00AC - \n0x00B4"
[headport=s,tailport=n];
"0x00AC - \n0x00B4" -> "0x00AC - \n0x00B4";
"0x0000 - \n0x0004" -> "0x0082 - \n0x0086"
[headport=s,tailport=n];
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Avrora
mailing list