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

Method arg2SetVar

gecode/flatzinc/flatzinc.cpp:2501–2511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2499 }
2500#ifdef GECODE_HAS_SET_VARS
2501 SetVar
2502 FlatZincSpace::arg2SetVar(AST::Node* n) {
2503 SetVar x0;
2504 if (!n->isSetVar()) {
2505 IntSet d = arg2intset(n);
2506 x0 = SetVar(*this, d, d);
2507 } else {
2508 x0 = sv[n->getSetVar()];
2509 }
2510 return x0;
2511 }
2512 SetVarArgs
2513 FlatZincSpace::arg2setvarargs(AST::Node* arg, int offset, int doffset,
2514 const IntSet& od) {

Callers 15

p_set_OPFunction · 0.80
p_set_symdiffFunction · 0.80
p_array_set_OPFunction · 0.80
p_set_relFunction · 0.80
p_set_cardFunction · 0.80
p_set_inFunction · 0.80
p_set_rel_reifFunction · 0.80
p_set_in_reifFunction · 0.80
p_set_disjointFunction · 0.80
p_link_set_to_booleansFunction · 0.80
p_array_set_elementFunction · 0.80
p_array_set_element_opFunction · 0.80

Calls 3

isSetVarMethod · 0.80
getSetVarMethod · 0.80
SetVarClass · 0.50

Tested by

no test coverage detected