GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/util/abstract_value.cpp Lines: 6 6 100.0 %
Date: 2021-03-22 Branches: 5 16 31.3 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file abstract_value.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Tim King, Morgan Deters
6
 ** This file is part of the CVC4 project.
7
 ** Copyright (c) 2009-2021 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
11
 **
12
 ** \brief Representation of abstract values
13
 **
14
 ** Representation of abstract values.
15
 **/
16
17
#include "util/abstract_value.h"
18
19
#include <iostream>
20
#include <sstream>
21
#include <string>
22
23
#include "base/check.h"
24
25
using namespace std;
26
27
namespace CVC4 {
28
29
8
std::ostream& operator<<(std::ostream& out, const AbstractValue& val) {
30
8
  return out << "@" << val.getIndex();
31
}
32
33
22
AbstractValue::AbstractValue(Integer index) : d_index(index)
34
{
35
22
  PrettyCheckArgument(index >= 1,
36
                      index,
37
                      "index >= 1 required for abstract value, not `%s'",
38
                      index.toString().c_str());
39
22
}
40
41
26676
}/* CVC4 namespace */