include "span.mzn";

predicate fzn_alternative(var opt int: s0, var int: d0,
                      array[int] of var opt int: s,
                      array[int] of var int: d) =
          sum(i in index_set(s))(bool2int(occurs(s[i]))) = occurs(s0) /\
          span(s0,d0,s,d);
