/******************************************************************************
 * Top contributors (to current version):
 *   Andrew Reynolds, Gereon Kremer, Mudathir Mohamed
 *
 * This file is part of the cvc5 project.
 *
 * Copyright (c) 2009-2025 by the authors listed in the file AUTHORS
 * in the top-level source directory and their institutional affiliations.
 * All rights reserved.  See the file COPYING in the top-level source
 * directory for licensing information.
 * ****************************************************************************
 *
 * Implementation of inference enumeration.
 */

#include "theory/inference_id.h"

#include <iostream>
#include "proof/proof_checker.h"
#include "util/rational.h"

using namespace cvc5::internal::kind;

namespace cvc5::internal {
namespace theory {

const char* toString(InferenceId i)
{
  switch (i)
  {
    case InferenceId::NONE: return "NONE";
    case InferenceId::INPUT: return "INPUT";
    case InferenceId::EQ_CONSTANT_MERGE: return "EQ_CONSTANT_MERGE";
    case InferenceId::COMBINATION_SPLIT: return "COMBINATION_SPLIT";
    case InferenceId::CONFLICT_REWRITE_LIT: return "CONFLICT_REWRITE_LIT";
    case InferenceId::EXPLAINED_PROPAGATION: return "EXPLAINED_PROPAGATION";
    case InferenceId::THEORY_PP_SKOLEM_LEM: return "THEORY_PP_SKOLEM_LEM";
    case InferenceId::EXTT_SIMPLIFY: return "EXTT_SIMPLIFY";
    case InferenceId::ARITH_BLACK_BOX: return "ARITH_BLACK_BOX";
    case InferenceId::ARITH_CONF_EQ: return "ARITH_CONF_EQ";
    case InferenceId::ARITH_CONF_LOWER: return "ARITH_CONF_LOWER";
    case InferenceId::ARITH_CONF_TRICHOTOMY: return "ARITH_CONF_TRICHOTOMY";
    case InferenceId::ARITH_CONF_UPPER: return "ARITH_CONF_UPPER";
    case InferenceId::ARITH_CONF_SIMPLEX: return "ARITH_CONF_SIMPLEX";
    case InferenceId::ARITH_CONF_SOI_SIMPLEX: return "ARITH_CONF_SOI_SIMPLEX";
    case InferenceId::ARITH_CONF_FACT_QUEUE: return "ARITH_CONF_FACT_QUEUE";
    case InferenceId::ARITH_CONF_BRANCH_CUT: return "ARITH_CONF_BRANCH_CUT";
    case InferenceId::ARITH_CONF_REPLAY_ASSERT:
      return "ARITH_CONF_REPLAY_ASSERT";
    case InferenceId::ARITH_CONF_REPLAY_LOG: return "ARITH_CONF_REPLAY_LOG";
    case InferenceId::ARITH_CONF_REPLAY_LOG_REC:
      return "ARITH_CONF_REPLAY_LOG_REC";
    case InferenceId::ARITH_CONF_UNATE_PROP: return "ARITH_CONF_UNATE_PROP";
    case InferenceId::ARITH_SPLIT_DEQ: return "ARITH_SPLIT_DEQ";
    case InferenceId::ARITH_TIGHTEN_CEIL: return "ARITH_TIGHTEN_CEIL";
    case InferenceId::ARITH_TIGHTEN_FLOOR: return "ARITH_TIGHTEN_FLOOR";
    case InferenceId::ARITH_APPROX_CUT: return "ARITH_APPROX_CUT";
    case InferenceId::ARITH_BB_LEMMA: return "ARITH_BB_LEMMA";
    case InferenceId::ARITH_DIO_CUT: return "ARITH_DIO_CUT";
    case InferenceId::ARITH_DIO_DECOMPOSITION: return "ARITH_DIO_DECOMPOSITION";
    case InferenceId::ARITH_UNATE: return "ARITH_UNATE";
    case InferenceId::ARITH_ROW_IMPL: return "ARITH_ROW_IMPL";
    case InferenceId::ARITH_SPLIT_FOR_NL_MODEL:
      return "ARITH_SPLIT_FOR_NL_MODEL";
    case InferenceId::ARITH_DEMAND_RESTART: return "ARITH_DEMAND_RESTART";
    case InferenceId::ARITH_PP_ELIM_OPERATORS: return "ARITH_PP_ELIM_OPERATORS";
    case InferenceId::ARITH_PP_ELIM_OPERATORS_LEMMA:
      return "ARITH_PP_ELIM_OPERATORS_LEMMA";
    case InferenceId::ARITH_NL_CONGRUENCE: return "ARITH_NL_CONGRUENCE";
    case InferenceId::ARITH_NL_SHARED_TERM_SPLIT:
      return "ARITH_NL_SHARED_TERM_SPLIT";
    case InferenceId::ARITH_NL_CM_QUADRATIC_EQ:
      return "ARITH_NL_CM_QUADRATIC_EQ";
    case InferenceId::ARITH_NL_SPLIT_ZERO: return "ARITH_NL_SPLIT_ZERO";
    case InferenceId::ARITH_NL_SIGN: return "ARITH_NL_SIGN";
    case InferenceId::ARITH_NL_COMPARISON: return "ARITH_NL_COMPARISON";
    case InferenceId::ARITH_NL_INFER_BOUNDS: return "ARITH_NL_INFER_BOUNDS";
    case InferenceId::ARITH_NL_INFER_BOUNDS_NT:
      return "ARITH_NL_INFER_BOUNDS_NT";
    case InferenceId::ARITH_NL_FACTOR: return "ARITH_NL_FACTOR";
    case InferenceId::ARITH_NL_RES_INFER_BOUNDS:
      return "ARITH_NL_RES_INFER_BOUNDS";
    case InferenceId::ARITH_NL_TANGENT_PLANE: return "ARITH_NL_TANGENT_PLANE";
    case InferenceId::ARITH_NL_FLATTEN_MON: return "ARITH_NL_FLATTEN_MON";
    case InferenceId::ARITH_NL_T_SINE_SYMM: return "ARITH_NL_T_SINE_SYMM";
    case InferenceId::ARITH_NL_T_SINE_BOUNDARY_REDUCE:
      return "ARITH_NL_T_SINE_BOUNDARY_REDUCE";
    case InferenceId::ARITH_NL_T_PURIFY_ARG: return "ARITH_NL_T_PURIFY_ARG";
    case InferenceId::ARITH_NL_T_PURIFY_ARG_PHASE_SHIFT:
      return "ARITH_NL_T_PURIFY_ARG_PHASE_SHIFT";
    case InferenceId::ARITH_NL_T_INIT_REFINE: return "ARITH_NL_T_INIT_REFINE";
    case InferenceId::ARITH_NL_T_PI_BOUND: return "ARITH_NL_T_PI_BOUND";
    case InferenceId::ARITH_NL_T_MONOTONICITY: return "ARITH_NL_T_MONOTONICITY";
    case InferenceId::ARITH_NL_T_SECANT: return "ARITH_NL_T_SECANT";
    case InferenceId::ARITH_NL_T_TANGENT: return "ARITH_NL_T_TANGENT";
    case InferenceId::ARITH_NL_IAND_INIT_REFINE:
      return "ARITH_NL_IAND_INIT_REFINE";
    case InferenceId::ARITH_NL_IAND_VALUE_REFINE:
      return "ARITH_NL_IAND_VALUE_REFINE";
    case InferenceId::ARITH_NL_IAND_SUM_REFINE:
      return "ARITH_NL_IAND_SUM_REFINE";
    case InferenceId::ARITH_NL_IAND_BITWISE_REFINE:
      return "ARITH_NL_IAND_BITWISE_REFINE";
    case InferenceId::ARITH_NL_PIAND_INIT_REFINE:
      return "ARITH_NL_PIAND_INIT_REFINE";
    case InferenceId::ARITH_NL_POW2_INIT_REFINE:
      return "ARITH_NL_POW2_INIT_REFINE";
    case InferenceId::ARITH_NL_POW2_VALUE_REFINE:
      return "ARITH_NL_POW2_VALUE_REFINE";
    case InferenceId::ARITH_NL_POW2_MONOTONE_REFINE:
      return "ARITH_NL_POW2_MONOTONE_REFINE";
    case InferenceId::ARITH_NL_POW2_NEG_REFINE:
      return "ARITH_NL_POW2_NEG_REFINE";
    case InferenceId::ARITH_NL_POW2_DIV0_CASE_REFINE:
      return "ARITH_NL_POW2_DIV0_CASE_REFINE";
    case InferenceId::ARITH_NL_POW2_LOWER_BOUND_CASE_REFINE:
      return "ARITH_NL_POW2_LOWER_BOUND_CASE_REFINE";
    case InferenceId::ARITH_NL_COVERING_CONFLICT: return "ARITH_NL_COVERING_CONFLICT";
    case InferenceId::ARITH_NL_COVERING_EXCLUDED_INTERVAL:
      return "ARITH_NL_COVERING_EXCLUDED_INTERVAL";
    case InferenceId::ARITH_NL_ICP_CONFLICT: return "ARITH_NL_ICP_CONFLICT";
    case InferenceId::ARITH_NL_ICP_PROPAGATION:
      return "ARITH_NL_ICP_PROPAGATION";
    case InferenceId::FF_LEMMA: return "FF_LEMMA";

    case InferenceId::ARRAYS_EXT: return "ARRAYS_EXT";
    case InferenceId::ARRAYS_READ_OVER_WRITE: return "ARRAYS_READ_OVER_WRITE";
    case InferenceId::ARRAYS_READ_OVER_WRITE_1: return "ARRAYS_READ_OVER_WRITE_1";
    case InferenceId::ARRAYS_READ_OVER_WRITE_CONTRA: return "ARRAYS_READ_OVER_WRITE_CONTRA";
    case InferenceId::ARRAYS_CONST_ARRAY_DEFAULT:
      return "ARRAYS_CONST_ARRAY_DEFAULT";
    case InferenceId::ARRAYS_EQ_TAUTOLOGY: return "ARRAYS_EQ_TAUTOLOGY";

    case InferenceId::BAGS_NON_NEGATIVE_COUNT: return "BAGS_NON_NEGATIVE_COUNT";
    case InferenceId::BAGS_BAG_MAKE: return "BAGS_BAG_MAKE";
    case InferenceId::BAGS_BAG_MAKE_SPLIT: return "BAGS_BAG_MAKE_SPLIT";
    case InferenceId::BAGS_SKOLEM: return "BAGS_SKOLEM";
    case InferenceId::BAGS_EQUALITY: return "BAGS_EQUALITY";
    case InferenceId::BAGS_CG_SPLIT: return "BAGS_CG_SPLIT";
    case InferenceId::BAGS_DISEQUALITY: return "BAGS_DISEQUALITY";
    case InferenceId::BAGS_EMPTY: return "BAGS_EMPTY";
    case InferenceId::BAGS_UNION_DISJOINT: return "BAGS_UNION_DISJOINT";
    case InferenceId::BAGS_UNION_MAX: return "BAGS_UNION_MAX";
    case InferenceId::BAGS_INTERSECTION_MIN: return "BAGS_INTERSECTION_MIN";
    case InferenceId::BAGS_DIFFERENCE_SUBTRACT:
      return "BAGS_DIFFERENCE_SUBTRACT";
    case InferenceId::BAGS_DIFFERENCE_REMOVE: return "BAGS_DIFFERENCE_REMOVE";
    case InferenceId::BAGS_SETOF: return "BAGS_SETOF";
    case InferenceId::BAGS_MAP_DOWN: return "BAGS_MAP_DOWN";
    case InferenceId::BAGS_MAP_DOWN_INJECTIVE: return "BAGS_MAP_DOWN_INJECTIVE";
    case InferenceId::BAGS_MAP_UP1: return "BAGS_MAP_UP1";
    case InferenceId::BAGS_MAP_UP2: return "BAGS_MAP_UP2";
    case InferenceId::BAGS_FILTER_DOWN: return "BAGS_FILTER_DOWN";
    case InferenceId::BAGS_FILTER_UP: return "BAGS_FILTER_UP";
    case InferenceId::BAGS_FOLD: return "BAGS_FOLD";
    case InferenceId::BAGS_CARD: return "BAGS_CARD";
    case InferenceId::BAGS_CARD_EMPTY: return "BAGS_CARD_EMPTY";
    case InferenceId::TABLES_PRODUCT_UP: return "TABLES_PRODUCT_UP";
    case InferenceId::TABLES_PRODUCT_DOWN: return "TABLES_PRODUCT_DOWN";
    case InferenceId::TABLES_JOIN_UP: return "TABLES_JOIN_UP";
    case InferenceId::TABLES_JOIN_DOWN: return "TABLES_JOIN_DOWN";
    case InferenceId::TABLES_GROUP_NOT_EMPTY: return "TABLES_GROUP_NOT_EMPTY";
    case InferenceId::TABLES_GROUP_UP1: return "TABLES_GROUP_UP1";
    case InferenceId::TABLES_GROUP_UP2: return "TABLES_GROUP_UP2";
    case InferenceId::TABLES_GROUP_DOWN: return "TABLES_GROUP_DOWN";
    case InferenceId::TABLES_GROUP_PART_COUNT: return "TABLES_GROUP_PART_COUNT";
    case InferenceId::TABLES_GROUP_SAME_PROJECTION:
      return "TABLES_GROUP_SAME_PROJECTION";
    case InferenceId::TABLES_GROUP_SAME_PART: return "TABLES_GROUP_SAME_PART";

    case InferenceId::BV_BITBLAST_CONFLICT: return "BV_BITBLAST_CONFLICT";
    case InferenceId::BV_BITBLAST_INTERNAL_EAGER_LEMMA:
      return "BV_BITBLAST_EAGER_LEMMA";
    case InferenceId::BV_BITBLAST_INTERNAL_BITBLAST_LEMMA:
      return "BV_BITBLAST_INTERNAL_BITBLAST_LEMMA";
    case InferenceId::BV_LAYERED_CONFLICT: return "BV_LAYERED_CONFLICT";
    case InferenceId::BV_LAYERED_LEMMA: return "BV_LAYERED_LEMMA";
    case InferenceId::BV_EXTF_LEMMA: return "BV_EXTF_LEMMA";
    case InferenceId::BV_EXTF_COLLAPSE: return "BV_EXTF_COLLAPSE";

    case InferenceId::DATATYPES_PURIFY: return "DATATYPES_PURIFY";
    case InferenceId::DATATYPES_UNIF: return "DATATYPES_UNIF";
    case InferenceId::DATATYPES_INST: return "DATATYPES_INST";
    case InferenceId::DATATYPES_SPLIT: return "DATATYPES_SPLIT";
    case InferenceId::DATATYPES_BINARY_SPLIT: return "DATATYPES_BINARY_SPLIT";
    case InferenceId::DATATYPES_LABEL_EXH: return "DATATYPES_LABEL_EXH";
    case InferenceId::DATATYPES_COLLAPSE_SEL: return "DATATYPES_COLLAPSE_SEL";
    case InferenceId::DATATYPES_CLASH_CONFLICT:
      return "DATATYPES_CLASH_CONFLICT";
    case InferenceId::DATATYPES_TESTER_CONFLICT:
      return "DATATYPES_TESTER_CONFLICT";
    case InferenceId::DATATYPES_TESTER_MERGE_CONFLICT:
      return "DATATYPES_TESTER_MERGE_CONFLICT";
    case InferenceId::DATATYPES_BISIMILAR: return "DATATYPES_BISIMILAR";
    case InferenceId::DATATYPES_REC_SINGLETON_EQ:
      return "DATATYPES_REC_SINGLETON_EQ";
    case InferenceId::DATATYPES_REC_SINGLETON_FORCE_DEQ:
      return "DATATYPES_REC_SINGLETON_FORCE_DEQ";
    case InferenceId::DATATYPES_CYCLE: return "DATATYPES_CYCLE";
    case InferenceId::DATATYPES_SIZE_POS: return "DATATYPES_SIZE_POS";
    case InferenceId::DATATYPES_HEIGHT_ZERO: return "DATATYPES_HEIGHT_ZERO";
    case InferenceId::DATATYPES_SYGUS_SYM_BREAK:
      return "DATATYPES_SYGUS_SYM_BREAK";
    case InferenceId::DATATYPES_SYGUS_CDEP_SYM_BREAK:
      return "DATATYPES_SYGUS_CDEP_SYM_BREAK";
    case InferenceId::DATATYPES_SYGUS_ENUM_SYM_BREAK:
      return "DATATYPES_SYGUS_ENUM_SYM_BREAK";
    case InferenceId::DATATYPES_SYGUS_SIMPLE_SYM_BREAK:
      return "DATATYPES_SYGUS_SIMPLE_SYM_BREAK";
    case InferenceId::DATATYPES_SYGUS_FAIR_SIZE:
      return "DATATYPES_SYGUS_FAIR_SIZE";
    case InferenceId::DATATYPES_SYGUS_FAIR_SIZE_CONFLICT:
      return "DATATYPES_SYGUS_FAIR_SIZE_CONFLICT";
    case InferenceId::DATATYPES_SYGUS_VAR_AGNOSTIC:
      return "DATATYPES_SYGUS_VAR_AGNOSTIC";
    case InferenceId::DATATYPES_SYGUS_SIZE_CORRECTION:
      return "DATATYPES_SYGUS_SIZE_CORRECTION";
    case InferenceId::DATATYPES_SYGUS_VALUE_CORRECTION:
      return "DATATYPES_SYGUS_VALUE_CORRECTION";
    case InferenceId::DATATYPES_SYGUS_MT_BOUND:
      return "DATATYPES_SYGUS_MT_BOUND";
    case InferenceId::DATATYPES_SYGUS_MT_POS: return "DATATYPES_SYGUS_MT_POS";

    case InferenceId::FP_PREPROCESS: return "FP_PREPROCESS";
    case InferenceId::FP_EQUATE_TERM: return "FP_EQUATE_TERM";
    case InferenceId::FP_REGISTER_TERM: return "FP_REGISTER_TERM";

    case InferenceId::QUANTIFIERS_INST_E_MATCHING:
      return "QUANTIFIERS_INST_E_MATCHING";
    case InferenceId::QUANTIFIERS_INST_E_MATCHING_SIMPLE:
      return "QUANTIFIERS_INST_E_MATCHING_SIMPLE";
    case InferenceId::QUANTIFIERS_INST_E_MATCHING_MT:
      return "QUANTIFIERS_INST_E_MATCHING_MT";
    case InferenceId::QUANTIFIERS_INST_E_MATCHING_MTL:
      return "QUANTIFIERS_INST_E_MATCHING_MTL";
    case InferenceId::QUANTIFIERS_INST_E_MATCHING_HO:
      return "QUANTIFIERS_INST_E_MATCHING_HO";
    case InferenceId::QUANTIFIERS_INST_E_MATCHING_VAR_GEN:
      return "QUANTIFIERS_INST_E_MATCHING_VAR_GEN";
    case InferenceId::QUANTIFIERS_INST_E_MATCHING_RELATIONAL:
      return "QUANTIFIERS_INST_E_MATCHING_RELATIONAL";
    case InferenceId::QUANTIFIERS_INST_CBQI_CONFLICT:
      return "QUANTIFIERS_INST_CBQI_CONFLICT";
    case InferenceId::QUANTIFIERS_INST_CBQI_PROP:
      return "QUANTIFIERS_INST_CBQI_PROP";
    case InferenceId::QUANTIFIERS_INST_SUB_CONFLICT:
      return "QUANTIFIERS_INST_SUB_CONFLICT";
    case InferenceId::QUANTIFIERS_SUB_UC: return "QUANTIFIERS_SUB_UC";
    case InferenceId::QUANTIFIERS_INST_FMF_EXH:
      return "QUANTIFIERS_INST_FMF_EXH";
    case InferenceId::QUANTIFIERS_INST_FMF_FMC:
      return "QUANTIFIERS_INST_FMF_FMC";
    case InferenceId::QUANTIFIERS_INST_FMF_FMC_EXH:
      return "QUANTIFIERS_INST_FMF_FMC_EXH";
    case InferenceId::QUANTIFIERS_INST_CEGQI: return "QUANTIFIERS_INST_CEGQI";
    case InferenceId::QUANTIFIERS_INST_SYQI: return "QUANTIFIERS_INST_SYQI";
    case InferenceId::QUANTIFIERS_INST_MBQI: return "QUANTIFIERS_INST_MBQI";
    case InferenceId::QUANTIFIERS_INST_MBQI_ENUM:
      return "QUANTIFIERS_INST_MBQI_ENUM";
    case InferenceId::QUANTIFIERS_INST_ENUM: return "QUANTIFIERS_INST_ENUM";
    case InferenceId::QUANTIFIERS_INST_POOL: return "QUANTIFIERS_INST_POOL";
    case InferenceId::QUANTIFIERS_INST_POOL_TUPLE:
      return "QUANTIFIERS_INST_POOL_TUPLE";
    case InferenceId::QUANTIFIERS_BINT_PROXY: return "QUANTIFIERS_BINT_PROXY";
    case InferenceId::QUANTIFIERS_BINT_MIN_NG: return "QUANTIFIERS_BINT_MIN_NG";
    case InferenceId::QUANTIFIERS_CEGQI_CEX: return "QUANTIFIERS_CEGQI_CEX";
    case InferenceId::QUANTIFIERS_CEGQI_CEX_AUX:
      return "QUANTIFIERS_CEGQI_CEX_AUX";
    case InferenceId::QUANTIFIERS_CEGQI_NESTED_QE:
      return "QUANTIFIERS_CEGQI_NESTED_QE";
    case InferenceId::QUANTIFIERS_CEGQI_CEX_DEP:
      return "QUANTIFIERS_CEGQI_CEX_DEP";
    case InferenceId::QUANTIFIERS_CEGQI_VTS_LB_DELTA:
      return "QUANTIFIERS_CEGQI_VTS_LB_DELTA";
    case InferenceId::QUANTIFIERS_CEGQI_VTS_UB_DELTA:
      return "QUANTIFIERS_CEGQI_VTS_UB_DELTA";
    case InferenceId::QUANTIFIERS_CEGQI_VTS_LB_INF:
      return "QUANTIFIERS_CEGQI_VTS_LB_INF";
    case InferenceId::QUANTIFIERS_ORACLE_INTERFACE:
      return "QUANTIFIERS_ORACLE_INTERFACE";
    case InferenceId::QUANTIFIERS_ORACLE_PURIFY_SUBS:
      return "QUANTIFIERS_ORACLE_PURIFY_SUBS";
    case InferenceId::QUANTIFIERS_SYQI_CEX: return "QUANTIFIERS_SYQI_CEX";
    case InferenceId::QUANTIFIERS_SYQI_EVAL_UNFOLD:
      return "QUANTIFIERS_SYQI_EVAL_UNFOLD";
    case InferenceId::QUANTIFIERS_SYGUS_ENUM_ACTIVE_GUARD_SPLIT:
      return "QUANTIFIERS_SYGUS_ENUM_ACTIVE_GUARD_SPLIT";
    case InferenceId::QUANTIFIERS_SYGUS_ACTIVE_GEN_EXCLUDE_CURRENT:
      return "QUANTIFIERS_SYGUS_ACTIVE_GEN_EXCLUDE_CURRENT";
    case InferenceId::QUANTIFIERS_SYGUS_STREAM_EXCLUDE_CURRENT:
      return "QUANTIFIERS_SYGUS_STREAM_EXCLUDE_CURRENT";
    case InferenceId::QUANTIFIERS_SYGUS_INC_EXCLUDE_CURRENT:
      return "QUANTIFIERS_SYGUS_INC_EXCLUDE_CURRENT";
    case InferenceId::QUANTIFIERS_SYGUS_SC_EXCLUDE_CURRENT:
      return "QUANTIFIERS_SYGUS_SC_EXCLUDE_CURRENT";
    case InferenceId::QUANTIFIERS_SYGUS_NO_VERIFY_EXCLUDE_CURRENT:
      return "QUANTIFIERS_SYGUS_NO_VERIFY_EXCLUDE_CURRENT";
    case InferenceId::QUANTIFIERS_SYGUS_REPEAT_CEX_EXCLUDE_CURRENT:
      return "QUANTIFIERS_SYGUS_REPEAT_CEX_EXCLUDE_CURRENT";
    case InferenceId::QUANTIFIERS_SYGUS_EXAMPLE_INFER_CONTRA:
      return "QUANTIFIERS_SYGUS_EXAMPLE_INFER_CONTRA";
    case InferenceId::QUANTIFIERS_SYGUS_SI_INFEASIBLE:
      return "QUANTIFIERS_SYGUS_SI_INFEASIBLE";
    case InferenceId::QUANTIFIERS_SYGUS_UNIF_PI_INTER_ENUM_SB:
      return "QUANTIFIERS_SYGUS_UNIF_PI_INTER_ENUM_SB";
    case InferenceId::QUANTIFIERS_SYGUS_UNIF_PI_SEPARATION:
      return "QUANTIFIERS_SYGUS_UNIF_PI_SEPARATION";
    case InferenceId::QUANTIFIERS_SYGUS_UNIF_PI_FAIR_SIZE:
      return "QUANTIFIERS_SYGUS_UNIF_PI_FAIR_SIZE";
    case InferenceId::QUANTIFIERS_SYGUS_UNIF_PI_REM_OPS:
      return "QUANTIFIERS_SYGUS_UNIF_PI_REM_OPS";
    case InferenceId::QUANTIFIERS_SYGUS_UNIF_PI_ENUM_SB:
      return "QUANTIFIERS_SYGUS_UNIF_PI_ENUM_SB";
    case InferenceId::QUANTIFIERS_SYGUS_UNIF_PI_DOMAIN:
      return "QUANTIFIERS_SYGUS_UNIF_PI_DOMAIN";
    case InferenceId::QUANTIFIERS_SYGUS_UNIF_PI_COND_EXCLUDE:
      return "QUANTIFIERS_SYGUS_UNIF_PI_COND_EXCLUDE";
    case InferenceId::QUANTIFIERS_SYGUS_UNIF_PI_REFINEMENT:
      return "QUANTIFIERS_SYGUS_UNIF_PI_REFINEMENT";
    case InferenceId::QUANTIFIERS_SYGUS_CEGIS_UCL_SYM_BREAK:
      return "QUANTIFIERS_SYGUS_CEGIS_UCL_SYM_BREAK";
    case InferenceId::QUANTIFIERS_SYGUS_CEGIS_UCL_EXCLUDE:
      return "QUANTIFIERS_SYGUS_CEGIS_UCL_EXCLUDE";
    case InferenceId::QUANTIFIERS_SYGUS_REPAIR_CONST_EXCLUDE:
      return "QUANTIFIERS_SYGUS_REPAIR_CONST_EXCLUDE";
    case InferenceId::QUANTIFIERS_SYGUS_CEGIS_REFINE:
      return "QUANTIFIERS_SYGUS_CEGIS_REFINE";
    case InferenceId::QUANTIFIERS_SYGUS_CEGIS_REFINE_SAMPLE:
      return "QUANTIFIERS_SYGUS_CEGIS_REFINE_SAMPLE";
    case InferenceId::QUANTIFIERS_SYGUS_REFINE_EVAL:
      return "QUANTIFIERS_SYGUS_REFINE_EVAL";
    case InferenceId::QUANTIFIERS_SYGUS_EVAL_UNFOLD:
      return "QUANTIFIERS_SYGUS_EVAL_UNFOLD";
    case InferenceId::QUANTIFIERS_SYGUS_PBE_EXCLUDE:
      return "QUANTIFIERS_SYGUS_PBE_EXCLUDE";
    case InferenceId::QUANTIFIERS_SYGUS_PBE_CONSTRUCT_SOL:
      return "QUANTIFIERS_SYGUS_PBE_CONSTRUCT_SOL";
    case InferenceId::QUANTIFIERS_SYGUS_COMPLETE_ENUM:
      return "QUANTIFIERS_SYGUS_COMPLETE_ENUM";
    case InferenceId::QUANTIFIERS_SYGUS_SC_INFEASIBLE:
      return "QUANTIFIERS_SYGUS_SC_INFEASIBLE";
    case InferenceId::QUANTIFIERS_SYGUS_NO_WF_GRAMMAR:
      return "QUANTIFIERS_SYGUS_NO_WF_GRAMMAR";
    case InferenceId::QUANTIFIERS_DSPLIT: return "QUANTIFIERS_DSPLIT";
    case InferenceId::QUANTIFIERS_CONJ_GEN_SPLIT:
      return "QUANTIFIERS_CONJ_GEN_SPLIT";
    case InferenceId::QUANTIFIERS_CONJ_GEN_GT_ENUM:
      return "QUANTIFIERS_CONJ_GEN_GT_ENUM";
    case InferenceId::QUANTIFIERS_SKOLEMIZE: return "QUANTIFIERS_SKOLEMIZE";
    case InferenceId::QUANTIFIERS_REDUCE_ALPHA_EQ:
      return "QUANTIFIERS_REDUCE_ALPHA_EQ";
    case InferenceId::QUANTIFIERS_HO_MATCH_PRED:
      return "QUANTIFIERS_HO_MATCH_PRED";
    case InferenceId::QUANTIFIERS_HO_PURIFY: return "QUANTIFIERS_HO_PURIFY";
    case InferenceId::QUANTIFIERS_PARTIAL_TRIGGER_REDUCE:
      return "QUANTIFIERS_PARTIAL_TRIGGER_REDUCE";
    case InferenceId::QUANTIFIERS_GT_PURIFY: return "QUANTIFIERS_GT_PURIFY";
    case InferenceId::QUANTIFIERS_TDB_DEQ_CONG:
      return "QUANTIFIERS_TDB_DEQ_CONG";
    case InferenceId::QUANTIFIERS_CEGQI_WITNESS:
      return "QUANTIFIERS_CEGQI_WITNESS";

    case InferenceId::SEP_PTO_NEG_PROP: return "SEP_PTO_NEG_PROP";
    case InferenceId::SEP_PTO_PROP: return "SEP_PTO_PROP";
    case InferenceId::SEP_LABEL_INTRO: return "SEP_LABEL_INTRO";
    case InferenceId::SEP_LABEL_DEF: return "SEP_LABEL_DEF";
    case InferenceId::SEP_EMP: return "SEP_EMP";
    case InferenceId::SEP_POS_REDUCTION: return "SEP_POS_REDUCTION";
    case InferenceId::SEP_NEG_REDUCTION: return "SEP_NEG_REDUCTION";
    case InferenceId::SEP_REFINEMENT: return "SEP_REFINEMENT";
    case InferenceId::SEP_NIL_NOT_IN_HEAP: return "SEP_NIL_NOT_IN_HEAP";
    case InferenceId::SEP_SYM_BREAK: return "SEP_SYM_BREAK";
    case InferenceId::SEP_WITNESS_FINITE_DATA: return "SEP_WITNESS_FINITE_DATA";
    case InferenceId::SEP_DISTINCT_REF: return "SEP_DISTINCT_REF";
    case InferenceId::SEP_REF_BOUND: return "SEP_REF_BOUND";

    case InferenceId::SETS_SKOLEM: return "SETS_SKOLEM";
    case InferenceId::SETS_CG_SPLIT: return "SETS_CG_SPLIT";
    case InferenceId::SETS_COMPREHENSION: return "SETS_COMPREHENSION";
    case InferenceId::SETS_DEQ: return "SETS_DEQ";
    case InferenceId::SETS_DOWN_CLOSURE: return "SETS_DOWN_CLOSURE";
    case InferenceId::SETS_EQ_CONFLICT: return "SETS_EQ_CONFLICT";
    case InferenceId::SETS_EQ_MEM: return "SETS_EQ_MEM";
    case InferenceId::SETS_EQ_MEM_CONFLICT: return "SETS_EQ_MEM_CONFLICT";
    case InferenceId::SETS_FILTER_DOWN: return "SETS_FILTER_DOWN";
    case InferenceId::SETS_FILTER_UP: return "SETS_FILTER_UP";
    case InferenceId::SETS_FOLD: return "SETS_FOLD";
    case InferenceId::SETS_MAP_DOWN_POSITIVE: return "SETS_MAP_DOWN_POSITIVE";
    case InferenceId::SETS_MAP_UP: return "SETS_MAP_UP";
    case InferenceId::SETS_MEM_EQ: return "SETS_MEM_EQ";
    case InferenceId::SETS_MEM_EQ_CONFLICT: return "SETS_MEM_EQ_CONFLICT";
    case InferenceId::SETS_PROXY: return "SETS_PROXY";
    case InferenceId::SETS_PROXY_SINGLETON: return "SETS_PROXY_SINGLETON";
    case InferenceId::SETS_SINGLETON_EQ: return "SETS_SINGLETON_EQ";
    case InferenceId::SETS_UP_CLOSURE: return "SETS_UP_CLOSURE";
    case InferenceId::SETS_UP_CLOSURE_2: return "SETS_UP_CLOSURE_2";
    case InferenceId::SETS_UP_UNIV: return "SETS_UP_UNIV";
    case InferenceId::SETS_CARD_SPLIT_EMPTY: return "SETS_CARD_SPLIT_EMPTY";
    case InferenceId::SETS_CARD_SPLIT_EQ: return "SETS_CARD_SPLIT_EQ";
    case InferenceId::SETS_CARD_CYCLE: return "SETS_CARD_CYCLE";
    case InferenceId::SETS_CARD_EQUAL: return "SETS_CARD_EQUAL";
    case InferenceId::SETS_CARD_GRAPH_EMP: return "SETS_CARD_GRAPH_EMP";
    case InferenceId::SETS_CARD_GRAPH_EMP_PARENT:
      return "SETS_CARD_GRAPH_EMP_PARENT";
    case InferenceId::SETS_CARD_GRAPH_EQ_PARENT:
      return "SETS_CARD_GRAPH_EQ_PARENT";
    case InferenceId::SETS_CARD_GRAPH_EQ_PARENT_2:
      return "SETS_CARD_GRAPH_EQ_PARENT_2";
    case InferenceId::SETS_CARD_GRAPH_PARENT_SINGLETON:
      return "SETS_CARD_GRAPH_PARENT_SINGLETON";
    case InferenceId::SETS_CARD_MINIMAL: return "SETS_CARD_MINIMAL";
    case InferenceId::SETS_CARD_NEGATIVE_MEMBER:
      return "SETS_CARD_NEGATIVE_MEMBER";
    case InferenceId::SETS_CARD_POSITIVE: return "SETS_CARD_POSITIVE";
    case InferenceId::SETS_CARD_UNIV_SUPERSET: return "SETS_CARD_UNIV_SUPERSET";
    case InferenceId::SETS_CARD_UNIV_TYPE: return "SETS_CARD_UNIV_TYPE";
    case InferenceId::SETS_RELS_IDENTITY_DOWN: return "SETS_RELS_IDENTITY_DOWN";
    case InferenceId::SETS_RELS_IDENTITY_UP: return "SETS_RELS_IDENTITY_UP";
    case InferenceId::SETS_RELS_JOIN_COMPOSE: return "SETS_RELS_JOIN_COMPOSE";
    case InferenceId::SETS_RELS_JOIN_IMAGE_DOWN:
      return "SETS_RELS_JOIN_IMAGE_DOWN";
    case InferenceId::SETS_RELS_JOIN_IMAGE_UP: return "SETS_RELS_JOIN_IMAGE_UP";
    case InferenceId::SETS_RELS_JOIN_SPLIT_1: return "SETS_RELS_JOIN_SPLIT_1";
    case InferenceId::SETS_RELS_JOIN_SPLIT_2: return "SETS_RELS_JOIN_SPLIT_2";
    case InferenceId::SETS_RELS_TABLE_JOIN_UP: return "SETS_RELS_TABLE_JOIN_UP";
    case InferenceId::SETS_RELS_TABLE_JOIN_DOWN:
      return "SETS_RELS_TABLE_JOIN_DOWN";
    case InferenceId::SETS_RELS_PRODUCE_COMPOSE:
      return "SETS_RELS_PRODUCE_COMPOSE";
    case InferenceId::SETS_RELS_PRODUCT_SPLIT: return "SETS_RELS_PRODUCT_SPLIT";
    case InferenceId::SETS_RELS_TCLOSURE_FWD: return "SETS_RELS_TCLOSURE_FWD";
    case InferenceId::SETS_RELS_TCLOSURE_UP: return "SETS_RELS_TCLOSURE_UP";
    case InferenceId::SETS_RELS_TRANSPOSE_EQ: return "SETS_RELS_TRANSPOSE_EQ";
    case InferenceId::SETS_RELS_TRANSPOSE_REV: return "SETS_RELS_TRANSPOSE_REV";
    case InferenceId::SETS_RELS_TUPLE_REDUCTION:
      return "SETS_RELS_TUPLE_REDUCTION";
    case InferenceId::SETS_RELS_GROUP_NOT_EMPTY:
      return "SETS_RELS_GROUP_NOT_EMPTY";
    case InferenceId::SETS_RELS_GROUP_UP1: return "SETS_RELS_GROUP_UP1";
    case InferenceId::SETS_RELS_GROUP_UP2: return "SETS_RELS_GROUP_UP2";
    case InferenceId::SETS_RELS_GROUP_DOWN: return "SETS_RELS_GROUP_DOWN";
    case InferenceId::SETS_RELS_GROUP_PART_MEMBER:
      return "SETS_RELS_GROUP_PART_MEMBER";
    case InferenceId::SETS_RELS_GROUP_SAME_PROJECTION:
      return "SETS_RELS_GROUP_SAME_PROJECTION";
    case InferenceId::SETS_RELS_GROUP_SAME_PART:
      return "SETS_RELS_GROUP_SAME_PART";

    case InferenceId::STRINGS_I_NORM_S: return "STRINGS_I_NORM_S";
    case InferenceId::STRINGS_I_CONST_MERGE: return "STRINGS_I_CONST_MERGE";
    case InferenceId::STRINGS_I_CONST_CONFLICT:
      return "STRINGS_I_CONST_CONFLICT";
    case InferenceId::STRINGS_I_NORM: return "STRINGS_I_NORM";
    case InferenceId::STRINGS_UNIT_SPLIT: return "STRINGS_UNIT_SPLIT";
    case InferenceId::STRINGS_UNIT_INJ_OOB: return "STRINGS_UNIT_INJ_OOB";
    case InferenceId::STRINGS_UNIT_INJ: return "STRINGS_UNIT_INJ";
    case InferenceId::STRINGS_UNIT_CONST_CONFLICT:
      return "STRINGS_UNIT_CONST_CONFLICT";
    case InferenceId::STRINGS_UNIT_INJ_DEQ: return "STRINGS_UNIT_INJ_DEQ";
    case InferenceId::STRINGS_CARD_SP: return "STRINGS_CARD_SP";
    case InferenceId::STRINGS_CARDINALITY: return "STRINGS_CARDINALITY";
    case InferenceId::STRINGS_I_CYCLE_E: return "STRINGS_I_CYCLE_E";
    case InferenceId::STRINGS_I_CYCLE: return "STRINGS_I_CYCLE";
    case InferenceId::STRINGS_F_CONST: return "STRINGS_F_CONST";
    case InferenceId::STRINGS_F_UNIFY: return "STRINGS_F_UNIFY";
    case InferenceId::STRINGS_F_ENDPOINT_EMP: return "STRINGS_F_ENDPOINT_EMP";
    case InferenceId::STRINGS_F_ENDPOINT_EQ: return "STRINGS_F_ENDPOINT_EQ";
    case InferenceId::STRINGS_F_NCTN: return "STRINGS_F_NCTN";
    case InferenceId::STRINGS_N_EQ_CONF: return "STRINGS_N_EQ_CONF";
    case InferenceId::STRINGS_N_ENDPOINT_EMP: return "STRINGS_N_ENDPOINT_EMP";
    case InferenceId::STRINGS_N_UNIFY: return "STRINGS_N_UNIFY";
    case InferenceId::STRINGS_N_ENDPOINT_EQ: return "STRINGS_N_ENDPOINT_EQ";
    case InferenceId::STRINGS_N_CONST: return "STRINGS_N_CONST";
    case InferenceId::STRINGS_INFER_EMP: return "STRINGS_INFER_EMP";
    case InferenceId::STRINGS_SSPLIT_CST_PROP: return "STRINGS_SSPLIT_CST_PROP";
    case InferenceId::STRINGS_SSPLIT_VAR_PROP: return "STRINGS_SSPLIT_VAR_PROP";
    case InferenceId::STRINGS_LEN_SPLIT: return "STRINGS_LEN_SPLIT";
    case InferenceId::STRINGS_LEN_SPLIT_EMP: return "STRINGS_LEN_SPLIT_EMP";
    case InferenceId::STRINGS_SSPLIT_CST: return "STRINGS_SSPLIT_CST";
    case InferenceId::STRINGS_SSPLIT_VAR: return "STRINGS_SSPLIT_VAR";
    case InferenceId::STRINGS_FLOOP: return "STRINGS_FLOOP";
    case InferenceId::STRINGS_FLOOP_CONFLICT: return "STRINGS_FLOOP_CONFLICT";
    case InferenceId::STRINGS_NORMAL_FORM: return "STRINGS_NORMAL_FORM";
    case InferenceId::STRINGS_N_NCTN: return "STRINGS_N_NCTN";
    case InferenceId::STRINGS_LEN_NORM: return "STRINGS_LEN_NORM";
    case InferenceId::STRINGS_DEQ_DISL_EMP_SPLIT:
      return "STRINGS_DEQ_DISL_EMP_SPLIT";
    case InferenceId::STRINGS_DEQ_DISL_FIRST_CHAR_EQ_SPLIT:
      return "STRINGS_DEQ_DISL_FIRST_CHAR_EQ_SPLIT";
    case InferenceId::STRINGS_DEQ_DISL_FIRST_CHAR_STRING_SPLIT:
      return "STRINGS_DEQ_DISL_FIRST_CHAR_STRING_SPLIT";
    case InferenceId::STRINGS_DEQ_STRINGS_EQ: return "STRINGS_DEQ_STRINGS_EQ";
    case InferenceId::STRINGS_DEQ_DISL_STRINGS_SPLIT:
      return "STRINGS_DEQ_DISL_STRINGS_SPLIT";
    case InferenceId::STRINGS_DEQ_LENS_EQ: return "STRINGS_DEQ_LENS_EQ";
    case InferenceId::STRINGS_DEQ_NORM_EMP: return "STRINGS_DEQ_NORM_EMP";
    case InferenceId::STRINGS_DEQ_LENGTH_SP: return "STRINGS_DEQ_LENGTH_SP";
    case InferenceId::STRINGS_DEQ_EXTENSIONALITY:
      return "STRINGS_DEQ_EXTENSIONALITY";
    case InferenceId::STRINGS_CODE_PROXY: return "STRINGS_CODE_PROXY";
    case InferenceId::STRINGS_CODE_INJ: return "STRINGS_CODE_INJ";
    case InferenceId::STRINGS_ARRAY_UPDATE_UNIT:
      return "STRINGS_ARRAY_UPDATE_UNIT";
    case InferenceId::STRINGS_ARRAY_UPDATE_CONCAT:
      return "STRINGS_ARRAY_UPDATE_CONCAT";
    case InferenceId::STRINGS_ARRAY_UPDATE_CONCAT_INVERSE:
      return "STRINGS_ARRAY_UPDATE_CONCAT_INVERSE";
    case InferenceId::STRINGS_ARRAY_NTH_UNIT: return "STRINGS_ARRAY_NTH_UNIT";
    case InferenceId::STRINGS_ARRAY_NTH_CONCAT:
      return "STRINGS_ARRAY_NTH_CONCAT";
    case InferenceId::STRINGS_ARRAY_NTH_EXTRACT:
      return "STRINGS_ARRAY_NTH_EXTRACT";
    case InferenceId::STRINGS_ARRAY_NTH_UPDATE:
      return "STRINGS_ARRAY_NTH_UPDATE";
    case InferenceId::STRINGS_ARRAY_NTH_TERM_FROM_UPDATE:
      return "STRINGS_ARRAY_NTH_TERM_FROM_UPDATE";
    case InferenceId::STRINGS_ARRAY_UPDATE_BOUND:
      return "STRINGS_ARRAY_UPDATE_BOUND";
    case InferenceId::STRINGS_ARRAY_EQ_SPLIT:
	  return "STRINGS_ARRAY_EQ_SPLIT";
    case InferenceId::STRINGS_ARRAY_NTH_UPDATE_WITH_UNIT:
      return "STRINGS_ARRAY_NTH_UPDATE_WITH_UNIT";
    case InferenceId::STRINGS_ARRAY_NTH_REV: return "STRINGS_ARRAY_NTH_REV";
    case InferenceId::STRINGS_RE_NF_CONFLICT: return "STRINGS_RE_NF_CONFLICT";
    case InferenceId::STRINGS_RE_UNFOLD_POS: return "STRINGS_RE_UNFOLD_POS";
    case InferenceId::STRINGS_RE_UNFOLD_NEG: return "STRINGS_RE_UNFOLD_NEG";
    case InferenceId::STRINGS_RE_INTER_INCLUDE:
      return "STRINGS_RE_INTER_INCLUDE";
    case InferenceId::STRINGS_RE_INTER_CONF: return "STRINGS_RE_INTER_CONF";
    case InferenceId::STRINGS_RE_INTER_INFER: return "STRINGS_RE_INTER_INFER";
    case InferenceId::STRINGS_RE_DELTA: return "STRINGS_RE_DELTA";
    case InferenceId::STRINGS_RE_DELTA_CONF: return "STRINGS_RE_DELTA_CONF";
    case InferenceId::STRINGS_RE_DERIVE: return "STRINGS_RE_DERIVE";
    case InferenceId::STRINGS_EXTF: return "STRINGS_EXTF";
    case InferenceId::STRINGS_EXTF_N: return "STRINGS_EXTF_N";
    case InferenceId::STRINGS_EXTF_D: return "STRINGS_EXTF_D";
    case InferenceId::STRINGS_EXTF_D_N: return "STRINGS_EXTF_D_N";
    case InferenceId::STRINGS_EXTF_EQ_REW: return "STRINGS_EXTF_EQ_REW";
    case InferenceId::STRINGS_EXTF_REW_SAME: return "STRINGS_EXTF_REW_SAME";
    case InferenceId::STRINGS_CTN_TRANS: return "STRINGS_CTN_TRANS";
    case InferenceId::STRINGS_CTN_DECOMPOSE: return "STRINGS_CTN_DECOMPOSE";
    case InferenceId::STRINGS_CTN_NEG_EQUAL: return "STRINGS_CTN_NEG_EQUAL";
    case InferenceId::STRINGS_CTN_POS: return "STRINGS_CTN_POS";
    case InferenceId::STRINGS_REDUCTION: return "STRINGS_REDUCTION";
    case InferenceId::STRINGS_PREFIX_CONFLICT: return "STRINGS_PREFIX_CONFLICT";
    case InferenceId::STRINGS_PREFIX_CONFLICT_MIN:
      return "STRINGS_PREFIX_CONFLICT_MIN";
    case InferenceId::STRINGS_ARITH_BOUND_CONFLICT:
      return "STRINGS_ARITH_BOUND_CONFLICT";
    case InferenceId::STRINGS_REGISTER_TERM_ATOMIC:
      return "STRINGS_REGISTER_TERM_ATOMIC";
    case InferenceId::STRINGS_REGISTER_TERM: return "STRINGS_REGISTER_TERM";
    case InferenceId::STRINGS_CMI_SPLIT: return "STRINGS_CMI_SPLIT";
    case InferenceId::STRINGS_CONST_SEQ_PURIFY:
      return "STRINGS_CONST_SEQ_PURIFY";
    case InferenceId::STRINGS_RE_EQ_ELIM_EQUIV:
      return "STRINGS_RE_EQ_ELIM_EQUIV";

    case InferenceId::UF_BREAK_SYMMETRY: return "UF_BREAK_SYMMETRY";
    case InferenceId::UF_NOT_DISTINCT_ELIM: return "UF_NOT_DISTINCT_ELIM";
    case InferenceId::UF_DISTINCT_DEQ: return "UF_DISTINCT_DEQ";
    case InferenceId::UF_DISTINCT_DEQ_MODEL: return "UF_DISTINCT_DEQ_MODEL";
    case InferenceId::UF_CARD_CLIQUE: return "UF_CARD_CLIQUE";
    case InferenceId::UF_CARD_COMBINED: return "UF_CARD_COMBINED";
    case InferenceId::UF_CARD_ENFORCE_NEGATIVE: return "UF_CARD_ENFORCE_NEGATIVE";
    case InferenceId::UF_CARD_EQUIV: return "UF_CARD_EQUIV";
    case InferenceId::UF_CARD_MONOTONE_COMBINED: return "UF_CARD_MONOTONE_COMBINED";
    case InferenceId::UF_CARD_SIMPLE_CONFLICT: return "UF_CARD_SIMPLE_CONFLICT";
    case InferenceId::UF_CARD_SPLIT: return "UF_CARD_SPLIT";

    case InferenceId::UF_HO_CG_SPLIT: return "UF_HO_CG_SPLIT";
    case InferenceId::UF_HO_APP_ENCODE: return "UF_HO_APP_ENCODE";
    case InferenceId::UF_HO_APP_CONV_SKOLEM: return "UF_HO_APP_CONV_SKOLEM";
    case InferenceId::UF_HO_EXTENSIONALITY: return "UF_HO_EXTENSIONALITY";
    case InferenceId::UF_HO_MODEL_APP_ENCODE: return "UF_HO_MODEL_APP_ENCODE";
    case InferenceId::UF_HO_MODEL_EXTENSIONALITY:
      return "UF_HO_MODEL_EXTENSIONALITY";
    case InferenceId::UF_HO_LAMBDA_UNIV_EQ: return "HO_LAMBDA_UNIV_EQ";
    case InferenceId::UF_HO_LAMBDA_APP_REDUCE: return "HO_LAMBDA_APP_REDUCE";
    case InferenceId::UF_HO_LAMBDA_LAZY_LIFT: return "UF_HO_LAMBDA_LAZY_LIFT";
    case InferenceId::UF_ARITH_BV_CONV_REDUCTION:
      return "UF_ARITH_BV_CONV_REDUCTION";
    case InferenceId::UF_ARITH_BV_CONV_VALUE_REFINE:
      return "UF_ARITH_BV_CONV_VALUE_REFINE";
    case InferenceId::PARTITION_GENERATOR_PARTITION:
      return "PARTITION_GENERATOR_PARTITION";
    case InferenceId::PLUGIN_LEMMA: return "PLUGIN_LEMMA";
    case InferenceId::UNKNOWN: return "?";

    default:
      Assert(false) << "No print for inference id " << static_cast<size_t>(i);
      return "?Unhandled";
  }
}

std::ostream& operator<<(std::ostream& out, InferenceId i)
{
  out << toString(i);
  return out;
}

Node mkInferenceIdNode(NodeManager* nm, InferenceId i)
{
  return nm->mkConstInt(Rational(static_cast<uint32_t>(i)));
}

bool getInferenceId(TNode n, InferenceId& i)
{
  uint32_t index;
  if (!ProofRuleChecker::getUInt32(n, index))
  {
    return false;
  }
  i = static_cast<InferenceId>(index);
  return true;
}

}  // namespace theory
}  // namespace cvc5::internal
