summaryrefslogtreecommitdiff
path: root/src/theory/strings/infer_info.cpp
blob: aa7fe89740ce6d99ee536ee0890268a2d55ba715 (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
/*********************                                                        */
/*! \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"

using namespace CVC4::kind;

namespace CVC4 {
namespace theory {
namespace strings {

std::ostream& operator<<(std::ostream& out, Inference i)
{
  switch (i)
  {
    case Inference::N_ENDPOINT_EMP: out << "N_EndpointEmp"; break;
    case Inference::N_UNIFY: out << "N_Unify"; break;
    case Inference::N_ENDPOINT_EQ: out << "N_EndpointEq"; break;
    case Inference::N_CONST: out << "N_Const"; break;
    case Inference::INFER_EMP: out << "Infer-Emp"; break;
    case Inference::SSPLIT_CST_PROP: out << "S-Split(CST-P)-prop"; break;
    case Inference::SSPLIT_VAR_PROP: out << "S-Split(VAR)-prop"; break;
    case Inference::LEN_SPLIT: out << "Len-Split(Len)"; break;
    case Inference::LEN_SPLIT_EMP: out << "Len-Split(Emp)"; break;
    case Inference::SSPLIT_CST: out << "S-Split(CST-P)"; break;
    case Inference::SSPLIT_VAR: out << "S-Split(VAR)"; break;
    case Inference::FLOOP: out << "F-Loop"; break;
    default: out << "?"; break;
  }
  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