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 annotation elimination node conversion 11 : : */ 12 : : #include "cvc5_private.h" 13 : : 14 : : #ifndef CVC5__EXPR__ANNOTATION_ELIM_NODE_CONVERTER_H 15 : : #define CVC5__EXPR__ANNOTATION_ELIM_NODE_CONVERTER_H 16 : : 17 : : #include "expr/node.h" 18 : : #include "expr/node_converter.h" 19 : : 20 : : namespace cvc5::internal { 21 : : 22 : : /** 23 : : * This converts a node into one that does not involve annotations for 24 : : * quantified formulas. In other words, the third child is dropped for all 25 : : * closure terms with 3 children. 26 : : */ 27 : : class AnnotationElimNodeConverter : public NodeConverter 28 : : { 29 : : public: 30 : : AnnotationElimNodeConverter(NodeManager* nm); 31 : 0 : ~AnnotationElimNodeConverter() {} 32 : : /** convert node n as described above during post-order traversal */ 33 : : Node postConvert(Node n) override; 34 : : }; 35 : : 36 : : } // namespace cvc5::internal 37 : : 38 : : #endif