Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Andrew Reynolds, Mathias Preiner, Daniel Larraz 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2025 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 : : * Implementation of annotation elimination node conversion 14 : : */ 15 : : 16 : : #include "expr/annotation_elim_node_converter.h" 17 : : 18 : : using namespace cvc5::internal::kind; 19 : : 20 : : namespace cvc5::internal { 21 : : 22 : 44 : AnnotationElimNodeConverter::AnnotationElimNodeConverter(NodeManager* nm) 23 : 44 : : NodeConverter(nm) 24 : : { 25 : 44 : } 26 : : 27 : 408 : Node AnnotationElimNodeConverter::postConvert(Node n) 28 : : { 29 [ + + ][ + - ]: 408 : if (n.isClosure() && n.getNumChildren() == 3) [ + + ] 30 : : { 31 : 32 : return NodeManager::mkNode(n.getKind(), n[0], n[1]); 32 : : } 33 : 376 : return n; 34 : : } 35 : : 36 : : } // namespace cvc5::internal