| 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 | } |
no test coverage detected