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 |
9940 |
ArithState::ArithState(Env& env, Valuation val) |
25 |
9940 |
: TheoryState(env, val), d_parent(nullptr) |
26 |
|
{ |
27 |
9940 |
} |
28 |
|
|
29 |
9137406 |
bool ArithState::isInConflict() const |
30 |
|
{ |
31 |
9137406 |
return d_parent->anyConflict() || d_conflict; |
32 |
|
} |
33 |
|
|
34 |
9940 |
void ArithState::setParent(TheoryArithPrivate* p) { d_parent = p; } |
35 |
|
|
36 |
|
} // namespace arith |
37 |
|
} // namespace theory |
38 |
29574 |
} // namespace cvc5 |