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

Method revisit_node

src/DFSRndNumGenerator.cpp:243–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243int
244DFSRndNumGenerator::revisit_node(DFSRndNumGenerator::SearchState *state, int local_current_pos,
245 int bound, const Filter *filter, const string *)
246{
247 int rv = state->value();
248 if (filter) {
249 if (rv >= bound) {
250 state->dump("");
251 dumpCurrentState(bound, "");
252 cout << "rv = " << rv << ", bound = " << bound << std::endl;
253 assert(0);
254 }
255
256 filter->filter(rv);
257
258 ERROR_GUARD(-1);
259
260 assert(current_pos_ < CGOptions::max_exhaustive_depth());
261
262 }
263 seq_->add_number(rv, bound, local_current_pos);
264 return rv;
265}
266
267bool
268DFSRndNumGenerator::filter_invalid_nums(vector<int> *invalid_nums, int v)

Callers

nothing calls this directly

Calls 4

valueMethod · 0.80
dumpMethod · 0.80
filterMethod · 0.45
add_numberMethod · 0.45

Tested by

no test coverage detected