LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/prop - registrar.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 2 100.0 %
Date: 2025-02-28 11:47:17 Functions: 2 3 66.7 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Andrew Reynolds, Liana Hadarean, Aina Niemetz
       4                 :            :  *
       5                 :            :  * This file is part of the cvc5 project.
       6                 :            :  *
       7                 :            :  * Copyright (c) 2009-2025 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::internal {
      27                 :            : namespace prop {
      28                 :            : 
      29                 :            : class Registrar {
      30                 :            : public:
      31                 :      91131 :   virtual ~Registrar() {}
      32                 :            :   /**
      33                 :            :    * Called when a SAT literal for atom n has been allocated in the SAT solver.
      34                 :            :    * @param n The SAT literal to be notified.
      35                 :            :    */
      36                 :            :   virtual void notifySatLiteral(Node n) = 0;
      37                 :            : 
      38                 :            : };/* class Registrar */
      39                 :            : 
      40                 :            : class NullRegistrar : public Registrar {
      41                 :            : public:
      42                 :          2 :  void notifySatLiteral(Node n) override {}
      43                 :            : 
      44                 :            : };/* class NullRegistrar */
      45                 :            : 
      46                 :            : }  // namespace prop
      47                 :            : }  // namespace cvc5::internal
      48                 :            : 
      49                 :            : #endif /* CVC5__PROP__REGISTRAR_H */

Generated by: LCOV version 1.14