1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Morgan Deters, Tim King |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 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 |
|
* [[ Add one-line brief description here ]] |
14 |
|
* |
15 |
|
* [[ Add lengthier description here ]] |
16 |
|
* \todo document this file |
17 |
|
*/ |
18 |
|
|
19 |
|
#include "util/divisible.h" |
20 |
|
|
21 |
|
#include "base/check.h" |
22 |
|
#include "base/exception.h" |
23 |
|
|
24 |
|
using namespace std; |
25 |
|
|
26 |
|
namespace cvc5 { |
27 |
|
|
28 |
12 |
Divisible::Divisible(const Integer& n) : k(n) { |
29 |
12 |
PrettyCheckArgument(n > 0, n, "Divisible predicate must be constructed over positive N"); |
30 |
12 |
} |
31 |
|
|
32 |
31137 |
} // namespace cvc5 |