LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/util - statistics_public.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 14 14 100.0 %
Date: 2026-04-26 10:45:53 Functions: 1 1 100.0 %
Branches: 2 2 100.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                 :            :  * Registration and documentation for all public statistics.
      11                 :            :  */
      12                 :            : 
      13                 :            : #include "util/statistics_public.h"
      14                 :            : 
      15                 :            : #include <cvc5/cvc5_kind.h>
      16                 :            : 
      17                 :            : #include "expr/kind.h"
      18                 :            : #include "theory/inference_id.h"
      19                 :            : #include "theory/theory_id.h"
      20                 :            : #include "util/statistics_registry.h"
      21                 :            : 
      22                 :            : namespace cvc5::internal {
      23                 :            : 
      24                 :     153468 : void registerPublicStatistics(StatisticsRegistry& reg)
      25                 :            : {
      26                 :     153468 :   reg.registerHistogram<TypeConstant>("cvc5::CONSTANT", false);
      27                 :     153468 :   reg.registerHistogram<TypeConstant>("cvc5::VARIABLE", false);
      28                 :     153468 :   reg.registerHistogram<cvc5::Kind>("cvc5::TERM", false);
      29                 :            : 
      30                 :     153468 :   reg.registerValue<std::string>("driver::filename", false);
      31                 :     153468 :   reg.registerTimer("global::totalTime", false);
      32                 :            : 
      33         [ +  + ]:    2302020 :   for (theory::TheoryId id = theory::THEORY_FIRST; id != theory::THEORY_LAST;
      34                 :    2148552 :        ++id)
      35                 :            :   {
      36                 :    2148552 :     std::string prefix = theory::getStatsPrefix(id);
      37                 :    2148552 :     reg.registerHistogram<theory::InferenceId>(prefix + "inferencesConflict",
      38                 :            :                                                false);
      39                 :    2148552 :     reg.registerHistogram<theory::InferenceId>(prefix + "inferencesFact",
      40                 :            :                                                false);
      41                 :    2148552 :     reg.registerHistogram<theory::InferenceId>(prefix + "inferencesLemma",
      42                 :            :                                                false);
      43                 :    2148552 :   }
      44                 :     153468 : }
      45                 :            : 
      46                 :            : }  // namespace cvc5::internal

Generated by: LCOV version 1.14