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

Method filter

src/VariableSelector.cpp:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105bool
106VariableSelectFilter::filter(int v) const
107{
108 eVariableScope scope = VariableSelector::scopeTable_->get_value(v);
109 if (scope == eParentParam) {
110 Function &parent = *cg_context_.get_current_func();
111 return parent.param.empty();
112 }
113 return false;
114}
115
116ProbabilityTable<unsigned int, eVariableScope> *VariableSelector::scopeTable_ = NULL;
117

Callers

nothing calls this directly

Calls 2

get_current_funcMethod · 0.80
get_valueMethod · 0.45

Tested by

no test coverage detected