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

Method newBoolVar

gecode/flatzinc/flatzinc.cpp:917–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915 }
916
917 void
918 FlatZincSpace::newBoolVar(BoolVarSpec* vs) {
919 if (vs->alias) {
920 bv[boolVarCount++] = bv[vs->i];
921 } else {
922 bv[boolVarCount++] = BoolVar(*this, vs2bsl(vs), vs2bsh(vs));
923 }
924 bv_introduced[2*(boolVarCount-1)] = vs->introduced;
925 bv_introduced[2*(boolVarCount-1)+1] = vs->funcDep;
926 }
927
928#ifdef GECODE_HAS_SET_VARS
929 void

Callers 1

initfgFunction · 0.80

Calls 3

vs2bslFunction · 0.85
vs2bshFunction · 0.85
BoolVarClass · 0.50

Tested by

no test coverage detected