GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/quantifiers/instantiation_list.h Lines: 6 6 100.0 %
Date: 2021-05-22 Branches: 2 4 50.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
 * List of instantiations.
14
 */
15
16
#include "cvc5_private.h"
17
18
#ifndef CVC5__THEORY__QUANTIFIERS__INSTANTIATION_LIST_H
19
#define CVC5__THEORY__QUANTIFIERS__INSTANTIATION_LIST_H
20
21
#include <iosfwd>
22
#include <vector>
23
24
#include "expr/node.h"
25
26
namespace cvc5 {
27
28
/** A list of instantiations for a quantified formula */
29
15
struct InstantiationList
30
{
31
15
  InstantiationList(Node q, const std::vector<std::vector<Node> >& inst)
32
15
      : d_quant(q), d_inst(inst)
33
  {
34
15
  }
35
  /** The quantified formula */
36
  Node d_quant;
37
  /** The instantiation list */
38
  std::vector<std::vector<Node> > d_inst;
39
};
40
41
/** Print the instantiation list to stream out */
42
std::ostream& operator<<(std::ostream& out, const InstantiationList& ilist);
43
44
/** The list of skolemization for a quantified formula */
45
9
struct SkolemList
46
{
47
9
  SkolemList(Node q, const std::vector<Node>& sks) : d_quant(q), d_sks(sks) {}
48
  /** The quantified formula */
49
  Node d_quant;
50
  /** The list of skolems for the quantified formula */
51
  std::vector<Node> d_sks;
52
};
53
54
/** Print the skolem list to stream out */
55
std::ostream& operator<<(std::ostream& out, const SkolemList& skl);
56
57
}  // namespace cvc5
58
59
#endif /* CVC5__THEORY__QUANTIFIERS__INSTANTIATION_LIST_H */