GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/arith/arith_state.cpp Lines: 7 7 100.0 %
Date: 2021-05-22 Branches: 6 10 60.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
9459
ArithState::ArithState(TheoryArithPrivate& parent,
25
                       context::Context* c,
26
                       context::UserContext* u,
27
9459
                       Valuation val)
28
9459
    : TheoryState(c, u, val), d_parent(parent)
29
{
30
9459
}
31
32
6008735
bool ArithState::isInConflict() const
33
{
34
6008735
  return d_parent.anyConflict() || d_conflict;
35
}
36
37
}  // namespace arith
38
}  // namespace theory
39
28191
}  // namespace cvc5