Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
773 B · 32 lines
C++
at develop
123456789101112131415161718192021222324252627282930313233/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/* * Main authors: * Jip J. Dekker <jip.dekker@monash.edu> * Guido Tack <guido.tack@monash.edu> */
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <minizinc/interpreter.hh>#include <minizinc/interpreter/vector.hh>
namespace MiniZinc {
bool Vec::isPar() const { assert(alive()); for (int i = 0; i < this->size(); ++i) { Val v = this->operator[](i); if (v.isVec() && (!v.toVec()->isPar())) { return false; } if (v.isVar()) { return false; } } return true;}
} // namespace MiniZinc