GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/prop/registrar.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
 *   Mathias Preiner, Liana Hadarean, 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
 * Class to encapsulate preregistration duties
14
 *
15
 * This class permits the CNF stream implementation to reach into the theory
16
 * engine to preregister only those terms with an associated SAT literal (at
17
 * the point when they get the SAT literal), without having to refer to the
18
 * TheoryEngine class directly.
19
 */
20
21
#include "cvc5_private.h"
22
23
#ifndef CVC5__PROP__REGISTRAR_H
24
#define CVC5__PROP__REGISTRAR_H
25
26
namespace cvc5 {
27
namespace prop {
28
29
18952
class Registrar {
30
public:
31
18952
  virtual ~Registrar() {}
32
  virtual void preRegister(Node n) = 0;
33
34
};/* class Registrar */
35
36
28281
class NullRegistrar : public Registrar {
37
public:
38
276433
 void preRegister(Node n) override {}
39
40
};/* class NullRegistrar */
41
42
}  // namespace prop
43
}  // namespace cvc5
44
45
#endif /* CVC5__PROP__REGISTRAR_H */