37 namespace Gecode {
namespace Int {
namespace LDSB {
44 if (indices.valid(
l._variable) && indices.get(
l._variable)) {
63 if (indices.valid(
l._variable) && indices.get(
l._variable)) {
90 lits[j++] =
Literal(
l._variable,
i.val());
109 lits[j++] =
Literal(
l._variable,
i.val());
124 std::pair<int,int> location =
findVar(
values, n_values, seq_size,
l._value);
126 unsigned int seqNum = location.first;
127 unsigned int seqPos = location.second;
128 if (! dead_sequences.get(seqNum)) {
129 for (
unsigned int seq = 0 ; seq < n_seqs ; seq++) {
130 if (seq == seqNum)
continue;
131 if (dead_sequences.get(seq))
continue;
145 std::pair<int,int> location =
findVar(
values, n_values, seq_size,
l._value);
147 unsigned int seqNum = location.first;
148 unsigned int seqPos = location.second;
149 if (! dead_sequences.get(seqNum)) {
150 for (
unsigned int seq = 0 ; seq < n_seqs ; seq++) {
151 if (seq == seqNum)
continue;
152 if (dead_sequences.get(seq))
continue;
void values(Home home, const IntVarArgs &x, IntSet y, IntPropLevel ipl)
Post constraint .
int n
Number of negative literals for node type.
Node * x
Pointer to corresponding Boolean expression node.
Argument array for non-primitive types.
A Literal is a pair of variable index and value.
virtual ArgArray< Literal > symmetric(Literal, const ViewArray< View > &) const
Compute symmetric literals.
virtual ArgArray< Literal > symmetric(Literal, const ViewArray< View > &) const
Compute symmetric literals.
virtual ArgArray< Literal > symmetric(Literal, const ViewArray< View > &) const
Compute symmetric literals.
Value iterator for values in an offset bitset.
Bitsets with index offset.
Stack with arbitrary number of elements.
void push(const T &x)
Push element x on top of stack.
std::pair< int, int > findVar(int *indices, unsigned int n_values, unsigned int seq_size, int index)
Find the location of an integer in a collection of sequences.
ArgArray< T > dynamicStackToArgArray(const Support::DynamicStack< T, A > &s)
Convert a DynamicStack<T,A> into an ArgArray<T>
Gecode::IntArgs i({1, 2, 3, 4})