LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/theory/strings - model_cons_default.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 1 100.0 %
Date: 2025-01-09 12:37:31 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 default model constructor for strings
      14                 :            :  */
      15                 :            : 
      16                 :            : #include "cvc5_private.h"
      17                 :            : 
      18                 :            : #ifndef CVC5__THEORY__STRINGS__DEFAULT_MODEL_CONS_H
      19                 :            : #define CVC5__THEORY__STRINGS__DEFAULT_MODEL_CONS_H
      20                 :            : 
      21                 :            : #include "smt/env_obj.h"
      22                 :            : #include "theory/strings/model_cons.h"
      23                 :            : 
      24                 :            : namespace cvc5::internal {
      25                 :            : namespace theory {
      26                 :            : namespace strings {
      27                 :            : 
      28                 :            : class SolverState;
      29                 :            : class CoreSolver;
      30                 :            : 
      31                 :            : /**
      32                 :            :  * Default model construction for strings
      33                 :            :  */
      34                 :            : class ModelConsDefault : public ModelCons
      35                 :            : {
      36                 :            :  public:
      37                 :            :   ModelConsDefault(Env& env, SolverState& state, CoreSolver& csolver);
      38                 :      49782 :   virtual ~ModelConsDefault() {}
      39                 :            :   /**
      40                 :            :    * Get string representatives from, which simply takes the representatives
      41                 :            :    * of all terms in termSet.
      42                 :            :    */
      43                 :            :   void getStringRepresentativesFrom(
      44                 :            :       const std::set<Node>& termSet,
      45                 :            :       std::unordered_set<TypeNode>& repTypes,
      46                 :            :       std::map<TypeNode, std::unordered_set<Node>>& repSet,
      47                 :            :       std::vector<Node>& auxEq) override;
      48                 :            :   /**
      49                 :            :    * Separate by length, which separates the equivalence classes in ns
      50                 :            :    * based on the arrangement of their length terms in the equality engine.
      51                 :            :    * It furthermore computes the model value for each of these length
      52                 :            :    * terms based on the valuation class.
      53                 :            :    */
      54                 :            :   void separateByLength(const std::vector<Node>& ns,
      55                 :            :                         std::vector<std::vector<Node>>& cols,
      56                 :            :                         std::vector<Node>& lts) override;
      57                 :            :   /** Get the normal form for n from the core solver */
      58                 :            :   std::vector<Node> getNormalForm(Node n) override;
      59                 :            : 
      60                 :            :  protected:
      61                 :            :   /** The solver state object */
      62                 :            :   SolverState& d_state;
      63                 :            :   /** The core solver */
      64                 :            :   CoreSolver& d_csolver;
      65                 :            : };
      66                 :            : 
      67                 :            : }  // namespace strings
      68                 :            : }  // namespace theory
      69                 :            : }  // namespace cvc5::internal
      70                 :            : 
      71                 :            : #endif /* CVC5__THEORY__STRINGS__MODEL_CONS_H */

Generated by: LCOV version 1.14