summaryrefslogtreecommitdiff
path: root/src/theory/strings/infer_info.cpp
blob: 1d0ee30ad52393ef45a6cb003769ad12a8814a91 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*********************                                                        */
/*! \file infer_info.cpp
 ** \verbatim
 ** Top contributors (to current version):
 **   Andrew Reynolds
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2019 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 information utility.
 **/

#include "theory/strings/infer_info.h"

namespace CVC4 {
namespace theory {
namespace strings {

const char* toString(Inference i)
{
  switch (i)
  {
    case Inference::I_NORM_S: return "I_NORM_S";
    case Inference::I_CONST_MERGE: return "I_CONST_MERGE";
    case Inference::I_CONST_CONFLICT: return "I_CONST_CONFLICT";
    case Inference::I_NORM: return "I_NORM";
    case Inference::CARDINALITY: return "CARDINALITY";
    case Inference::N_ENDPOINT_EMP: return "N_ENDPOINT_EMP";
    case Inference::N_UNIFY: return "N_UNIFY";
    case Inference::N_ENDPOINT_EQ: return "N_ENDPOINT_EQ";
    case Inference::N_CONST: return "N_CONST";
    case Inference::INFER_EMP: return "INFER_EMP";
    case Inference::SSPLIT_CST_PROP: return "SSPLIT_CST_PROP";
    case Inference::SSPLIT_VAR_PROP: return "SSPLIT_VAR_PROP";
    case Inference::LEN_SPLIT: return "LEN_SPLIT";
    case Inference::LEN_SPLIT_EMP: return "LEN_SPLIT_EMP";
    case Inference::SSPLIT_CST: return "SSPLIT_CST";
    case Inference::SSPLIT_VAR: return "SSPLIT_VAR";
    case Inference::FLOOP: return "FLOOP";
    case Inference::RE_NF_CONFLICT: return "RE_NF_CONFLICT";
    case Inference::RE_UNFOLD_POS: return "RE_UNFOLD_POS";
    case Inference::RE_UNFOLD_NEG: return "RE_UNFOLD_NEG";
    case Inference::RE_INTER_INCLUDE: return "RE_INTER_INCLUDE";
    case Inference::RE_INTER_CONF: return "RE_INTER_CONF";
    case Inference::RE_INTER_INFER: return "RE_INTER_INFER";
    case Inference::RE_DELTA: return "RE_DELTA";
    case Inference::RE_DELTA_CONF: return "RE_DELTA_CONF";
    case Inference::RE_DERIVE: return "RE_DERIVE";
    case Inference::EXTF: return "EXTF";
    case Inference::EXTF_N: return "EXTF_N";
    case Inference::CTN_TRANS: return "CTN_TRANS";
    case Inference::CTN_DECOMPOSE: return "CTN_DECOMPOSE";
    case Inference::CTN_NEG_EQUAL: return "CTN_NEG_EQUAL";
    case Inference::CTN_POS: return "CTN_POS";
    case Inference::REDUCTION: return "REDUCTION";
    default: return "?";
  }
}

std::ostream& operator<<(std::ostream& out, Inference i)
{
  out << toString(i);
  return out;
}

InferInfo::InferInfo() : d_id(Inference::NONE), d_index(0), d_rev(false) {}

}  // namespace strings
}  // namespace theory
}  // namespace CVC4
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback