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 |
|
* Arithmetic theory state. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "cvc5_private.h" |
17 |
|
|
18 |
|
#ifndef CVC5__THEORY__ARITH__ARITH_STATE_H |
19 |
|
#define CVC5__THEORY__ARITH__ARITH_STATE_H |
20 |
|
|
21 |
|
#include "theory/theory_state.h" |
22 |
|
|
23 |
|
namespace cvc5 { |
24 |
|
namespace theory { |
25 |
|
namespace arith { |
26 |
|
|
27 |
|
class TheoryArithPrivate; |
28 |
|
|
29 |
|
/** |
30 |
|
* The arithmetic state. |
31 |
|
* |
32 |
|
* Note this object is intended to use TheoryArithPrivate |
33 |
|
* as a black box, and moreover the internals of TheoryArithPrivate will not |
34 |
|
* be refactored to use this state. Instead, the main theory solver TheoryArith |
35 |
|
* will be refactored to be a standard layer on top of TheoryArithPrivate, |
36 |
|
* which will include using this state in the standard way. |
37 |
|
*/ |
38 |
|
class ArithState : public TheoryState |
39 |
|
{ |
40 |
|
public: |
41 |
|
ArithState(context::Context* c, context::UserContext* u, Valuation val); |
42 |
9853 |
~ArithState() {} |
43 |
|
/** Are we currently in conflict? */ |
44 |
|
bool isInConflict() const override; |
45 |
|
/** Set parent */ |
46 |
|
void setParent(TheoryArithPrivate* p); |
47 |
|
|
48 |
|
private: |
49 |
|
/** reference to parent */ |
50 |
|
TheoryArithPrivate* d_parent; |
51 |
|
}; |
52 |
|
|
53 |
|
} // namespace arith |
54 |
|
} // namespace theory |
55 |
|
} // namespace cvc5 |
56 |
|
|
57 |
|
#endif |