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

Method arg2boolsharedarray

gecode/flatzinc/flatzinc.cpp:2367–2380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2365 return ia;
2366 }
2367 IntSharedArray
2368 FlatZincSpace::arg2boolsharedarray(AST::Node* arg, int offset) {
2369 IntArgs ia(arg2boolargs(arg,offset));
2370 SharedArray<int> sia(ia);
2371 if (_initData) {
2372 FlatZincSpaceInitData::IntSharedArraySet::iterator it = _initData->intSharedArraySet.find(sia);
2373 if (it != _initData->intSharedArraySet.end()) {
2374 return *it;
2375 }
2376 _initData->intSharedArraySet.insert(sia);
2377 }
2378
2379 return sia;
2380 }
2381 IntSet
2382 FlatZincSpace::arg2intset(AST::Node* n) {
2383 AST::SetLit* sl = n->getSet();

Callers 3

p_array_bool_elementFunction · 0.80
p_array_bool_element2dFunction · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected