1 /********************* */
4 ** Top contributors (to current version):
5 ** Morgan Deters, Tim King
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2018 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.\endverbatim
12 ** \brief [[ Add one-line brief description here ]]
14 ** [[ Add lengthier description here ]]
15 ** \todo document this file
18 #include "cvc4_public.h"
20 #ifndef __CVC4__DIVISIBLE_H
21 #define __CVC4__DIVISIBLE_H
25 #include "base/exception.h"
26 #include "util/integer.h"
31 * The structure representing the divisibility-by-k predicate.
33 struct CVC4_PUBLIC Divisible
{
36 Divisible(const Integer
& n
);
38 bool operator==(const Divisible
& d
) const {
42 bool operator!=(const Divisible
& d
) const {
45 };/* struct Divisible */
48 * Hash function for the Divisible objects.
50 struct CVC4_PUBLIC DivisibleHashFunction
{
51 size_t operator()(const Divisible
& d
) const {
54 };/* struct DivisibleHashFunction */
56 inline std::ostream
& operator <<(std::ostream
& os
, const Divisible
& d
) CVC4_PUBLIC
;
57 inline std::ostream
& operator <<(std::ostream
& os
, const Divisible
& d
) {
58 return os
<< "divisible-by-" << d
.k
;
63 #endif /* __CVC4__DIVISIBLE_H */