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

Method filter

src/VectorFilter.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69bool
70VectorFilter::filter(int v) const
71{
72 if (!this->valid_filter())
73 return false;
74
75 v = lookup(v);
76 bool re = std::find(vs_.begin(), vs_.end(), static_cast<unsigned int>(v)) != vs_.end();
77 return (flag_ == FILTER_OUT) ? re : !re;
78}
79
80VectorFilter&
81VectorFilter::add(unsigned int item)

Callers

nothing calls this directly

Calls 3

valid_filterMethod · 0.80
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected