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 : : 13 : : #include "expr/annotation_elim_node_converter.h" 14 : : 15 : : using namespace cvc5::internal::kind; 16 : : 17 : : namespace cvc5::internal { 18 : : 19 : 0 : AnnotationElimNodeConverter::AnnotationElimNodeConverter(NodeManager* nm) 20 : 0 : : NodeConverter(nm) 21 : : { 22 : 0 : } 23 : : 24 : 0 : Node AnnotationElimNodeConverter::postConvert(Node n) 25 : : { 26 [ - - ][ - - ]: 0 : if (n.isClosure() && n.getNumChildren() == 3) [ - - ] 27 : : { 28 : 0 : return NodeManager::mkNode(n.getKind(), n[0], n[1]); 29 : : } 30 : 0 : return n; 31 : : } 32 : : 33 : : } // namespace cvc5::internal