GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/uf/type_enumerator.h Lines: 0 2 0.0 %
Date: 2021-11-07 Branches: 0 4 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   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
 * Enumerator for functions.
14
 */
15
16
#include "cvc5_private.h"
17
18
#ifndef CVC5__THEORY__UF__TYPE_ENUMERATOR_H
19
#define CVC5__THEORY__UF__TYPE_ENUMERATOR_H
20
21
#include "expr/kind.h"
22
#include "expr/type_node.h"
23
#include "theory/type_enumerator.h"
24
#include "util/integer.h"
25
26
namespace cvc5 {
27
namespace theory {
28
namespace uf {
29
30
/** FunctionEnumerator
31
 * This enumerates function values, based on the enumerator for the
32
 * array type corresponding to the given function type.
33
 */
34
class FunctionEnumerator : public TypeEnumeratorBase<FunctionEnumerator>
35
{
36
 public:
37
  FunctionEnumerator(TypeNode type, TypeEnumeratorProperties* tep = nullptr);
38
  /** Get the current term of the enumerator. */
39
  Node operator*() override;
40
  /** Increment the enumerator. */
41
  FunctionEnumerator& operator++() override;
42
  /** is the enumerator finished? */
43
  bool isFinished() override { return d_arrayEnum.isFinished(); }
44
45
 private:
46
  /** Enumerates arrays, which we convert to functions. */
47
  TypeEnumerator d_arrayEnum;
48
  /** The bound variable list for the function type we are enumerating.
49
   * All terms output by this enumerator are of the form (LAMBDA d_bvl t) for
50
   * some term t.
51
   */
52
  Node d_bvl;
53
}; /* class FunctionEnumerator */
54
55
}  // namespace uf
56
}  // namespace theory
57
}  // namespace cvc5
58
59
#endif /* CVC5__THEORY__UF__TYPE_ENUMERATOR_H */