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

Method ann2ipl

gecode/flatzinc/flatzinc.cpp:2570–2585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2568 }
2569#endif
2570 IntPropLevel
2571 FlatZincSpace::ann2ipl(AST::Node* ann) {
2572 if (ann) {
2573 if (ann->hasAtom("val") || ann->hasAtom("value_propagation"))
2574 return IPL_VAL;
2575 if (ann->hasAtom("domain") || ann->hasAtom("domain_propagation"))
2576 return IPL_DOM;
2577 if (ann->hasAtom("bounds") ||
2578 ann->hasAtom("bounds_propagation") ||
2579 ann->hasAtom("boundsR") ||
2580 ann->hasAtom("boundsD") ||
2581 ann->hasAtom("boundsZ"))
2582 return IPL_BND;
2583 }
2584 return IPL_DEF;
2585 }
2586
2587 DFA
2588 FlatZincSpace::getSharedDFA(DFA& a) {

Callers 15

p_distinctFunction · 0.80
p_distinctOffsetFunction · 0.80
p_all_equalFunction · 0.80
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_bool_lin_CMPFunction · 0.80
p_bool_lin_CMP_reifFunction · 0.80
p_int_plusFunction · 0.80
p_int_minusFunction · 0.80
p_int_timesFunction · 0.80

Calls 1

hasAtomMethod · 0.80

Tested by

no test coverage detected