tweak reg resolution repr

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-02-21 20:11:08 +01:00
parent c05e8ba34f
commit 95c6b624ae
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -124,15 +124,12 @@ impl MethodCFG<'_> {
dot_string += "}\n";
dot_string += "\n";
for (i, node) in self.nodes.iter().enumerate() {
for ins in node.code_block {
for (j, ins) in node.code_block.iter().enumerate() {
if let Instruction::Label { name } = ins {
let mid = self.dot_sanitized_method_dscr();
dot_string += &format!(
" cluster_{}:node_{}:s -> cluster_reg_types_{}:node_{}:n \
[style=\"solid,bold\",color=grey,weight=10,constraint=true];\n",
self.dot_sanitized_method_dscr(),
i,
self.dot_sanitized_method_dscr(),
name
" node_{i}:i{j}:e -> node_{name}:w \
[ltail=cluster_{mid},lhead=cluster_reg_types_{mid},style=\"solid,bold\",color=grey,weight=10,constraint=true];\n",
);
}
}