add tag to ins in cfg

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-02-21 14:46:33 +01:00
parent 812640bd4a
commit 00c6c06945
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -247,8 +247,8 @@ impl<'a> MethodCFG<'a> {
format!("{{\\< {block_name} \\>}}")
} else {
let mut label = format!("{{\\< {block_name} \\>:\\l\\\n");
for ins in node.code_block {
label += "|";
for (i, ins) in node.code_block.iter().enumerate() {
label += &format!("|<i{i}>");
label += ins
.__str__()
.replace(" ", "\\ ")