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 beta reduction node conversion 11 : : */ 12 : : #include "cvc5_private.h" 13 : : 14 : : #ifndef CVC4__PROOF__EXPR__BETA_REDUCE_NODE_CONVERTER_H 15 : : #define CVC4__PROOF__EXPR__BETA_REDUCE_NODE_CONVERTER_H 16 : : 17 : : #include <iostream> 18 : : #include <map> 19 : : 20 : : #include "expr/node.h" 21 : : #include "expr/node_converter.h" 22 : : #include "expr/type_node.h" 23 : : 24 : : namespace cvc5::internal { 25 : : 26 : : /** 27 : : * Applies beta-reduction to all subterms 28 : : */ 29 : : class BetaReduceNodeConverter : public NodeConverter 30 : : { 31 : : public: 32 : 2 : BetaReduceNodeConverter(NodeManager* nm) : NodeConverter(nm) {} 33 : 2 : ~BetaReduceNodeConverter() {} 34 : : /** convert node n as described above during post-order traversal */ 35 : : Node postConvert(Node n) override; 36 : : }; 37 : : 38 : : } // namespace cvc5::internal 39 : : 40 : : #endif