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 : 119689 : const char* toString(cvc5::SkolemId id) 21 : : { 22 [ + + ][ + + ]: 119689 : switch (id) [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ - ] 23 : : { 24 : 29 : case cvc5::SkolemId::INTERNAL: return "internal"; 25 : 95355 : 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 : 320 : 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 : 210 : case cvc5::SkolemId::INT_DIV_BY_ZERO: return "int_div_by_zero"; 36 : 129 : 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 : 7525 : case cvc5::SkolemId::HO_DEQ_DIFF: return "ho_deq_diff"; 45 : 6345 : case cvc5::SkolemId::QUANTIFIERS_SKOLEMIZE: 46 : 6345 : 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 : 114 : case cvc5::SkolemId::STRINGS_OCCUR_INDEX: return "strings_occur_index"; 50 : 73 : case cvc5::SkolemId::STRINGS_OCCUR_INDEX_RE: 51 : 73 : return "strings_occur_index_re"; 52 : 66 : case cvc5::SkolemId::STRINGS_OCCUR_LEN_RE: return "strings_occur_len_re"; 53 : 316 : case cvc5::SkolemId::STRINGS_DEQ_DIFF: return "strings_deq_diff"; 54 : 158 : case cvc5::SkolemId::STRINGS_REPLACE_ALL_RESULT: 55 : 158 : return "strings_replace_all_result"; 56 : 92 : case cvc5::SkolemId::STRINGS_ITOS_RESULT: return "strings_itos_result"; 57 : 145 : case cvc5::SkolemId::STRINGS_STOI_RESULT: return "strings_stoi_result"; 58 : 114 : case cvc5::SkolemId::STRINGS_STOI_NON_DIGIT: 59 : 114 : 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 : 442 : 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 : 169 : case cvc5::SkolemId::SETS_CHOOSE: return "sets_choose"; 90 : 1215 : 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