42 namespace Gecode {
namespace Int {
namespace Arithmetic {
44 template<
class View,
template<
class View0,
class View1>
class Eq>
56 }
else if (x0.max() <= 0) {
59 }
else if (x1.val() == 0) {
63 int mp[2] = {-x1.val(),x1.val()};
92 }
else if (x0.max() <= 0) {
95 assert(!x0.assigned());
98 int mp[2] = {-x1.val(),x1.val()};
101 }
else if (!
same(x0,x1)) {
132 return prop_abs_bnd<View,Rel::EqBnd>(home, *
this, x0, x1);
145 }
else if (x0.max() <= 0) {
148 assert(!x0.assigned());
151 int mp[2] = {-x1.val(),x1.val()};
154 }
else if (!
same(x0,x1)) {
196 using namespace Iter::Ranges;
197 Positive<ViewRanges<View> >
p(
i);
198 Negative<ViewRanges<View> >
n(j);
211 using namespace Iter::Ranges;
#define GECODE_REWRITE(prop, post)
Rewrite propagator by executing post function.
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Binary domain consistent equality propagator.
ExecStatus ES_SUBSUMED(Propagator &p)
const FloatNum max
Largest allowed float value.
Propagator for ternary union
Value iterator for array of integers
ExecStatus ES_NOFIX_PARTIAL(Propagator &p, const ModEventDelta &med)
Propagator p has not computed partial fixpoint
static ExecStatus post(Home home, View0 x0, View1 x1)
Post domain consistent propagator .
ExecStatus prop_abs_bnd(Space &home, Propagator &p, View x0, View x1)
Base-class for propagators.
Propagation has computed fixpoint.
static PropCost unary(PropCost::Mod m)
Single variable for modifier pcm.
Base-class for both propagators and branchers.
Range iterator for integer views.
Bounds consistent absolute value propagator.
static ExecStatus post(Home home, View0 x0, View1 x1)
Post bounds consistent propagator .
#define GECODE_ES_CHECK(es)
Check whether execution status es is failed or subsumed, and forward failure or subsumption.
bool same(const CachedView< View > &x, const CachedView< View > &y)
static ExecStatus post(Home home, View x0, View x1)
Post domain consistent propagator .
int p
Number of positive literals for node type.
Gecode::IntArgs i(4, 1, 2, 3, 4)
int n
Number of negative literals for node type.
Domain consistent absolute value propagator.
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
const Gecode::ModEvent ME_INT_VAL
Domain operation has resulted in a value (assigned variable)
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
const Gecode::PropCond PC_INT_DOM
Propagate when domain changes.
#define GECODE_ME_CHECK(me)
Check whether modification event me is failed, and forward failure.
virtual Actor * copy(Space &home, bool share)
Copy propagator during cloning.
union Gecode::@518::NNF::@57 u
Union depending on nodetype t.
const Gecode::ModEvent ME_INT_DOM
Domain operation has changed the domain.
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Cost function.
Propagator for set equality
Propagation has not computed fixpoint.
Gecode toplevel namespace
virtual PropCost cost(const Space &home, const ModEventDelta &med) const
Cost function.
int ModEventDelta
Modification event deltas.
Home class for posting propagators
AbsDom(Space &home, bool share, AbsDom &p)
Constructor for cloning p.
static PropCost binary(PropCost::Mod m)
Two variables for modifier pcm.
AbsBnd(Space &home, bool share, AbsBnd &p)
Constructor for cloning p.
static ExecStatus post(Home home, View x0, View x1)
Post bounds consistent propagator .
virtual Actor * copy(Space &home, bool share)
Copy propagator during cloning.