LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/theory - care_pair_argument_callback.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 1 100.0 %
Date: 2024-09-28 11:33:24 Functions: 1 2 50.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       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-2024 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                 :            :  * The care pair argument callback.
      14                 :            :  */
      15                 :            : 
      16                 :            : #include "cvc5_private.h"
      17                 :            : 
      18                 :            : #ifndef CVC5__THEORY__CARE_PAIR_ARGUMENT_CALLBACK_H
      19                 :            : #define CVC5__THEORY__CARE_PAIR_ARGUMENT_CALLBACK_H
      20                 :            : 
      21                 :            : #include "expr/node_trie_algorithm.h"
      22                 :            : #include "theory/theory.h"
      23                 :            : 
      24                 :            : namespace cvc5::internal {
      25                 :            : namespace theory {
      26                 :            : 
      27                 :            : /**
      28                 :            :  * The standard callback for computing the care pairs from a node trie.
      29                 :            :  */
      30                 :            : class CarePairArgumentCallback : public NodeTriePathPairProcessCallback
      31                 :            : {
      32                 :            :  public:
      33                 :            :   CarePairArgumentCallback(Theory& t);
      34                 :     244940 :   ~CarePairArgumentCallback() {}
      35                 :            :   /**
      36                 :            :    * Call on the arguments a and b of two function applications we are
      37                 :            :    * computing care pairs for. Returns true if a and b are not already
      38                 :            :    * disequal according to theory combination (Theory::areCareDisequal).
      39                 :            :    */
      40                 :            :   bool considerPath(TNode a, TNode b) override;
      41                 :            :   /**
      42                 :            :    * Called when we have two function applications that do not have pairs
      43                 :            :    * of disequal arguments at any position. We call Theory::processCarePairArgs
      44                 :            :    * to add all relevant care pairs.
      45                 :            :    */
      46                 :            :   void processData(TNode fa, TNode fb) override;
      47                 :            : 
      48                 :            :  private:
      49                 :            :   /** Reference to theory */
      50                 :            :   Theory& d_theory;
      51                 :            : };
      52                 :            : 
      53                 :            : }  // namespace theory
      54                 :            : }  // namespace cvc5::internal
      55                 :            : 
      56                 :            : #endif /* CVC5__THEORY__CARE_ARGUMENT_CALLBACK_H */

Generated by: LCOV version 1.14