Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Morgan Deters, Aina Niemetz 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2025 by the authors listed in the file AUTHORS 8 : : * in the top-level source directory and their institutional affiliations. 9 : : * All rights reserved. See the file COPYING in the top-level source 10 : : * directory for licensing information. 11 : : * **************************************************************************** 12 : : * 13 : : * Divisibility-by-k predicate. 14 : : */ 15 : : 16 : : #include "util/divisible.h" 17 : : 18 : : #include "base/check.h" 19 : : #include "base/exception.h" 20 : : 21 : : using namespace std; 22 : : 23 : : namespace cvc5::internal { 24 : : 25 : 310 : Divisible::Divisible(const Integer& n) : k(n) { 26 [ - + ][ - + ]: 310 : Assert(n > 0) << "Divisible predicate must be constructed over positive N"; [ - - ] 27 : 310 : } 28 : : 29 : : } // namespace cvc5::internal