LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/theory/quantifiers - theory_quantifiers.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 2 0.0 %
Date: 2026-04-22 10:35:54 Functions: 0 1 0.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * This file is part of the cvc5 project.
       3                 :            :  *
       4                 :            :  * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS
       5                 :            :  * in the top-level source directory and their institutional affiliations.
       6                 :            :  * All rights reserved.  See the file COPYING in the top-level source
       7                 :            :  * directory for licensing information.
       8                 :            :  * ****************************************************************************
       9                 :            :  *
      10                 :            :  * Theory of quantifiers.
      11                 :            :  */
      12                 :            : 
      13                 :            : #include "cvc5_private.h"
      14                 :            : 
      15                 :            : #ifndef CVC5__THEORY__QUANTIFIERS__THEORY_QUANTIFIERS_H
      16                 :            : #define CVC5__THEORY__QUANTIFIERS__THEORY_QUANTIFIERS_H
      17                 :            : 
      18                 :            : #include "expr/node.h"
      19                 :            : #include "theory/quantifiers/proof_checker.h"
      20                 :            : #include "theory/quantifiers/quantifiers_inference_manager.h"
      21                 :            : #include "theory/quantifiers/quantifiers_registry.h"
      22                 :            : #include "theory/quantifiers/quantifiers_rewriter.h"
      23                 :            : #include "theory/quantifiers/quantifiers_state.h"
      24                 :            : #include "theory/quantifiers/term_registry.h"
      25                 :            : #include "theory/quantifiers_engine.h"
      26                 :            : #include "theory/theory.h"
      27                 :            : #include "theory/valuation.h"
      28                 :            : 
      29                 :            : namespace cvc5::internal {
      30                 :            : namespace theory {
      31                 :            : namespace quantifiers {
      32                 :            : 
      33                 :            : class QuantifiersMacros;
      34                 :            : 
      35                 :            : class TheoryQuantifiers : public Theory
      36                 :            : {
      37                 :            :  public:
      38                 :            :   TheoryQuantifiers(Env& env, OutputChannel& out, Valuation valuation);
      39                 :            :   ~TheoryQuantifiers();
      40                 :            : 
      41                 :            :   //--------------------------------- initialization
      42                 :            :   /** get the official theory rewriter of this theory */
      43                 :            :   TheoryRewriter* getTheoryRewriter() override;
      44                 :            :   /** get the proof checker of this theory */
      45                 :            :   ProofRuleChecker* getProofChecker() override;
      46                 :            :   /** finish initialization */
      47                 :            :   void finishInit() override;
      48                 :            :   /** needs equality engine */
      49                 :            :   bool needsEqualityEngine(EeSetupInfo& esi) override;
      50                 :            :   //--------------------------------- end initialization
      51                 :            : 
      52                 :            :   void preRegisterTerm(TNode n) override;
      53                 :            :   void presolve() override;
      54                 :            :   /**
      55                 :            :    * Preprocess assert, which solves for quantifier macros when enabled.
      56                 :            :    */
      57                 :            :   bool ppAssert(TrustNode tin, TrustSubstitutionMap& outSubstitutions) override;
      58                 :            :   void ppNotifyAssertions(const std::vector<Node>& assertions) override;
      59                 :            :   //--------------------------------- standard check
      60                 :            :   /** Post-check, called after the fact queue of the theory is processed. */
      61                 :            :   void postCheck(Effort level) override;
      62                 :            :   /** Pre-notify fact, return true if processed. */
      63                 :            :   bool preNotifyFact(TNode atom,
      64                 :            :                      bool pol,
      65                 :            :                      TNode fact,
      66                 :            :                      bool isPrereg,
      67                 :            :                      bool isInternal) override;
      68                 :            :   //--------------------------------- end standard check
      69                 :            :   /** Collect model values in m based on the relevant terms given by termSet */
      70                 :            :   bool collectModelValues(TheoryModel* m,
      71                 :            :                           const std::set<Node>& termSet) override;
      72                 :          0 :   std::string identify() const override
      73                 :            :   {
      74                 :          0 :     return std::string("TheoryQuantifiers");
      75                 :            :   }
      76                 :            : 
      77                 :            :  private:
      78                 :            :   /** The theory rewriter for this theory. */
      79                 :            :   QuantifiersRewriter d_rewriter;
      80                 :            :   /** The proof rule checker */
      81                 :            :   QuantifiersProofRuleChecker d_checker;
      82                 :            :   /** The quantifiers state */
      83                 :            :   QuantifiersState d_qstate;
      84                 :            :   /** The quantifiers registry */
      85                 :            :   QuantifiersRegistry d_qreg;
      86                 :            :   /** The term registry */
      87                 :            :   TermRegistry d_treg;
      88                 :            :   /** The quantifiers inference manager */
      89                 :            :   QuantifiersInferenceManager d_qim;
      90                 :            :   /** The quantifiers engine, which lives here */
      91                 :            :   std::unique_ptr<QuantifiersEngine> d_qengine;
      92                 :            :   /** The quantifiers macro module, used for ppAssert. */
      93                 :            :   std::unique_ptr<QuantifiersMacros> d_qmacros;
      94                 :            : }; /* class TheoryQuantifiers */
      95                 :            : 
      96                 :            : }  // namespace quantifiers
      97                 :            : }  // namespace theory
      98                 :            : }  // namespace cvc5::internal
      99                 :            : 
     100                 :            : #endif /* CVC5__THEORY__QUANTIFIERS__THEORY_QUANTIFIERS_H */

Generated by: LCOV version 1.14