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

Method create_uninit_object

src/analysis/dfa.rs:681–689  ·  view source on GitHub ↗
(&mut self, ty: ast::Type)

Source from the content-addressed store, hash-verified

679
680impl<T: SymbolData> EnvMgr<T> {
681 fn create_uninit_object(&mut self, ty: ast::Type) -> Symbol<T> {
682 let ctx = self.get_current_ctx();
683 Symbol {
684 r#type: Some(ty),
685 state: ObjectState::Uninit,
686 id: ctx,
687 data: T::default(),
688 }
689 }
690
691 pub fn create_dummy_object(&mut self) -> Symbol<T> {
692 let ctx = self.get_current_ctx();

Callers 1

visit_var_declMethod · 0.80

Calls 1

get_current_ctxMethod · 0.80

Tested by

no test coverage detected