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 : : * Divisibility-by-k predicate. 11 : : */ 12 : : 13 : : #include "util/divisible.h" 14 : : 15 : : #include "base/check.h" 16 : : #include "base/exception.h" 17 : : 18 : : using namespace std; 19 : : 20 : : namespace cvc5::internal { 21 : : 22 : 375 : Divisible::Divisible(const Integer& n) : k(n) 23 : : { 24 [ - + ][ - + ]: 375 : Assert(n > 0) << "Divisible predicate must be constructed over positive N"; [ - - ] 25 : 375 : } 26 : : 27 : : } // namespace cvc5::internal