GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/arith/arith_state.cpp Lines: 7 7 100.0 %
Date: 2021-08-17 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
9850
ArithState::ArithState(Env& env, Valuation val)
25
9850
    : TheoryState(env, val), d_parent(nullptr)
26
{
27
9850
}
28
29
7030551
bool ArithState::isInConflict() const
30
{
31
7030551
  return d_parent->anyConflict() || d_conflict;
32
}
33
34
9850
void ArithState::setParent(TheoryArithPrivate* p) { d_parent = p; }
35
36
}  // namespace arith
37
}  // namespace theory
38
29337
}  // namespace cvc5