MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / inst_count

Function inst_count

cranelift/src/bugpoint.rs:782–787  ·  view source on GitHub ↗
(func: &Function)

Source from the content-addressed store, hash-verified

780}
781
782fn inst_count(func: &Function) -> usize {
783 func.layout
784 .blocks()
785 .map(|block| func.layout.block_insts(block).count())
786 .sum()
787}
788
789/// Resolve aliases only if function still crashes after this.
790fn try_resolve_aliases(context: &mut CrashCheckContext, func: &mut Function) {

Callers 1

runFunction · 0.85

Calls 4

sumMethod · 0.80
blocksMethod · 0.80
block_instsMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected