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

Method restore_local

hail-fuzz/src/coverage.rs:214–217  ·  view source on GitHub ↗
(&mut self, vm: &mut Vm, snapshot: &Box<dyn Any>)

Source from the content-addressed store, hash-verified

212 }
213
214 fn restore_local(&mut self, vm: &mut Vm, snapshot: &Box<dyn Any>) {
215 let snapshot = snapshot.as_ref().downcast_ref::<EdgeCountSnapshot>().unwrap();
216 vm.cpu.trace[self.storage].data_mut().copy_from_slice(snapshot);
217 }
218}
219
220#[derive(Debug, Copy, Clone)]

Callers 3

restoreMethod · 0.80
restore_initialMethod · 0.80
restore_prefixMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected