tweak reg resolution repr
This commit is contained in:
parent
c05e8ba34f
commit
95c6b624ae
1 changed files with 4 additions and 7 deletions
|
|
@ -124,15 +124,12 @@ impl MethodCFG<'_> {
|
||||||
dot_string += "}\n";
|
dot_string += "}\n";
|
||||||
dot_string += "\n";
|
dot_string += "\n";
|
||||||
for (i, node) in self.nodes.iter().enumerate() {
|
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 {
|
if let Instruction::Label { name } = ins {
|
||||||
|
let mid = self.dot_sanitized_method_dscr();
|
||||||
dot_string += &format!(
|
dot_string += &format!(
|
||||||
" cluster_{}:node_{}:s -> cluster_reg_types_{}:node_{}:n \
|
" node_{i}:i{j}:e -> node_{name}:w \
|
||||||
[style=\"solid,bold\",color=grey,weight=10,constraint=true];\n",
|
[ltail=cluster_{mid},lhead=cluster_reg_types_{mid},style=\"solid,bold\",color=grey,weight=10,constraint=true];\n",
|
||||||
self.dot_sanitized_method_dscr(),
|
|
||||||
i,
|
|
||||||
self.dot_sanitized_method_dscr(),
|
|
||||||
name
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue