digraph g { enter []; mxin [label = "x = x_in", ]; try []; x_in [label = "x_in = x", ]; f [label = "f()", ]; nr [label = "normal return"]; x_out_nr [label = "x = x_out"]; er [label = "error return"]; catch [label = "catch (Exception e)"]; x_out_catch [label = "x = x_out"]; log [label = "log(\"error\")"]; x_0 [label = "x = 0", fillcolor = lightgreen, style = filled]; x_in2 [label = "x_in = x", fillcolor = lightgreen, style = filled]; f2 [label = "f()", fillcolor = lightgreen, style = filled]; nr2 [label = "normal return", fillcolor = lightgreen, style = filled]; er2 [label = "error return", fillcolor = lightgreen, style = filled]; ee [label = "error exit", fillcolor = lightgreen, style = filled]; x_out_nr2 [label = "x = x_out", fillcolor = lightgreen, style = filled]; x_out_ee [label = "x = x_out", fillcolor = lightgreen, style = filled]; enter -> {mxin try}; try -> f -> {x_in nr er} nr -> x_out_nr er -> catch -> {x_out_catch log} enter -> {x_0 f2} f2 -> {x_in2 nr2 er2} nr2 -> x_out_nr2 er2 -> ee -> x_out_ee; {edge [color = red, constraint = false]; mxin -> x_in; x_0 -> x_in2; } {edge [color = blue, constraint = false]; x_in -> {x_out_nr x_out_catch} x_in2 -> {x_out_nr2 x_out_ee} } }