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

Method gq

gecode/int/var-imp/int.hpp:343–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 */
342
343 forceinline ModEvent
344 IntVarImp::gq(Space& home, int n) {
345 if (n <= dom.min()) return ME_INT_NONE;
346 if (n > dom.max()) return fail(home);
347 ModEvent me = gq_full(home,n);
348 GECODE_ASSUME((me == ME_INT_FAILED) |
349 (me == ME_INT_VAL) |
350 (me == ME_INT_BND));
351 return me;
352 }
353 forceinline ModEvent
354 IntVarImp::gq(Space& home, long long int n) {
355 if (n <= dom.min()) return ME_INT_NONE;

Callers

nothing calls this directly

Calls 2

minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected