From: Aina Niemetz Date: Tue, 8 May 2018 19:12:01 +0000 (-0700) Subject: Fix order of preprocessing pass registration. (#1887) X-Git-Tag: cvc5-1.0.0~5078 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f3416bf998cdf3fc8b6adf6debb7e65d663bd7c;p=cvc5.git Fix order of preprocessing pass registration. (#1887) --- diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index 10d21a66c..c9733983a 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -2586,27 +2586,29 @@ void SmtEnginePrivate::finishInit() { d_preprocessingPassContext.reset(new PreprocessingPassContext(&d_smt)); // TODO: register passes here (this will likely change when we add support for // actually assembling preprocessing pipelines). - std::unique_ptr bvGauss(new BVGauss(d_preprocessingPassContext.get())); - std::unique_ptr intToBV(new IntToBV(d_preprocessingPassContext.get())); + std::unique_ptr boolToBv( + new BoolToBV(d_preprocessingPassContext.get())); + std::unique_ptr bvGauss( + new BVGauss(d_preprocessingPassContext.get())); + std::unique_ptr bvIntroPow2( + new BvIntroPow2(d_preprocessingPassContext.get())); + std::unique_ptr bvToBool( + new BVToBool(d_preprocessingPassContext.get())); + std::unique_ptr intToBV( + new IntToBV(d_preprocessingPassContext.get())); std::unique_ptr pbProc( new PseudoBooleanProcessor(d_preprocessingPassContext.get())); std::unique_ptr realToInt( new RealToInt(d_preprocessingPassContext.get())); + d_preprocessingPassRegistry.registerPass("bool-to-bv", std::move(boolToBv)); d_preprocessingPassRegistry.registerPass("bv-gauss", std::move(bvGauss)); + d_preprocessingPassRegistry.registerPass("bv-intro-pow2", + std::move(bvIntroPow2)); + d_preprocessingPassRegistry.registerPass("bv-to-bool", std::move(bvToBool)); d_preprocessingPassRegistry.registerPass("int-to-bv", std::move(intToBV)); - d_preprocessingPassRegistry.registerPass("real-to-int", std::move(realToInt)); d_preprocessingPassRegistry.registerPass("pseudo-boolean-processor", std::move(pbProc)); - std::unique_ptr bvToBool( - new BVToBool(d_preprocessingPassContext.get())); - d_preprocessingPassRegistry.registerPass("bv-to-bool", std::move(bvToBool)); - std::unique_ptr boolToBv( - new BoolToBV(d_preprocessingPassContext.get())); - d_preprocessingPassRegistry.registerPass("bool-to-bv", std::move(boolToBv)); - std::unique_ptr bvIntroPow2( - new BvIntroPow2(d_preprocessingPassContext.get())); - d_preprocessingPassRegistry.registerPass("bv-intro-pow2", - std::move(bvIntroPow2)); + d_preprocessingPassRegistry.registerPass("real-to-int", std::move(realToInt)); } Node SmtEnginePrivate::expandDefinitions(TNode n, unordered_map& cache, bool expandOnly)