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

Method remove_loop_local_facts

src/FactMgr.cpp:635–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635void
636FactMgr::remove_loop_local_facts(const Statement* s, FactVec& facts)
637{
638 // filter out out-of-scope facts
639 const Block* b = (s->eType==eBlock) ? (const Block*)s : s->parent;
640 vector<Variable*> local_vars = b->local_vars;
641 while (b && !b->looping) {
642 b = b->parent;
643 local_vars.insert(local_vars.end(), b->local_vars.begin(), b->local_vars.end());
644 }
645 FactMgr::update_facts_for_oos_vars(local_vars, facts);
646}
647
648void
649FactMgr::output_assertions(std::ostream &out, const Statement* stm, int indent, bool post_condition)

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected