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 |
11 |
struct InstantiationList |
30 |
|
{ |
31 |
11 |
InstantiationList(Node q, const std::vector<std::vector<Node> >& inst) |
32 |
11 |
: d_quant(q), d_inst(inst) |
33 |
|
{ |
34 |
11 |
} |
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 |
7 |
struct SkolemList |
46 |
|
{ |
47 |
7 |
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 */ |