MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / get_bind

Method get_bind

src/analysis/dfa.rs:603–609  ·  view source on GitHub ↗

get the bind vaule of this var

(&self, var: &VarName)

Source from the content-addressed store, hash-verified

601
602 /// get the bind vaule of this var
603 pub fn get_bind(&self, var: &VarName) -> Result<Symbol<T>> {
604 let bind = self
605 .get_current_storage()
606 .get(var)
607 .ok_or_else(|| eyre::eyre!("get bind of var {var:?} failed"));
608 bind.cloned()
609 }
610
611 pub fn get_bind_mut(&mut self, var: &VarName) -> Result<&mut Symbol<T>> {
612 self.get_current_storage_mut()

Callers 2

get_rvalueMethod · 0.80
ssa_bind_valueMethod · 0.80

Calls 1

get_current_storageMethod · 0.80

Tested by

no test coverage detected