GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/quantifiers/quant_rep_bound_ext.h Lines: 1 1 100.0 %
Date: 2021-03-23 Branches: 0 0 0.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file quant_rep_bound_ext.h
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andrew Reynolds, Mathias Preiner
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 Quantifiers representative bound utility
13
 **/
14
15
#include "cvc4_private.h"
16
17
#ifndef CVC4__THEORY__QUANTIFIERS__QUANT_REP_BOUND_EXT_H
18
#define CVC4__THEORY__QUANTIFIERS__QUANT_REP_BOUND_EXT_H
19
20
#include <map>
21
22
#include "expr/node.h"
23
#include "theory/rep_set.h"
24
#include "theory/theory_model.h"
25
26
namespace CVC4 {
27
namespace theory {
28
namespace quantifiers {
29
30
class QuantifiersBoundInference;
31
class FirstOrderModel;
32
33
/** Quantifiers representative bound
34
 *
35
 * This class is used for computing (finite) bounds for the domain of a
36
 * quantifier in the context of a RepSetIterator (see theory/rep_set.h)
37
 * based on modules from the quantifiers engine.
38
 */
39
class QRepBoundExt : public RepBoundExt
40
{
41
 public:
42
  QRepBoundExt(QuantifiersBoundInference& qbi, FirstOrderModel* m);
43
4381
  virtual ~QRepBoundExt() {}
44
  /** set bound */
45
  RsiEnumType setBound(Node owner,
46
                       unsigned i,
47
                       std::vector<Node>& elements) override;
48
  /** reset index */
49
  bool resetIndex(RepSetIterator* rsi,
50
                  Node owner,
51
                  unsigned i,
52
                  bool initial,
53
                  std::vector<Node>& elements) override;
54
  /** initialize representative set for type */
55
  bool initializeRepresentativesForType(TypeNode tn) override;
56
  /** get variable order */
57
  bool getVariableOrder(Node owner, std::vector<unsigned>& varOrder) override;
58
59
 private:
60
  /** Reference to the quantifiers bound inference */
61
  QuantifiersBoundInference& d_qbi;
62
  /** Pointer to the quantifiers model */
63
  FirstOrderModel* d_model;
64
  /** indices that are bound integer enumeration */
65
  std::map<unsigned, bool> d_bound_int;
66
};
67
68
}  // namespace quantifiers
69
}  // namespace theory
70
}  // namespace CVC4
71
72
#endif /* CVC4__FIRST_ORDER_MODEL_H */