LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/theory/quantifiers/cegqi - instantiator.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 6 6 100.0 %
Date: 2024-08-29 11:49:29 Functions: 2 2 100.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Andrew Reynolds, Mathias Preiner
       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                 :            :  * Implementation of instantiator for counterexample-guided quantifier instantiation.
      14                 :            :  */
      15                 :            : 
      16                 :            : #include "theory/quantifiers/cegqi/instantiator.h"
      17                 :            : 
      18                 :            : using namespace std;
      19                 :            : using namespace cvc5::internal::kind;
      20                 :            : 
      21                 :            : namespace cvc5::internal {
      22                 :            : namespace theory {
      23                 :            : namespace quantifiers {
      24                 :            : 
      25                 :       4896 : Instantiator::Instantiator(Env& env, TypeNode tn) : EnvObj(env), d_type(tn)
      26                 :            : {
      27                 :       4896 :   d_closed_enum_type = tn.isClosedEnumerable();
      28                 :       4896 : }
      29                 :            : 
      30                 :         31 : bool Instantiator::processEqualTerm(CegInstantiator* ci,
      31                 :            :                                     SolvedForm& sf,
      32                 :            :                                     Node pv,
      33                 :            :                                     TermProperties& pv_prop,
      34                 :            :                                     Node n,
      35                 :            :                                     CegInstEffort effort)
      36                 :            : {
      37                 :         31 :   pv_prop.d_type = CEG_TT_EQUAL;
      38                 :         31 :   return ci->constructInstantiationInc(pv, n, pv_prop, sf);
      39                 :            : }
      40                 :            : 
      41                 :            : }  // namespace quantifiers
      42                 :            : }  // namespace theory
      43                 :            : }  // namespace cvc5::internal

Generated by: LCOV version 1.14