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

Method verify_value

cranelift/codegen/src/verifier/mod.rs:986–1002  ·  view source on GitHub ↗
(
        &self,
        loc_inst: Inst,
        v: Value,
        errors: &mut VerifierErrors,
    )

Source from the content-addressed store, hash-verified

984 }
985
986 fn verify_value(
987 &self,
988 loc_inst: Inst,
989 v: Value,
990 errors: &mut VerifierErrors,
991 ) -> VerifierStepResult {
992 let dfg = &self.func.dfg;
993 if !dfg.value_is_valid(v) {
994 errors.nonfatal((
995 loc_inst,
996 self.context(loc_inst),
997 format!("invalid value reference {v}"),
998 ))
999 } else {
1000 Ok(())
1001 }
1002 }
1003
1004 fn verify_inst_arg(
1005 &self,

Callers 3

verify_inst_argMethod · 0.80
verify_inst_resultMethod · 0.80

Calls 4

OkFunction · 0.85
value_is_validMethod · 0.80
nonfatalMethod · 0.80
contextMethod · 0.45

Tested by

no test coverage detected