MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / block_frequency

Method block_frequency

src/debug_utils/generic_function/arbitrary.rs:218–220  ·  view source on GitHub ↗

Generates a reasonable block frequency.

(&mut self)

Source from the content-addressed store, hash-verified

216
217 /// Generates a reasonable block frequency.
218 fn block_frequency(&mut self) -> Result<f32> {
219 Ok(2.0f32.powi(self.u.int_in_range(-10..=10)?))
220 }
221
222 /// Generates a function skeleton with a randomly generated CFG.
223 ///

Callers 1

gen_cfg_skeletonMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected