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 : : * Implementation of incompleteness enumeration. 11 : : */ 12 : : 13 : : #include "theory/incomplete_id.h" 14 : : 15 : : #include <iostream> 16 : : 17 : : #include "base/check.h" 18 : : 19 : : namespace cvc5::internal { 20 : : namespace theory { 21 : : 22 : 29 : const char* toString(IncompleteId i) 23 : : { 24 [ + + ][ + + ]: 29 : switch (i) [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + + ][ + + ] [ + - ][ - ] 25 : : { 26 : 1 : case IncompleteId::NONE: return "NONE"; 27 : 1 : case IncompleteId::ARITH_NL_DISABLED: return "ARITH_NL_DISABLED"; 28 : 1 : case IncompleteId::ARITH_NL: return "ARITH_NL"; 29 : 3 : case IncompleteId::QUANTIFIERS: return "QUANTIFIERS"; 30 : 1 : case IncompleteId::QUANTIFIERS_SYGUS_NO_VERIFY: 31 : 1 : return "QUANTIFIERS_SYGUS_NO_VERIFY"; 32 : 1 : case IncompleteId::QUANTIFIERS_SYGUS_SMART_BLOCK_ANY_CONSTANT: 33 : 1 : return "QUANTIFIERS_SYGUS_SMART_BLOCK_ANY_CONSTANT"; 34 : 1 : case IncompleteId::QUANTIFIERS_CEGQI: return "QUANTIFIERS_CEGQI"; 35 : 3 : case IncompleteId::QUANTIFIERS_FMF: return "QUANTIFIERS_FMF"; 36 : 1 : case IncompleteId::QUANTIFIERS_RECORDED_INST: 37 : 1 : return "QUANTIFIERS_RECORDED_INST"; 38 : 1 : case IncompleteId::QUANTIFIERS_MAX_INST_ROUNDS: 39 : 1 : return "QUANTIFIERS_MAX_INST_ROUNDS"; 40 : 1 : case IncompleteId::QUANTIFIERS_SYGUS_SOLVED: 41 : 1 : return "QUANTIFIERS_SYGUS_SOLVED"; 42 : 1 : case IncompleteId::QUANTIFIERS_SYGUS_NO_WF_GRAMMAR: 43 : 1 : return "QUANTIFIERS_SYGUS_NO_WF_GRAMMAR"; 44 : 1 : case IncompleteId::SEP: return "SEP"; 45 : 1 : case IncompleteId::SETS_HO_CARD: return "SETS_HO_CARD"; 46 : 1 : case IncompleteId::SETS_RELS_CARD: return "SETS_RELS_CARD"; 47 : 1 : case IncompleteId::SETS_FMF_BOUND_CARD: return "SETS_FMF_BOUND_CARD"; 48 : 1 : case IncompleteId::STRINGS_LOOP_SKIP: return "STRINGS_LOOP_SKIP"; 49 : 1 : case IncompleteId::STRINGS_REGEXP_NO_SIMPLIFY: 50 : 1 : return "STRINGS_REGEXP_NO_SIMPLIFY"; 51 : 1 : case IncompleteId::SEQ_FINITE_DYNAMIC_CARDINALITY: 52 : 1 : return "SEQ_FINITE_DYNAMIC_CARDINALITY"; 53 : 1 : case IncompleteId::UF_HO_EXT_DISABLED: return "UF_HO_EXT_DISABLED"; 54 : 1 : case IncompleteId::UF_CARD_DISABLED: return "UF_CARD_DISABLED"; 55 : 1 : case IncompleteId::UF_CARD_MODE: return "UF_CARD_MODE"; 56 : 1 : case IncompleteId::UNPROCESSED_THEORY_CONFLICT: 57 : 1 : return "UNPROCESSED_THEORY_CONFLICT"; 58 : 1 : case IncompleteId::STOP_SEARCH: return "STOP_SEARCH"; 59 : 1 : case IncompleteId::PREPROCESSING: return "PREPROCESSING"; 60 : 0 : case IncompleteId::UNKNOWN: return "UNKNOWN"; 61 : 0 : default: 62 : 0 : DebugUnhandled() << "No print for incomplete id " 63 : 0 : << static_cast<size_t>(i); 64 : : return "?IncompleteId?"; 65 : : } 66 : : } 67 : : 68 : 29 : std::ostream& operator<<(std::ostream& out, IncompleteId i) 69 : : { 70 : 29 : out << toString(i); 71 : 29 : return out; 72 : : } 73 : : 74 : : } // namespace theory 75 : : } // namespace cvc5::internal