123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- /* generated with gcc-11.1
- gcc -fdump-tree-cfg-graph
- */
- digraph "a-test.c.015t.cfg" {
- overlap=false;
- subgraph "cluster_f1" {
- style="dashed";
- color="black";
- label="f1 ()";
- fn_6_basic_block_0 [shape=Mdiamond,style=filled,fillcolor=white,label="ENTRY"];
- fn_6_basic_block_1 [shape=Mdiamond,style=filled,fillcolor=white,label="EXIT"];
- fn_6_basic_block_2 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 2\>:\l\
- |D.2878\ =\ a;\l\
- }"];
- fn_6_basic_block_3 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 3\>:\l\
- |\<L0\>:\l\
- |return\ D.2878;\l\
- }"];
- fn_6_basic_block_0:s -> fn_6_basic_block_2:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_6_basic_block_2:s -> fn_6_basic_block_3:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_6_basic_block_3:s -> fn_6_basic_block_1:n [style="solid,bold",color=black,weight=10,constraint=true];
- fn_6_basic_block_0:s -> fn_6_basic_block_1:n [style="invis",constraint=true];
- }
- subgraph "cluster_f2" {
- style="dashed";
- color="black";
- label="f2 ()";
- fn_7_basic_block_0 [shape=Mdiamond,style=filled,fillcolor=white,label="ENTRY"];
- fn_7_basic_block_1 [shape=Mdiamond,style=filled,fillcolor=white,label="EXIT"];
- fn_7_basic_block_2 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 2\>:\l\
- |D.2880\ =\ a\ +\ b;\l\
- }"];
- fn_7_basic_block_3 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 3\>:\l\
- |\<L0\>:\l\
- |return\ D.2880;\l\
- }"];
- fn_7_basic_block_0:s -> fn_7_basic_block_2:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_7_basic_block_2:s -> fn_7_basic_block_3:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_7_basic_block_3:s -> fn_7_basic_block_1:n [style="solid,bold",color=black,weight=10,constraint=true];
- fn_7_basic_block_0:s -> fn_7_basic_block_1:n [style="invis",constraint=true];
- }
- subgraph "cluster_f3" {
- style="dashed";
- color="black";
- label="f3 ()";
- fn_8_basic_block_0 [shape=Mdiamond,style=filled,fillcolor=white,label="ENTRY"];
- fn_8_basic_block_1 [shape=Mdiamond,style=filled,fillcolor=white,label="EXIT"];
- fn_8_basic_block_2 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 2\>:\l\
- |y\ =\ a\ +\ b;\l\
- |_1\ =\ y\ +\ c;\l\
- |_2\ =\ f1\ (7);\l\
- |D.2882\ =\ _1\ +\ _2;\l\
- }"];
- fn_8_basic_block_3 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 3\>:\l\
- |\<L0\>:\l\
- |return\ D.2882;\l\
- }"];
- fn_8_basic_block_0:s -> fn_8_basic_block_2:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_8_basic_block_2:s -> fn_8_basic_block_3:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_8_basic_block_3:s -> fn_8_basic_block_1:n [style="solid,bold",color=black,weight=10,constraint=true];
- fn_8_basic_block_0:s -> fn_8_basic_block_1:n [style="invis",constraint=true];
- }
- subgraph "cluster_f4" {
- style="dashed";
- color="black";
- label="f4 ()";
- fn_9_basic_block_0 [shape=Mdiamond,style=filled,fillcolor=white,label="ENTRY"];
- fn_9_basic_block_1 [shape=Mdiamond,style=filled,fillcolor=white,label="EXIT"];
- fn_9_basic_block_2 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 2\>:\l\
- |_1\ =\ f2\ (2,\ 3);\l\
- |_2\ =\ f1\ (1);\l\
- |D.2884\ =\ f3\ (_2,\ _1,\ 4);\l\
- }"];
- fn_9_basic_block_3 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 3\>:\l\
- |\<L0\>:\l\
- |return\ D.2884;\l\
- }"];
- fn_9_basic_block_0:s -> fn_9_basic_block_2:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_9_basic_block_2:s -> fn_9_basic_block_3:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_9_basic_block_3:s -> fn_9_basic_block_1:n [style="solid,bold",color=black,weight=10,constraint=true];
- fn_9_basic_block_0:s -> fn_9_basic_block_1:n [style="invis",constraint=true];
- }
- subgraph "cluster_main" {
- style="dashed";
- color="black";
- label="main ()";
- fn_10_basic_block_0 [shape=Mdiamond,style=filled,fillcolor=white,label="ENTRY"];
- fn_10_basic_block_1 [shape=Mdiamond,style=filled,fillcolor=white,label="EXIT"];
- fn_10_basic_block_2 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 2\>:\l\
- |p\ =\ malloc\ (1);\l\
- |p\ =\ p\ +\ 1;\l\
- |p\ =\ p\ +\ 1;\l\
- |*p\ =\ 1;\l\
- |v\ =\ f4\ ();\l\
- |if\ (v\ !=\ 0)\l\
- \ \ goto\ \<bb\ 3\>;\ [INV]\l\
- else\l\
- \ \ goto\ \<bb\ 4\>;\ [INV]\l\
- }"];
- fn_10_basic_block_3 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 3\>:\l\
- |D.2888\ =\ v;\l\
- |//\ predicted\ unlikely\ by\ early\ return\ (on\ trees)\ predictor.\l\
- goto\ \<bb\ 5\>;\ [INV]\l\
- }"];
- fn_10_basic_block_4 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 4\>:\l\
- |D.2888\ =\ 0;\l\
- }"];
- fn_10_basic_block_5 [shape=record,style=filled,fillcolor=lightgrey,label="{\<bb\ 5\>:\l\
- |\<L2\>:\l\
- |return\ D.2888;\l\
- }"];
- fn_10_basic_block_0:s -> fn_10_basic_block_2:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_10_basic_block_2:s -> fn_10_basic_block_3:n [style="solid,bold",color=black,weight=10,constraint=true];
- fn_10_basic_block_2:s -> fn_10_basic_block_4:n [style="solid,bold",color=black,weight=10,constraint=true];
- fn_10_basic_block_3:s -> fn_10_basic_block_5:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_10_basic_block_4:s -> fn_10_basic_block_5:n [style="solid,bold",color=blue,weight=100,constraint=true];
- fn_10_basic_block_5:s -> fn_10_basic_block_1:n [style="solid,bold",color=black,weight=10,constraint=true];
- fn_10_basic_block_0:s -> fn_10_basic_block_1:n [style="invis",constraint=true];
- }
- }
|