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