Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * This file is part of the cvc5 project. 3 : : * 4 : : * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS 5 : : * in the top-level source directory and their institutional affiliations. 6 : : * All rights reserved. See the file COPYING in the top-level source 7 : : * directory for licensing information. 8 : : * **************************************************************************** 9 : : * 10 : : * [[ Add one-line brief description here ]] 11 : : * 12 : : * [[ Add lengthier description here ]] 13 : : * \todo document this file 14 : : */ 15 : : 16 : : #include "theory/arith/linear/arithvar.h" 17 : : 18 : : #include <limits> 19 : : #include <set> 20 : : 21 : : namespace cvc5::internal { 22 : : namespace theory { 23 : : namespace arith::linear { 24 : : 25 : : const ArithVar ARITHVAR_SENTINEL = std::numeric_limits<ArithVar>::max(); 26 : : 27 : 205087 : bool debugIsASet(const std::vector<ArithVar>& variables) 28 : : { 29 : 205087 : std::set<ArithVar> asSet(variables.begin(), variables.end()); 30 : 410174 : return asSet.size() == variables.size(); 31 : 205087 : } 32 : : 33 : : } // namespace arith::linear 34 : : } // namespace theory 35 : : } // namespace cvc5::internal