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 "theory/arith/arith_state.h" |
17 |
|
|
18 |
|
#include "theory/arith/theory_arith_private.h" |
19 |
|
|
20 |
|
namespace cvc5 { |
21 |
|
namespace theory { |
22 |
|
namespace arith { |
23 |
|
|
24 |
9838 |
ArithState::ArithState(context::Context* c, |
25 |
|
context::UserContext* u, |
26 |
9838 |
Valuation val) |
27 |
9838 |
: TheoryState(c, u, val), d_parent(nullptr) |
28 |
|
{ |
29 |
9838 |
} |
30 |
|
|
31 |
6862409 |
bool ArithState::isInConflict() const |
32 |
|
{ |
33 |
6862409 |
return d_parent->anyConflict() || d_conflict; |
34 |
|
} |
35 |
|
|
36 |
9838 |
void ArithState::setParent(TheoryArithPrivate* p) { d_parent = p; } |
37 |
|
|
38 |
|
} // namespace arith |
39 |
|
} // namespace theory |
40 |
29280 |
} // namespace cvc5 |