MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / compute_load_usage

Method compute_load_usage

hail-fuzz/src/load_resizer.rs:77–92  ·  view source on GitHub ↗
(
        &mut self,
        cpu: &mut Cpu,
        code: &BlockTable,
        block: usize,
    )

Source from the content-addressed store, hash-verified

75 }
76
77 fn compute_load_usage(
78 &mut self,
79 cpu: &mut Cpu,
80 code: &BlockTable,
81 block: usize,
82 ) -> Result<(), Error> {
83 self.state.reset();
84 if let Some(lifter) = self.lifter.as_mut() {
85 lifter.code.flush_code();
86 }
87
88 let current_block = &code.blocks[block];
89 self.state.block = current_block.pcode.first_addr().unwrap_or(0);
90 self.state.find_loads_and_uses(current_block, true);
91 self.calculate_used_bits(cpu, code, current_block)
92 }
93
94 pub fn get_loads(
95 &mut self,

Callers 2

get_loadsMethod · 0.80
resize_loadsMethod · 0.80

Calls 3

find_loads_and_usesMethod · 0.80
calculate_used_bitsMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected