blob: 7ecbb364d1dc2540662c684b96bbc46b3c1f4d3b (
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
56
57
|
/********************* */
/*! \file inference_id.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/inference_id.h"
namespace CVC4 {
namespace theory {
namespace arith {
const char* toString(InferenceId i)
{
switch (i)
{
case InferenceId::NL_CONGRUENCE: return "CONGRUENCE";
case InferenceId::NL_SHARED_TERM_VALUE_SPLIT: return "SHARED_TERM_VALUE_SPLIT";
case InferenceId::NL_SPLIT_ZERO: return "SPLIT_ZERO";
case InferenceId::NL_SIGN: return "SIGN";
case InferenceId::NL_COMPARISON: return "COMPARISON";
case InferenceId::NL_INFER_BOUNDS: return "INFER_BOUNDS";
case InferenceId::NL_INFER_BOUNDS_NT: return "INFER_BOUNDS_NT";
case InferenceId::NL_FACTOR: return "FACTOR";
case InferenceId::NL_RES_INFER_BOUNDS: return "RES_INFER_BOUNDS";
case InferenceId::NL_TANGENT_PLANE: return "TANGENT_PLANE";
case InferenceId::NL_T_PURIFY_ARG: return "T_PURIFY_ARG";
case InferenceId::NL_T_INIT_REFINE: return "T_INIT_REFINE";
case InferenceId::NL_T_PI_BOUND: return "T_PI_BOUND";
case InferenceId::NL_T_MONOTONICITY: return "T_MONOTONICITY";
case InferenceId::NL_T_SECANT: return "T_SECANT";
case InferenceId::NL_T_TANGENT: return "T_TANGENT";
case InferenceId::NL_IAND_INIT_REFINE: return "IAND_INIT_REFINE";
case InferenceId::NL_IAND_VALUE_REFINE: return "IAND_VALUE_REFINE";
case InferenceId::NL_CAD_CONFLICT: return "CAD_CONFLICT";
case InferenceId::NL_CAD_EXCLUDED_INTERVAL: return "CAD_EXCLUDED_INTERVAL";
default: return "?";
}
}
std::ostream& operator<<(std::ostream& out, InferenceId i)
{
out << toString(i);
return out;
}
} // namespace arith
} // namespace theory
} // namespace CVC4
|