diff --git a/androscalpel/src/code_analysis/register_type.rs b/androscalpel/src/code_analysis/register_type.rs index e7a1898..a23d649 100644 --- a/androscalpel/src/code_analysis/register_type.rs +++ b/androscalpel/src/code_analysis/register_type.rs @@ -122,6 +122,21 @@ impl MethodCFG<'_> { } dot_string += "}\n"; + dot_string += "\n"; + for (i, node) in self.nodes.iter().enumerate() { + for ins in node.code_block { + if let Instruction::Label { name } = ins { + dot_string += &format!( + " cluster_{}:node_{}:s -> cluster_reg_types_{}:node_{}:n \ + [style=\"solid,bold\",color=grey,weight=10,constraint=true];\n", + self.method.descriptor.__str__(), + i, + self.method.descriptor.__str__(), + name + ); + } + } + } dot_string } }