{
bm->GetRunTimes()->start(RunTimes::ApplyingSubstitutions);
ASTNodeMap cache;
- ASTNode result = replace(n,*SolverMap,cache,bm->defaultNodeFactory, false);
+ SimplifyingNodeFactory nf(*bm->hashingNodeFactory, *bm);
+ ASTNode result = replace(n,*SolverMap,cache,&nf, false);
bm->GetRunTimes()->stop(RunTimes::ApplyingSubstitutions);
return result;
}
{
bm->GetRunTimes()->start(RunTimes::ApplyingSubstitutions);
ASTNodeMap cache;
- ASTNode result = replace(n,*SolverMap,cache,bm->defaultNodeFactory, true);
+ SimplifyingNodeFactory nf(*bm->hashingNodeFactory, *bm);
+ ASTNode result = replace(n,*SolverMap,cache,&nf, true);
bm->GetRunTimes()->stop(RunTimes::ApplyingSubstitutions);
return result;
}