diff --git a/src/library/blast/CMakeLists.txt b/src/library/blast/CMakeLists.txt index e4749b7f1f..6e0e49beb9 100644 --- a/src/library/blast/CMakeLists.txt +++ b/src/library/blast/CMakeLists.txt @@ -1,2 +1,3 @@ add_library(blast OBJECT expr.cpp state.cpp blast.cpp blast_tactic.cpp - init_module.cpp simplifier.cpp assumption.cpp intros.cpp proof_expr.cpp) + init_module.cpp simplifier.cpp assumption.cpp intros.cpp proof_expr.cpp + options.cpp) diff --git a/src/library/blast/blast.cpp b/src/library/blast/blast.cpp index a192f1f0fe..635c6c8c15 100644 --- a/src/library/blast/blast.cpp +++ b/src/library/blast/blast.cpp @@ -6,7 +6,6 @@ Author: Leonardo de Moura */ #include #include "util/sstream.h" -#include "util/sexpr/option_declarations.h" #include "kernel/for_each_fn.h" #include "kernel/type_checker.h" #include "library/replace_visitor.h" @@ -24,38 +23,14 @@ Author: Leonardo de Moura #include "library/blast/assumption.h" #include "library/blast/intros.h" #include "library/blast/proof_expr.h" +#include "library/blast/options.h" #include "library/blast/blast_exception.h" -#ifndef LEAN_DEFAULT_BLAST_MAX_DEPTH -#define LEAN_DEFAULT_BLAST_MAX_DEPTH 128 -#endif -#ifndef LEAN_DEFAULT_BLAST_INIT_DEPTH -#define LEAN_DEFAULT_BLAST_INIT_DEPTH 1 -#endif -#ifndef LEAN_DEFAULT_BLAST_INC_DEPTH -#define LEAN_DEFAULT_BLAST_INC_DEPTH 5 -#endif - namespace lean { namespace blast { static name * g_prefix = nullptr; static name * g_tmp_prefix = nullptr; -/* Options */ -static name * g_blast_max_depth = nullptr; -static name * g_blast_init_depth = nullptr; -static name * g_blast_inc_depth = nullptr; - -unsigned get_blast_max_depth(options const & o) { - return o.get_unsigned(*g_blast_max_depth, LEAN_DEFAULT_BLAST_MAX_DEPTH); -} -unsigned get_blast_init_depth(options const & o) { - return o.get_unsigned(*g_blast_init_depth, LEAN_DEFAULT_BLAST_INIT_DEPTH); -} -unsigned get_blast_inc_depth(options const & o) { - return o.get_unsigned(*g_blast_inc_depth, LEAN_DEFAULT_BLAST_INC_DEPTH); -} - class blastenv { friend class scope_assignment; typedef std::vector tmp_type_context_pool; @@ -829,16 +804,6 @@ optional blast_goal(environment const & env, io_state const & ios, list