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

Method arg2boolargs

gecode/flatzinc/flatzinc.cpp:2357–2366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2355 return sia;
2356 }
2357 IntArgs
2358 FlatZincSpace::arg2boolargs(AST::Node* arg, int offset) {
2359 AST::Array* a = arg->getArray();
2360 IntArgs ia(a->a.size()+offset);
2361 for (int i=offset; i--;)
2362 ia[i] = 0;
2363 for (int i=a->a.size(); i--;)
2364 ia[i+offset] = a->a[i]->getBool();
2365 return ia;
2366 }
2367 IntSharedArray
2368 FlatZincSpace::arg2boolsharedarray(AST::Node* arg, int offset) {
2369 IntArgs ia(arg2boolargs(arg,offset));

Callers 3

p_table_boolFunction · 0.80
p_table_bool_reifFunction · 0.80
p_table_bool_impFunction · 0.80

Calls 3

getArrayMethod · 0.80
getBoolMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected