GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/arith/arith_state.cpp Lines: 8 8 100.0 %
Date: 2021-08-16 Branches: 6 8 75.0 %

Line Exec Source
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
9853
ArithState::ArithState(context::Context* c,
25
                       context::UserContext* u,
26
9853
                       Valuation val)
27
9853
    : TheoryState(c, u, val), d_parent(nullptr)
28
{
29
9853
}
30
31
7420859
bool ArithState::isInConflict() const
32
{
33
7420859
  return d_parent->anyConflict() || d_conflict;
34
}
35
36
9853
void ArithState::setParent(TheoryArithPrivate* p) { d_parent = p; }
37
38
}  // namespace arith
39
}  // namespace theory
40
29340
}  // namespace cvc5