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

Method arg2IntVar

gecode/flatzinc/flatzinc.cpp:2469–2478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2467 return x0;
2468 }
2469 IntVar
2470 FlatZincSpace::arg2IntVar(AST::Node* n) {
2471 IntVar x0;
2472 if (n->isIntVar()) {
2473 x0 = iv[n->getIntVar()];
2474 } else {
2475 x0 = IntVar(*this, n->getInt(), n->getInt());
2476 }
2477 return x0;
2478 }
2479 bool
2480 FlatZincSpace::isBoolArray(AST::Node* b, int& singleInt) {
2481 AST::Array* a = b->getArray();

Callers 15

p_int_CMPFunction · 0.80
p_int_CMP_reifFunction · 0.80
p_int_lin_CMPFunction · 0.80
p_int_lin_CMP_reifFunction · 0.80
p_int_plusFunction · 0.80
p_int_minusFunction · 0.80
p_int_timesFunction · 0.80
p_int_powFunction · 0.80
p_int_divFunction · 0.80
p_int_modFunction · 0.80
p_int_minFunction · 0.80
p_int_maxFunction · 0.80

Calls 4

isIntVarMethod · 0.80
getIntVarMethod · 0.80
getIntMethod · 0.80
IntVarClass · 0.50

Tested by

no test coverage detected