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

Method rel

test/int.cpp:228–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 }
227
228 void
229 TestSpace::rel(int i, Gecode::IntRelType irt, int n) {
230 if (opt.log) {
231 olog << ind(4) << "x[" << i << "] ";
232 switch (irt) {
233 case Gecode::IRT_EQ: olog << "="; break;
234 case Gecode::IRT_NQ: olog << "!="; break;
235 case Gecode::IRT_LQ: olog << "<="; break;
236 case Gecode::IRT_LE: olog << "<"; break;
237 case Gecode::IRT_GQ: olog << ">="; break;
238 case Gecode::IRT_GR: olog << ">"; break;
239 }
240 olog << " " << n << std::endl;
241 }
242 Gecode::rel(*this, x[i], irt, n);
243 }
244
245 void
246 TestSpace::rel(bool sol) {

Callers 2

disabledMethod · 0.45
runMethod · 0.45

Calls 3

indClass · 0.85
relFunction · 0.50
varMethod · 0.45

Tested by

no test coverage detected