Files
Construction-of-Compilers/Project-02-03-04/mistraltests/after/validProgram_cfg_after.dot
2026-01-22 20:26:41 +01:00

92 lines
2.7 KiB
Plaintext

digraph CFG {
node [fontname="Helvetica"];
n943 [label="START", shape=box];
n943 -> n983;
n983 [label="2", shape=box];
n983 -> n984;
n984 [label="3", shape=box];
n984 -> n985;
n985 [label="CALL mult", shape=box, style=filled, color=orange];
n985 -> n945;
n945 [label="START mult(a, b)", shape=box, style=filled, color=green];
n945 -> n950;
n950 [label="a", shape=box];
n950 -> n951;
n951 [label="b", shape=box];
n951 -> n952;
n952 [label="a * b", shape=box];
n952 -> n946;
n946 [label="END mult(a, b)", shape=box, style=filled, color=green];
n946 -> n977;
n977 [label="RET mult", shape=box, style=filled, color=orange];
n977 -> n954;
n954 [label="END inc(a)", shape=box, style=filled, color=green];
n954 -> n972;
n972 [label="RET inc", shape=box, style=filled, color=orange];
n972 -> n954;
n954 -> n981;
n981 [label="RET inc", shape=box, style=filled, color=orange];
n981 -> n948;
n948 [label="END add(a, b)", shape=box, style=filled, color=green];
n948 -> n992;
n992 [label="RET add", shape=box, style=filled, color=orange];
n992 -> n993;
n993 [label="CALL add", shape=box, style=filled, color=orange];
n993 -> n947;
n947 [label="START add(a, b)", shape=box, style=filled, color=green];
n947 -> n978;
n978 [label="a", shape=box];
n978 -> n979;
n979 [label="CALL inc", shape=box, style=filled, color=orange];
n979 -> n953;
n953 [label="START inc(a)", shape=box, style=filled, color=green];
n953 -> n956;
n956 [label="b", shape=box];
n956 -> n957;
n957 [label="0", shape=box];
n957 -> n958;
n958 [label="b != 0", shape=box];
n958 -> n959;
n959 [label="<?>", shape=diamond];
n959 -> n963 [label="T"];
n963 [label="b", shape=box];
n963 -> n964;
n964 [label="1", shape=box];
n964 -> n965;
n965 [label="b - 1", shape=box];
n965 -> n966;
n966 [label="b = (b - 1)", shape=box];
n966 -> n967;
n967 [label="a", shape=box];
n967 -> n968;
n968 [label="1", shape=box];
n968 -> n969;
n969 [label="a + 1", shape=box];
n969 -> n970;
n970 [label="CALL inc", shape=box, style=filled, color=orange];
n970 -> n953;
n970 -> n972;
n959 -> n973 [label="F"];
n973 [label="a", shape=box];
n973 -> n974;
n974 [label="1", shape=box];
n974 -> n975;
n975 [label="CALL mult", shape=box, style=filled, color=orange];
n975 -> n945;
n975 -> n977;
n979 -> n981;
n993 -> n995;
n995 [label="RET add", shape=box, style=filled, color=orange];
n948 -> n995;
n946 -> n987;
n987 [label="RET mult", shape=box, style=filled, color=orange];
n987 -> n988;
n988 [label="4", shape=box];
n988 -> n989;
n989 [label="5", shape=box];
n989 -> n990;
n990 [label="CALL add", shape=box, style=filled, color=orange];
n990 -> n947;
n990 -> n992;
n985 -> n987;
}