]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
improvement. Use the simplifying node factory be default in the substitution map.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 5 Mar 2011 11:57:10 +0000 (11:57 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Sat, 5 Mar 2011 11:57:10 +0000 (11:57 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1190 e59a4935-1847-0410-ae03-e826735625c1

src/simplifier/SubstitutionMap.cpp

index b950bb99bd4ee5fba881d0c24c10d47b1eedfa65..3da7ffffb200d2684812ea3f34f6f9d74aecd2bf 100644 (file)
@@ -191,7 +191,8 @@ ASTNode SubstitutionMap::applySubstitutionMap(const ASTNode& n)
 {
        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;
 }
@@ -200,7 +201,8 @@ ASTNode SubstitutionMap::applySubstitutionMapUntilArrays(const ASTNode& n)
 {
        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;
 }