MCPcopy Create free account
hub / github.com/Gecode/gecode / prune

Method prune

test/float.cpp:331–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329 }
330
331 void
332 TestSpace::prune(int i, Gecode::Support::RandomGenerator& rand) {
333 using namespace Gecode;
334 // Prune values
335 if (rand(2) && !x[i].assigned()) {
336 Gecode::FloatNum v= randFValUp(x[i].min(), x[i].max(), rand);
337 assert((v >= x[i].min()) && (v <= x[i].max()));
338 rel(i, Gecode::FRT_LQ, v);
339 }
340 if (rand(2) && !x[i].assigned()) {
341 Gecode::FloatNum v= randFValDown(x[i].min(), x[i].max(), rand);
342 assert((v <= x[i].max()) && (v >= x[i].min()));
343 rel(i, Gecode::FRT_GQ, v);
344 }
345 }
346
347 void
348 TestSpace::prune(Gecode::Support::RandomGenerator& rand) {

Callers 1

runMethod · 0.45

Calls 11

randFValUpFunction · 0.85
randFValDownFunction · 0.85
indClass · 0.85
relFunction · 0.50
assignedMethod · 0.45
minMethod · 0.45
maxMethod · 0.45
sizeMethod · 0.45
postMethod · 0.45
failedMethod · 0.45
varMethod · 0.45

Tested by

no test coverage detected