Eliminates 2 unintentional calls to the global access function.
if( bvl.isNull() ){
std::vector< Node > vars;
for( unsigned i=0; i<tn.getNumChildren()-1; i++ ){
- vars.push_back( NodeManager::currentNM()->mkBoundVar( 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);
}
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().