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

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