Files
2026-01-23 13:01:50 +01:00

94 lines
2.8 KiB
Plaintext

digraph CFG {
node [fontname="Helvetica"];
n944 [label="START", shape=ellipse, style=filled, color=gray];
n944 -> n984;
n984 [label="2", shape=box];
n984 -> n985;
n985 [label="3", shape=box];
n985 -> n986;
n986 [label="CALL mult", shape=box, style=filled, color=orange];
n986 -> n946;
n986 -> n988;
n946 [label="START mult(a, b)", shape=ellipse, style=filled, color=green];
n946 -> n951;
n951 [label="a", shape=box];
n951 -> n952;
n952 [label="b", shape=box];
n952 -> n953;
n953 [label="a * b", shape=box];
n953 -> n947;
n947 [label="END mult(a, b)", shape=ellipse, style=filled, color=green];
n947 -> n978;
n947 -> n988;
n978 [label="RET mult", shape=box, style=filled, color=orange];
n978 -> n955;
n955 [label="END inc(a)", shape=ellipse, style=filled, color=green];
n955 -> n973;
n955 -> n982;
n973 [label="RET inc", shape=box, style=filled, color=orange];
n973 -> n955;
n982 [label="RET inc", shape=box, style=filled, color=orange];
n982 -> n949;
n949 [label="END add(a, b)", shape=ellipse, style=filled, color=green];
n949 -> n993;
n949 -> n996;
n993 [label="RET add", shape=box, style=filled, color=orange];
n993 -> n994;
n994 [label="CALL add", shape=box, style=filled, color=orange];
n994 -> n948;
n994 -> n996;
n948 [label="START add(a, b)", shape=ellipse, style=filled, color=green];
n948 -> n979;
n979 [label="a", shape=box];
n979 -> n980;
n980 [label="CALL inc", shape=box, style=filled, color=orange];
n980 -> n954;
n980 -> n982;
n954 [label="START inc(a)", shape=ellipse, style=filled, color=green];
n954 -> n957;
n957 [label="b", shape=box];
n957 -> n958;
n958 [label="0", shape=box];
n958 -> n959;
n959 [label="b != 0", shape=box];
n959 -> n960;
n960 [label="<?>", shape=diamond];
n960 -> n964 [label="T"];
n960 -> n974 [label="F"];
n964 [label="b", shape=box];
n964 -> n965;
n965 [label="1", shape=box];
n965 -> n966;
n966 [label="b - 1", shape=box];
n966 -> n967;
n967 [label="b = (b - 1)", shape=box];
n967 -> n968;
n968 [label="a", shape=box];
n968 -> n969;
n969 [label="1", shape=box];
n969 -> n970;
n970 [label="a + 1", shape=box];
n970 -> n971;
n971 [label="CALL inc", shape=box, style=filled, color=orange];
n971 -> n954;
n971 -> n973;
n974 [label="a", shape=box];
n974 -> n975;
n975 [label="1", shape=box];
n975 -> n976;
n976 [label="CALL mult", shape=box, style=filled, color=orange];
n976 -> n946;
n976 -> n978;
n996 [label="RET add", shape=box, style=filled, color=orange];
n996 -> n945;
n945 [label="END", shape=ellipse, style=filled, color=gray];
n988 [label="RET mult", shape=box, style=filled, color=orange];
n988 -> n989;
n989 [label="4", shape=box];
n989 -> n990;
n990 [label="5", shape=box];
n990 -> n991;
n991 [label="CALL add", shape=box, style=filled, color=orange];
n991 -> n948;
n991 -> n993;
}