LCOV - code coverage report
Current view: top level - buildbot/coverage/build/src/printer - enum_to_string.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 75 76 98.7 %
Date: 2024-09-27 12:14:44 Functions: 1 1 100.0 %
Branches: 58 59 98.3 %

           Branch data     Line data    Source code
       1                 :            : /******************************************************************************
       2                 :            :  * Top contributors (to current version):
       3                 :            :  *   Andrew Reynolds, Aina Niemetz
       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 utilities for printing API enum values.
      14                 :            :  */
      15                 :            : 
      16                 :            : #include "printer/enum_to_string.h"
      17                 :            : 
      18                 :            : namespace cvc5::internal {
      19                 :            : 
      20                 :     118946 : const char* toString(cvc5::SkolemId id)
      21                 :            : {
      22 [ +  + ][ +  + ]:     118946 :   switch (id)
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
         [ +  + ][ +  + ]
            [ +  + ][ - ]
      23                 :            :   {
      24                 :         29 :     case cvc5::SkolemId::INTERNAL: return "internal";
      25                 :      94830 :     case cvc5::SkolemId::PURIFY: return "purify";
      26                 :         53 :     case cvc5::SkolemId::GROUND_TERM: return "ground_term";
      27                 :        686 :     case cvc5::SkolemId::ARRAY_DEQ_DIFF: return "array_deq_diff";
      28                 :        175 :     case cvc5::SkolemId::BV_EMPTY: return "bv_empty";
      29                 :        316 :     case cvc5::SkolemId::DIV_BY_ZERO: return "div_by_zero";
      30                 :         23 :     case cvc5::SkolemId::FP_MIN_ZERO: return "fp_min_zero";
      31                 :         19 :     case cvc5::SkolemId::FP_MAX_ZERO: return "fp_max_zero";
      32                 :         25 :     case cvc5::SkolemId::FP_TO_SBV: return "fp_to_sbv";
      33                 :         23 :     case cvc5::SkolemId::FP_TO_UBV: return "fp_to_ubv";
      34                 :         29 :     case cvc5::SkolemId::FP_TO_REAL: return "fp_to_real";
      35                 :        191 :     case cvc5::SkolemId::INT_DIV_BY_ZERO: return "int_div_by_zero";
      36                 :        121 :     case cvc5::SkolemId::MOD_BY_ZERO: return "mod_by_zero";
      37                 :        119 :     case cvc5::SkolemId::TRANSCENDENTAL_PURIFY:
      38                 :        119 :       return "transcendental_purify";
      39                 :        181 :     case cvc5::SkolemId::TRANSCENDENTAL_PURIFY_ARG:
      40                 :        181 :       return "transcendental_purify_arg";
      41                 :        165 :     case cvc5::SkolemId::TRANSCENDENTAL_SINE_PHASE_SHIFT:
      42                 :        165 :       return "transcendental_sine_phase_shift";
      43                 :       2521 :     case cvc5::SkolemId::SHARED_SELECTOR: return "shared_selector";
      44                 :       7518 :     case cvc5::SkolemId::HO_DEQ_DIFF: return "ho_deq_diff";
      45                 :       6323 :     case cvc5::SkolemId::QUANTIFIERS_SKOLEMIZE:
      46                 :       6323 :       return "quantifiers_skolemize";
      47                 :         88 :     case cvc5::SkolemId::STRINGS_NUM_OCCUR: return "strings_num_occur";
      48                 :         54 :     case cvc5::SkolemId::STRINGS_NUM_OCCUR_RE: return "strings_num_occur_re";
      49                 :         89 :     case cvc5::SkolemId::STRINGS_OCCUR_INDEX: return "strings_occur_index";
      50                 :         55 :     case cvc5::SkolemId::STRINGS_OCCUR_INDEX_RE:
      51                 :         55 :       return "strings_occur_index_re";
      52                 :         54 :     case cvc5::SkolemId::STRINGS_OCCUR_LEN_RE: return "strings_occur_len_re";
      53                 :        352 :     case cvc5::SkolemId::STRINGS_DEQ_DIFF: return "strings_deq_diff";
      54                 :        115 :     case cvc5::SkolemId::STRINGS_REPLACE_ALL_RESULT:
      55                 :        115 :       return "strings_replace_all_result";
      56                 :         72 :     case cvc5::SkolemId::STRINGS_ITOS_RESULT: return "strings_itos_result";
      57                 :        116 :     case cvc5::SkolemId::STRINGS_STOI_RESULT: return "strings_stoi_result";
      58                 :        116 :     case cvc5::SkolemId::STRINGS_STOI_NON_DIGIT:
      59                 :        116 :       return "strings_stoi_non_digit";
      60                 :         57 :     case cvc5::SkolemId::RE_FIRST_MATCH_PRE: return "re_first_match_pre";
      61                 :         56 :     case cvc5::SkolemId::RE_FIRST_MATCH: return "re_first_match";
      62                 :         56 :     case cvc5::SkolemId::RE_FIRST_MATCH_POST: return "re_first_match_post";
      63                 :       1614 :     case cvc5::SkolemId::RE_UNFOLD_POS_COMPONENT:
      64                 :       1614 :       return "re_unfold_pos_component";
      65                 :         53 :     case cvc5::SkolemId::BAGS_CARD_COMBINE: return "bags_card_combine";
      66                 :         52 :     case cvc5::SkolemId::BAGS_DISTINCT_ELEMENTS_UNION_DISJOINT:
      67                 :         52 :       return "bags_distinct_elements_union_disjoint";
      68                 :         25 :     case cvc5::SkolemId::BAGS_CHOOSE: return "bags_choose";
      69                 :         25 :     case cvc5::SkolemId::BAGS_FOLD_CARD: return "bags_fold_card";
      70                 :         25 :     case cvc5::SkolemId::BAGS_FOLD_COMBINE: return "bags_fold_combine";
      71                 :         25 :     case cvc5::SkolemId::BAGS_FOLD_ELEMENTS: return "bags_fold_elements";
      72                 :         25 :     case cvc5::SkolemId::BAGS_FOLD_UNION_DISJOINT:
      73                 :         25 :       return "bags_fold_union_disjoint";
      74                 :         69 :     case cvc5::SkolemId::BAGS_DISTINCT_ELEMENTS:
      75                 :         69 :       return "bags_distinct_elements";
      76                 :         22 :     case cvc5::SkolemId::BAGS_MAP_PREIMAGE_INJECTIVE:
      77                 :         22 :       return "bags_map_preimage_injective";
      78                 :         71 :     case cvc5::SkolemId::BAGS_DISTINCT_ELEMENTS_SIZE:
      79                 :         71 :       return "bags_distinct_elements_size";
      80                 :        109 :     case cvc5::SkolemId::BAGS_MAP_INDEX: return "bags_map_index";
      81                 :         55 :     case cvc5::SkolemId::BAGS_MAP_SUM: return "bags_map_sum";
      82                 :        430 :     case cvc5::SkolemId::BAGS_DEQ_DIFF: return "bags_deq_diff";
      83                 :         44 :     case cvc5::SkolemId::TABLES_GROUP_PART: return "tables_group_part";
      84                 :         76 :     case cvc5::SkolemId::TABLES_GROUP_PART_ELEMENT:
      85                 :         76 :       return "tables_group_part_element";
      86                 :         43 :     case cvc5::SkolemId::RELATIONS_GROUP_PART: return "relations_group_part";
      87                 :         49 :     case cvc5::SkolemId::RELATIONS_GROUP_PART_ELEMENT:
      88                 :         49 :       return "relations_group_part_element";
      89                 :        158 :     case cvc5::SkolemId::SETS_CHOOSE: return "sets_choose";
      90                 :       1189 :     case cvc5::SkolemId::SETS_DEQ_DIFF: return "sets_deq_diff";
      91                 :         23 :     case cvc5::SkolemId::SETS_FOLD_CARD: return "sets_fold_card";
      92                 :         23 :     case cvc5::SkolemId::SETS_FOLD_COMBINE: return "sets_fold_combine";
      93                 :         23 :     case cvc5::SkolemId::SETS_FOLD_ELEMENTS: return "sets_fold_elements";
      94                 :         23 :     case cvc5::SkolemId::SETS_FOLD_UNION: return "sets_fold_union";
      95                 :         49 :     case cvc5::SkolemId::SETS_MAP_DOWN_ELEMENT: return "sets_map_down_element";
      96                 :         19 :     case cvc5::SkolemId::NONE: return "none";
      97                 :          0 :     default: return "?";
      98                 :            :   }
      99                 :            : }
     100                 :            : 
     101                 :            : }  // namespace cvc5::internal

Generated by: LCOV version 1.14