MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / fmt

Method fmt

src/analysis/cfg.rs:180–188  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

178/// Default deubg display all node information which is unreadable. We should only verbose the useful stmt information.
179impl 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
191impl CFGBlock {

Callers

nothing calls this directly

Calls 2

dumpMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected