GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/bv/slicer.h Lines: 0 1 0.0 %
Date: 2021-08-14 Branches: 0 0 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Liana Hadarean, Mathias Preiner, Andrew Reynolds
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
 * Bitvector theory.
14
 */
15
16
#include "cvc5_private.h"
17
18
#ifndef CVC5__THEORY__BV__SLICER_BV_H
19
#define CVC5__THEORY__BV__SLICER_BV_H
20
21
#include <string>
22
#include <vector>
23
#include "util/index.h"
24
25
namespace cvc5 {
26
namespace theory {
27
namespace bv {
28
29
/**
30
 * Base
31
 *
32
 */
33
class Base {
34
  Index d_size;
35
  std::vector<uint32_t> d_repr;
36
public:
37
  Base(Index size);
38
  void sliceAt(Index index);
39
  bool isCutPoint(Index index) const;
40
  std::string debugPrint() const;
41
  bool operator==(const Base& other) const {
42
    if (other.d_size != d_size) return false;
43
    for (unsigned i = 0; i < d_repr.size(); ++i) {
44
      if (d_repr[i] != other.d_repr[i])
45
        return false;
46
    }
47
    return true;
48
  }
49
};
50
51
}  // namespace bv
52
}  // namespace theory
53
}  // namespace cvc5
54
55
#endif /* CVC5__THEORY__BV__SLICER_BV_H */