GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/arith/arith_state.h Lines: 1 1 100.0 %
Date: 2021-09-10 Branches: 0 0 0.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 "cvc5_private.h"
17
18
#ifndef CVC5__THEORY__ARITH__ARITH_STATE_H
19
#define CVC5__THEORY__ARITH__ARITH_STATE_H
20
21
#include "theory/theory_state.h"
22
23
namespace cvc5 {
24
namespace theory {
25
namespace arith {
26
27
class TheoryArithPrivate;
28
29
/**
30
 * The arithmetic state.
31
 *
32
 * Note this object is intended to use TheoryArithPrivate
33
 * as a black box, and moreover the internals of TheoryArithPrivate will not
34
 * be refactored to use this state. Instead, the main theory solver TheoryArith
35
 * will be refactored to be a standard layer on top of TheoryArithPrivate,
36
 * which will include using this state in the standard way.
37
 */
38
class ArithState : public TheoryState
39
{
40
 public:
41
  ArithState(Env& env,
42
             Valuation val);
43
9910
  ~ArithState() {}
44
  /** Are we currently in conflict? */
45
  bool isInConflict() const override;
46
  /** Set parent */
47
  void setParent(TheoryArithPrivate* p);
48
49
 private:
50
  /** reference to parent */
51
  TheoryArithPrivate* d_parent;
52
};
53
54
}  // namespace arith
55
}  // namespace theory
56
}  // namespace cvc5
57
58
#endif