GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/ee_setup_info.h Lines: 4 4 100.0 %
Date: 2021-05-22 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
 * Setup information for an equality engine.
14
 */
15
16
#include "cvc5_private.h"
17
18
#ifndef CVC5__THEORY__EE_SETUP_INFO__H
19
#define CVC5__THEORY__EE_SETUP_INFO__H
20
21
#include <string>
22
23
namespace cvc5 {
24
namespace theory {
25
26
namespace eq {
27
class EqualityEngineNotify;
28
}
29
30
/**
31
 * This is a helper class that encapsulates instructions for how a Theory
32
 * wishes to initialize and setup notifications with its official equality
33
 * engine, e.g. via a notification class (eq::EqualityEngineNotify).
34
 *
35
 * This includes (at a basic level) the arguments to the equality engine
36
 * constructor that theories may wish to modify. This information is determined
37
 * by the Theory during needsEqualityEngine.
38
 */
39
141900
struct EeSetupInfo
40
{
41
141900
  EeSetupInfo()
42
141900
      : d_notify(nullptr), d_constantsAreTriggers(true), d_useMaster(false)
43
  {
44
141900
  }
45
  /** The notification class of the theory */
46
  eq::EqualityEngineNotify* d_notify;
47
  /** The name of the equality engine */
48
  std::string d_name;
49
  /** Constants are triggers */
50
  bool d_constantsAreTriggers;
51
  /**
52
   * Whether we want our state to use the master equality engine. This should
53
   * be true exclusively for the theory of quantifiers.
54
   */
55
  bool d_useMaster;
56
};
57
58
}  // namespace theory
59
}  // namespace cvc5
60
61
#endif /* CVC5__THEORY__EE_SETUP_INFO__H */