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

Method arg2setvarargs

gecode/flatzinc/flatzinc.cpp:2512–2525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2510 return x0;
2511 }
2512 SetVarArgs
2513 FlatZincSpace::arg2setvarargs(AST::Node* arg, int offset, int doffset,
2514 const IntSet& od) {
2515 AST::Array* a = arg->getArray();
2516 SetVarArgs ia(a->a.size()+offset);
2517 for (int i=offset; i--;) {
2518 IntSet d = i<doffset ? od : IntSet::empty;
2519 ia[i] = SetVar(*this, d, d);
2520 }
2521 for (int i=a->a.size(); i--;) {
2522 ia[i+offset] = arg2SetVar(a->a[i]);
2523 }
2524 return ia;
2525 }
2526#endif
2527#ifdef GECODE_HAS_FLOAT_VARS
2528 FloatValArgs

Callers 8

p_array_set_OPFunction · 0.80
p_array_set_elementFunction · 0.80
p_array_set_element_opFunction · 0.80
p_array_set_seqFunction · 0.80
p_array_set_seq_unionFunction · 0.80
p_int_set_channelFunction · 0.80
p_inverse_setFunction · 0.80
p_precede_setFunction · 0.80

Calls 3

getArrayMethod · 0.80
SetVarClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected