GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/arith/nl/ext/split_zero_check.h Lines: 1 1 100.0 %
Date: 2021-11-07 Branches: 0 0 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Gereon Kremer, Andrew Reynolds, Tim King
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
 * Check for split zero lemma.
14
 */
15
16
#ifndef CVC5__THEORY__ARITH__NL__EXT__SPLIT_ZERO_CHECK_H
17
#define CVC5__THEORY__ARITH__NL__EXT__SPLIT_ZERO_CHECK_H
18
19
#include "context/cdhashset.h"
20
#include "expr/node.h"
21
#include "smt/env_obj.h"
22
23
namespace cvc5 {
24
namespace theory {
25
namespace arith {
26
namespace nl {
27
28
struct ExtState;
29
30
9693
class SplitZeroCheck : protected EnvObj
31
{
32
 public:
33
  SplitZeroCheck(Env& env, ExtState* data);
34
35
  /** check split zero
36
   *
37
   * Returns a set of theory lemmas of the form
38
   *   t = 0 V t != 0
39
   * where t is a term that exists in the current context.
40
   */
41
  void check();
42
43
 private:
44
  using NodeSet = context::CDHashSet<Node>;
45
46
  /** Basic data that is shared with other checks */
47
  ExtState* d_data;
48
  /** cache of terms t for which we have added the lemma ( t = 0 V t != 0 ). */
49
  NodeSet d_zero_split;
50
};
51
52
}  // namespace nl
53
}  // namespace arith
54
}  // namespace theory
55
}  // namespace cvc5
56
57
#endif