MCPcopy Create free account
hub / github.com/csmith-project/csmith / visit_facts

Method visit_facts

src/StatementReturn.cpp:81–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool
82StatementReturn::visit_facts(vector<const Fact*>& inputs, CGContext& cg_context) const
83{
84 if (CGOptions::no_return_dead_ptr()) {
85 const Variable* v = var.get_var();
86 int indirection = var.get_indirect_level();
87 const Block* b = cg_context.curr_blk;
88 assert(b);
89 if (FactPointTo::is_pointing_to_locals(v, b, indirection, inputs)) {
90 return false;
91 }
92 }
93
94 if (!var.visit_facts(inputs, cg_context)) {
95 return false;
96 }
97 FactMgr::update_fact_for_return(this, inputs);
98 FactMgr* fm = get_fact_mgr(&cg_context);
99 fm->map_stm_effect[this] = cg_context.get_effect_stm();
100 return true;
101}
102
103/*
104 *

Callers

nothing calls this directly

Calls 3

get_fact_mgrFunction · 0.85
get_varMethod · 0.45
get_indirect_levelMethod · 0.45

Tested by

no test coverage detected