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

Function p_set_in_reif

gecode/flatzinc/registry.cpp:1981–1998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1979 p_set_rel_reif(s,SRT_SUP,ce);
1980 }
1981 void p_set_in_reif(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann, ReifyMode rm) {
1982 if (!ce[1]->isSetVar()) {
1983 if (rm==RM_EQV) {
1984 p_int_in_reif(s,ce,ann);
1985 } else {
1986 assert(rm==RM_IMP);
1987 p_int_in_imp(s,ce,ann);
1988 }
1989 } else {
1990 if (!ce[0]->isIntVar()) {
1991 dom(s, s.arg2SetVar(ce[1]), SRT_SUP, ce[0]->getInt(),
1992 Reify(s.arg2BoolVar(ce[2]),rm));
1993 } else {
1994 rel(s, s.arg2SetVar(ce[1]), SRT_SUP, s.arg2IntVar(ce[0]),
1995 Reify(s.arg2BoolVar(ce[2]),rm));
1996 }
1997 }
1998 }
1999 void p_set_in_reif(FlatZincSpace& s, const ConExpr& ce, AST::Node* ann) {
2000 p_set_in_reif(s,ce,ann,RM_EQV);
2001 }

Callers 1

p_set_in_impFunction · 0.85

Calls 11

p_int_in_reifFunction · 0.85
p_int_in_impFunction · 0.85
ReifyClass · 0.85
isSetVarMethod · 0.80
isIntVarMethod · 0.80
arg2SetVarMethod · 0.80
getIntMethod · 0.80
arg2BoolVarMethod · 0.80
arg2IntVarMethod · 0.80
domFunction · 0.50
relFunction · 0.50

Tested by

no test coverage detected