blob: 1b132fc37f6712abfdb30f04d0467ad2ae2a51bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/********************* */
/*! \file inference_manager.h
** \verbatim
** Top contributors (to current version):
** Mudathir Mohamed
** This file is part of the CVC4 project.
** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS
** in the top-level source directory and their institutional affiliations.
** All rights reserved. See the file COPYING in the top-level source
** directory for licensing information.\endverbatim
**
** \brief The inference manager for the theory of bags.
**/
#include "cvc4_private.h"
#ifndef CVC4__THEORY__BAGS__INFERENCE_MANAGER_H
#define CVC4__THEORY__BAGS__INFERENCE_MANAGER_H
#include "theory/bags/infer_info.h"
#include "theory/bags/solver_state.h"
#include "theory/inference_manager_buffered.h"
namespace CVC4 {
namespace theory {
namespace bags {
/** Inference manager
*
* This class manages inferences produced by the theory of bags. It manages
* whether inferences are processed as external lemmas on the output channel
* of theory of bags or internally as literals asserted to the equality engine
* of theory of bags. The latter literals are referred to as "facts".
*/
class InferenceManager : public InferenceManagerBuffered
{
typedef context::CDHashSet<Node, NodeHashFunction> NodeSet;
public:
InferenceManager(Theory& t, SolverState& s, ProofNodeManager* pnm);
/**
* Do pending method. This processes all pending facts, lemmas and pending
* phase requests based on the policy of this manager. This means that
* we process the pending facts first and abort if in conflict. Otherwise, we
* process the pending lemmas and then the pending phase requirements.
* Notice that we process the pending lemmas even if there were facts.
*/
// TODO issue #78: refactor this with theory of strings
void doPending();
private:
/** constants */
Node d_true;
Node d_false;
/**
* Reference to the state object for the theory of bags. We store the
* (derived) state here, since it has additional methods required in this
* class.
*/
SolverState& d_state;
};
} // namespace bags
} // namespace theory
} // namespace CVC4
#endif /* CVC4__THEORY__BAGS__INFERENCE_MANAGER_H */
|