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

Function order

gecode/int/order.cpp:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace Gecode {
39
40 void
41 order(Home home, IntVar s0, int p0, IntVar s1, int p1, BoolVar b,
42 IntPropLevel) {
43 using namespace Gecode::Int;
44 Int::Limits::nonnegative(p0,"Int::order");
45 Int::Limits::nonnegative(p1,"Int::order");
46 Int::Limits::check(static_cast<long long int>(s0.max()) + p0,
47 "Int::order");
48 Int::Limits::check(static_cast<long long int>(s1.max()) + p1,
49 "Int::order");
50 GECODE_POST;
51 GECODE_ES_FAIL(Order::OrderProp::post(home,s0,p0,s1,p1,b));
52 }
53
54}
55

Callers 2

postMethod · 0.85
JobShopSolveMethod · 0.85

Calls 3

checkFunction · 0.50
postFunction · 0.50
maxMethod · 0.45

Tested by

no test coverage detected