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

Method eq

gecode/int/view/neg-bool.hpp:144–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 return n==0 ? x.zero(home) : (n==1 ? x.one(home) : ME_BOOL_NONE);
143 }
144 forceinline ModEvent
145 NegBoolView::eq(Space& home, int n) {
146 return n==0 ? x.one(home) : (n==1 ? x.zero(home) : ME_BOOL_FAILED);
147 }
148 forceinline ModEvent
149 NegBoolView::eq(Space& home, long long int n) {
150 return n==0 ? x.one(home) : (n==1 ? x.zero(home) : ME_BOOL_FAILED);

Callers

nothing calls this directly

Calls 2

oneMethod · 0.45
zeroMethod · 0.45

Tested by

no test coverage detected