From 98a78889a4c4168f9c6632a0e19e1b8f422c4a9d Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Wed, 8 Apr 2020 08:50:14 -0500 Subject: [PATCH] Eliminate call to currentNM within NodeManager (#4227) Eliminates 2 unintentional calls to the global access function. --- src/expr/node_manager.cpp | 4 ++-- src/expr/node_manager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/expr/node_manager.cpp b/src/expr/node_manager.cpp index 16ffd8306..efac34902 100644 --- a/src/expr/node_manager.cpp +++ b/src/expr/node_manager.cpp @@ -754,9 +754,9 @@ Node NodeManager::getBoundVarListForFunctionType( TypeNode tn ) { if( bvl.isNull() ){ std::vector< Node > vars; for( unsigned i=0; imkBoundVar( tn[i] ) ); + vars.push_back(mkBoundVar(tn[i])); } - bvl = NodeManager::currentNM()->mkNode( kind::BOUND_VAR_LIST, vars ); + bvl = mkNode(kind::BOUND_VAR_LIST, vars); Trace("functions") << "Make standard bound var list " << bvl << " for " << tn << std::endl; tn.setAttribute(LambdaBoundVarListAttr(),bvl); } diff --git a/src/expr/node_manager.h b/src/expr/node_manager.h index 2e8f40fff..aea49d979 100644 --- a/src/expr/node_manager.h +++ b/src/expr/node_manager.h @@ -517,7 +517,7 @@ public: Node* mkBoundVarPtr(const TypeNode& type); /** get the canonical bound variable list for function type tn */ - static Node getBoundVarListForFunctionType( TypeNode tn ); + Node getBoundVarListForFunctionType( TypeNode tn ); /** * Optional flags used to control behavior of NodeManager::mkSkolem(). -- 2.30.2