blob: 34242e746da58d63a4c16da4d72faaa901e3de52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/********************* */
/*! \file inference.cpp
** \verbatim
** Top contributors (to current version):
** Andrew Reynolds
** This file is part of the CVC4 project.
** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS
** in the top-level source directory) and their institutional affiliations.
** All rights reserved. See the file COPYING in the top-level source
** directory for licensing information.\endverbatim
**
** \brief Implementation of inference enumeration.
**/
#include "theory/arith/nl/inference.h"
namespace CVC4 {
namespace theory {
namespace arith {
namespace nl {
const char* toString(Inference i)
{
switch (i)
{
case Inference::CONGRUENCE: return "CONGRUENCE";
case Inference::SHARED_TERM_VALUE_SPLIT: return "SHARED_TERM_VALUE_SPLIT";
case Inference::SPLIT_ZERO: return "SPLIT_ZERO";
case Inference::SIGN: return "SIGN";
case Inference::COMPARISON: return "COMPARISON";
case Inference::INFER_BOUNDS: return "INFER_BOUNDS";
case Inference::INFER_BOUNDS_NT: return "INFER_BOUNDS_NT";
case Inference::FACTOR: return "FACTOR";
case Inference::RES_INFER_BOUNDS: return "RES_INFER_BOUNDS";
case Inference::TANGENT_PLANE: return "TANGENT_PLANE";
case Inference::T_PURIFY_ARG: return "T_PURIFY_ARG";
case Inference::T_INIT_REFINE: return "T_INIT_REFINE";
case Inference::T_PI_BOUND: return "T_PI_BOUND";
case Inference::T_MONOTONICITY: return "T_MONOTONICITY";
case Inference::T_SECANT: return "T_SECANT";
case Inference::T_TANGENT: return "T_TANGENT";
default: return "?";
}
}
std::ostream& operator<<(std::ostream& out, Inference i)
{
out << toString(i);
return out;
}
} // namespace nl
} // namespace arith
} // namespace theory
} // namespace CVC4
|