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: 16 16 100.0 %
Date: 2025-01-08 11:29:24 Functions: 1 1 100.0 %
Branches: 2 2 100.0 %

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Gereon Kremer, 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                 :            :  * Registration and documentation for all public statistics.
      14                 :            :  */
      15                 :            : 
      16                 :            : #include "util/statistics_public.h"
      17                 :            : 
      18                 :            : #include <cvc5/cvc5_kind.h>
      19                 :            : 
      20                 :            : #include "expr/kind.h"
      21                 :            : #include "theory/inference_id.h"
      22                 :            : #include "theory/theory_id.h"
      23                 :            : #include "util/statistics_registry.h"
      24                 :            : 
      25                 :            : namespace cvc5::internal {
      26                 :            : 
      27                 :     140638 : void registerPublicStatistics(StatisticsRegistry& reg)
      28                 :            : {
      29                 :     140638 :   reg.registerHistogram<TypeConstant>("cvc5::CONSTANT", false);
      30                 :     140638 :   reg.registerHistogram<TypeConstant>("cvc5::VARIABLE", false);
      31                 :     140638 :   reg.registerHistogram<cvc5::Kind>("cvc5::TERM", false);
      32                 :            : 
      33                 :     140638 :   reg.registerValue<std::string>("driver::filename", false);
      34                 :     140638 :   reg.registerTimer("global::totalTime", false);
      35                 :            : 
      36         [ +  + ]:    2109570 :   for (theory::TheoryId id = theory::THEORY_FIRST; id != theory::THEORY_LAST;
      37                 :    1968930 :        ++id)
      38                 :            :   {
      39                 :    1968930 :     std::string prefix = theory::getStatsPrefix(id);
      40                 :    3937860 :     reg.registerHistogram<theory::InferenceId>(prefix + "inferencesConflict",
      41                 :    1968930 :                                                false);
      42                 :    3937860 :     reg.registerHistogram<theory::InferenceId>(prefix + "inferencesFact",
      43                 :    1968930 :                                                false);
      44                 :    3937860 :     reg.registerHistogram<theory::InferenceId>(prefix + "inferencesLemma",
      45                 :    1968930 :                                                false);
      46                 :            :   }
      47                 :     140638 : }
      48                 :            : 
      49                 :            : }  // namespace cvc5::internal

Generated by: LCOV version 1.14