Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Andrew Reynolds 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 : : * The status of a rewrite rule proof reconstruction attempt 14 : : */ 15 : : 16 : : #include "rewriter/rewrite_proof_status.h" 17 : : 18 : : namespace cvc5::internal { 19 : : namespace rewriter { 20 : : 21 : 0 : const char* toString(RewriteProofStatus s) 22 : : { 23 [ - - ][ - - ]: 0 : switch (s) [ - - ][ - - ] [ - - ][ - - ] [ - ] 24 : : { 25 : 0 : case RewriteProofStatus::FAIL: return "FAIL"; 26 : 0 : case RewriteProofStatus::REFL: return "REFL"; 27 : 0 : case RewriteProofStatus::EVAL: return "EVAL"; 28 : 0 : case RewriteProofStatus::TRANS: return "TRANS"; 29 : 0 : case RewriteProofStatus::CONG: return "CONG"; 30 : 0 : case RewriteProofStatus::CONG_EVAL: return "CONG_EVAL"; 31 : 0 : case RewriteProofStatus::TRUE_ELIM: return "TRUE_ELIM"; 32 : 0 : case RewriteProofStatus::TRUE_INTRO: return "TRUE_INTRO"; 33 : 0 : case RewriteProofStatus::ARITH_POLY_NORM: return "ARITH_POLY_NORM"; 34 : 0 : case RewriteProofStatus::ACI_NORM: return "ACI_NORM"; 35 : 0 : case RewriteProofStatus::DSL: return "DSL"; 36 : 0 : case RewriteProofStatus::THEORY_REWRITE: return "THEORY_REWRITE"; 37 : 0 : default: Unreachable(); 38 : : } 39 : : } 40 : : 41 : 0 : std::ostream& operator<<(std::ostream& out, RewriteProofStatus s) 42 : : { 43 : 0 : out << toString(s); 44 : 0 : return out; 45 : : } 46 : : 47 : : } // namespace rewriter 48 : : } // namespace cvc5::internal