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

Method status

gecode/flatzinc/branch.cpp:47–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47 bool
48 IntBoolBrancherBase::status(const Space&) const {
49 if (start < x.size()) {
50 for (int i=start; i < x.size(); i++)
51 if (!x[i].assigned()) {
52 start = i;
53 return true;
54 }
55 start = x.size();
56 }
57 for (int i=start-x.size(); i < y.size(); i++)
58 if (!y[i].assigned()) {
59 start = x.size() + i;
60 return true;
61 }
62 return false;
63 }
64
65 ExecStatus
66 IntBoolBrancherBase::commit(Space& home, const Choice& _c,

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
assignedMethod · 0.45

Tested by

no test coverage detected