GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/arith/arith_state.cpp Lines: 7 7 100.0 %
Date: 2021-03-23 Branches: 6 10 60.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file arith_state.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andrew Reynolds
6
 ** This file is part of the CVC4 project.
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.\endverbatim
11
 **
12
 ** \brief Arithmetic theory state.
13
 **/
14
15
#include "theory/arith/arith_state.h"
16
17
#include "theory/arith/theory_arith_private.h"
18
19
namespace CVC4 {
20
namespace theory {
21
namespace arith {
22
23
8997
ArithState::ArithState(TheoryArithPrivate& parent,
24
                       context::Context* c,
25
                       context::UserContext* u,
26
8997
                       Valuation val)
27
8997
    : TheoryState(c, u, val), d_parent(parent)
28
{
29
8997
}
30
31
7371432
bool ArithState::isInConflict() const
32
{
33
7371432
  return d_parent.anyConflict() || d_conflict;
34
}
35
36
}  // namespace arith
37
}  // namespace theory
38
26685
}  // namespace CVC4