(&self, f: &mut std::fmt::Formatter<'_>)
| 178 | /// Default deubg display all node information which is unreadable. We should only verbose the useful stmt information. |
| 179 | impl std::fmt::Debug for CFGBlock { |
| 180 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 181 | let mut stmt_kinds: Vec<String> = Vec::new(); |
| 182 | for stmt in &self.stmts { |
| 183 | let dump_str = stmt.dump(); |
| 184 | stmt_kinds.push(dump_str); |
| 185 | } |
| 186 | let stmts = stmt_kinds.join("\n"); |
| 187 | write!(f, "{}\n {}", self.ident, stmts) |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | impl CFGBlock { |