chore: reduce src/include/lean
This commit is contained in:
parent
c93982d10c
commit
c8406a301d
124 changed files with 235 additions and 235 deletions
|
|
@ -4,9 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/stackinfo.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/init_module.h>
|
||||
#include "runtime/stackinfo.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/init_module.h"
|
||||
#include "util/init_module.h"
|
||||
#include "util/io.h"
|
||||
#include "kernel/init_module.h"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Author: Leonardo de Moura
|
|||
#pragma once
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <lean/debug.h>
|
||||
#include "runtime/debug.h"
|
||||
|
||||
/** \brief Macro for creating a stack of objects of type Cache in thread local storage.
|
||||
The argument \c Arg is provided to every new instance of Cache.
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ Author: Leonardo de Moura
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
#include <limits>
|
||||
#include <lean/sstream.h>
|
||||
#include <lean/thread.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "util/map_foreach.h"
|
||||
#include "util/io.h"
|
||||
#include "kernel/environment.h"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Author: Leonardo de Moura
|
|||
#include <utility>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <lean/optional.h>
|
||||
#include "runtime/optional.h"
|
||||
#include "util/rc.h"
|
||||
#include "util/list.h"
|
||||
#include "util/rb_map.h"
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/equiv_manager.h"
|
||||
|
||||
namespace lean {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ Author: Leonardo de Moura
|
|||
#include <string>
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <lean/hash.h>
|
||||
#include <lean/buffer.h>
|
||||
#include "runtime/hash.h"
|
||||
#include "runtime/buffer.h"
|
||||
#include "util/list_fn.h"
|
||||
#include "kernel/expr.h"
|
||||
#include "kernel/expr_eq_fn.h"
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ Author: Leonardo de Moura
|
|||
#include <utility>
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <lean/optional.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/hash.h>
|
||||
#include <lean/buffer.h>
|
||||
#include "runtime/optional.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/hash.h"
|
||||
#include "runtime/buffer.h"
|
||||
#include "util/name.h"
|
||||
#include "util/nat.h"
|
||||
#include "util/kvmap.h"
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/thread.h>
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "kernel/expr.h"
|
||||
#include "kernel/expr_sets.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Author: Leonardo de Moura
|
|||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <functional>
|
||||
#include <lean/hash.h>
|
||||
#include "runtime/hash.h"
|
||||
#include "kernel/expr.h"
|
||||
|
||||
namespace lean {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <lean/memory.h>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/memory.h"
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
#include "kernel/cache_stack.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Author: Leonardo de Moura
|
|||
#include <memory>
|
||||
#include <utility>
|
||||
#include <functional>
|
||||
#include <lean/buffer.h>
|
||||
#include "runtime/buffer.h"
|
||||
#include "kernel/expr.h"
|
||||
#include "kernel/expr_sets.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/sstream.h>
|
||||
#include <lean/utf8.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "runtime/utf8.h"
|
||||
#include "util/name_generator.h"
|
||||
#include "kernel/environment.h"
|
||||
#include "kernel/type_checker.h"
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ Author: Leonardo de Moura
|
|||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <unordered_set>
|
||||
#include <lean/debug.h>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/hash.h>
|
||||
#include <lean/buffer.h>
|
||||
#include "runtime/debug.h"
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/hash.h"
|
||||
#include "runtime/buffer.h"
|
||||
#include "util/list.h"
|
||||
#include "kernel/level.h"
|
||||
#include "kernel/environment.h"
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ Author: Leonardo de Moura
|
|||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <utility>
|
||||
#include <lean/optional.h>
|
||||
#include <lean/list_ref.h>
|
||||
#include "runtime/optional.h"
|
||||
#include "runtime/list_ref.h"
|
||||
#include "util/name.h"
|
||||
#include "util/options.h"
|
||||
#include "util/format.h"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <limits>
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/local_ctx.h"
|
||||
#include "kernel/abstract.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#pragma once
|
||||
#include <tuple>
|
||||
#include <lean/interrupt.h>
|
||||
#include "runtime/interrupt.h"
|
||||
#include "kernel/expr.h"
|
||||
#include "kernel/expr_maps.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/sstream.h>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/sstream.h"
|
||||
#include "runtime/flet.h"
|
||||
#include "util/lbool.h"
|
||||
#include "kernel/type_checker.h"
|
||||
#include "kernel/expr_maps.h"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Author: Leonardo de Moura
|
|||
#include <unordered_map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "util/name_hash_map.h"
|
||||
#include "library/annotation.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "util/name_generator.h"
|
||||
#include "kernel/environment.h"
|
||||
#include "kernel/instantiate.h"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Author: Leonardo de Moura
|
|||
#include <algorithm>
|
||||
#include <unordered_set>
|
||||
#include <unordered_map>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/type_checker.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
#include "kernel/find_fn.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/kernel_exception.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/abstract.h"
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Authors: Leonardo de Moura
|
||||
*/
|
||||
#include <string>
|
||||
#include <lean/sstream.h>
|
||||
#include <lean/object_ref.h>
|
||||
#include <lean/option_ref.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "runtime/object_ref.h"
|
||||
#include "runtime/option_ref.h"
|
||||
#include "util/io.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/type_checker.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/expr_maps.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Authors: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/object_ref.h>
|
||||
#include "runtime/object_ref.h"
|
||||
#include "kernel/environment.h"
|
||||
|
||||
namespace lean {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <string>
|
||||
#include <lean/array_ref.h>
|
||||
#include "runtime/array_ref.h"
|
||||
#include "util/nat.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/type_checker.h"
|
||||
|
|
|
|||
|
|
@ -35,12 +35,12 @@ functions, which have a (relatively) homogeneous ABI that we can use without run
|
|||
#else
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
#include <lean/flet.h>
|
||||
#include <lean/apply.h>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/io.h>
|
||||
#include <lean/option_ref.h>
|
||||
#include <lean/array_ref.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "runtime/apply.h"
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/io.h"
|
||||
#include "runtime/option_ref.h"
|
||||
#include "runtime/array_ref.h"
|
||||
#include "library/time_task.h"
|
||||
#include "library/trace.h"
|
||||
#include "library/compiler/ir.h"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Author: Sebastian Ullrich
|
|||
*/
|
||||
#pragma once
|
||||
#include "kernel/environment.h"
|
||||
#include <lean/object.h>
|
||||
#include "runtime/object.h"
|
||||
|
||||
namespace lean {
|
||||
namespace ir {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <unordered_set>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <algorithm>
|
||||
#include <lean/flet.h>
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/type_checker.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/inductive.h"
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/sstream.h>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/replace_fn.h"
|
||||
#include "library/compiler/util.h"
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ Author: Leonardo de Moura
|
|||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <unordered_set>
|
||||
#include <lean/flet.h>
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "runtime/sstream.h"
|
||||
#include "util/name_hash_set.h"
|
||||
#include "util/name_hash_map.h"
|
||||
#include "kernel/instantiate.h"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <algorithm>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
#include "kernel/abstract.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/flet.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "kernel/type_checker.h"
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include <lean/pair_ref.h>
|
||||
#include <lean/list_ref.h>
|
||||
#include "runtime/pair_ref.h"
|
||||
#include "runtime/list_ref.h"
|
||||
#include "util/name_hash_set.h"
|
||||
#include "kernel/expr.h"
|
||||
#include "kernel/type_checker.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/kernel_exception.h"
|
||||
#include "kernel/environment.h"
|
||||
#include "kernel/instantiate.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/kernel_exception.h"
|
||||
#include "kernel/environment.h"
|
||||
#include "kernel/instantiate.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/kernel_exception.h"
|
||||
#include "kernel/environment.h"
|
||||
#include "kernel/instantiate.h"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <string>
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/kernel_exception.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "kernel/type_checker.h"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/kernel_exception.h"
|
||||
#include "kernel/environment.h"
|
||||
#include "kernel/instantiate.h"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#pragma once
|
||||
#include <utility>
|
||||
#include <lean/hash.h>
|
||||
#include "runtime/hash.h"
|
||||
#include "library/expr_lt.h"
|
||||
|
||||
namespace lean {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ Author: Leonardo de Moura
|
|||
#include <tuple>
|
||||
#include <unordered_set>
|
||||
#include <functional>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/buffer.h>
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/buffer.h"
|
||||
#include "library/max_sharing.h"
|
||||
|
||||
namespace lean {
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ Authors: Leonardo de Moura, Gabriel Ebner, Sebastian Ullrich
|
|||
#include <fstream>
|
||||
#include <algorithm>
|
||||
#include <sys/stat.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/sstream.h>
|
||||
#include <lean/hash.h>
|
||||
#include <lean/io.h>
|
||||
#include <lean/compact.h>
|
||||
#include <lean/buffer.h>
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/sstream.h"
|
||||
#include "runtime/hash.h"
|
||||
#include "runtime/io.h"
|
||||
#include "runtime/compact.h"
|
||||
#include "runtime/buffer.h"
|
||||
#include "util/io.h"
|
||||
#include "util/name_map.h"
|
||||
#include "library/module.h"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Authors: Leonardo de Moura, Gabriel Ebner, Sebastian Ullrich
|
|||
#include <iostream>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <lean/optional.h>
|
||||
#include "runtime/optional.h"
|
||||
#include "kernel/environment.h"
|
||||
|
||||
namespace lean {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/mpz.h>
|
||||
#include "runtime/mpz.h"
|
||||
#include "kernel/environment.h"
|
||||
|
||||
namespace lean {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <string>
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/kernel_exception.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/inductive.h"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <tuple>
|
||||
#include <lean/interrupt.h>
|
||||
#include "runtime/interrupt.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "library/replace_visitor.h"
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <lean/option_ref.h>
|
||||
#include <lean/version.h>
|
||||
#include "runtime/option_ref.h"
|
||||
#include "kernel/find_fn.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/type_checker.h"
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <vector>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/debug.h>
|
||||
#include <lean/alloc.h>
|
||||
#include <lean/lean.h>
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/debug.h"
|
||||
#include "runtime/alloc.h"
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define LEAN_NOINLINE __attribute__((noinline))
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/allocprof.h>
|
||||
#include "runtime/allocprof.h"
|
||||
namespace lean {
|
||||
allocprof::allocprof(std::ostream & out, char const * msg):
|
||||
m_out(out), m_msg(msg) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <lean/object.h>
|
||||
#include "runtime/object.h"
|
||||
namespace lean {
|
||||
/* Low tech runtime allocation profiler.
|
||||
We need to compile Lean using RUNTIME_STATS=ON to use it. */
|
||||
|
|
@ -6,7 +6,7 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
// DO NOT EDIT, this is an automatically generated file
|
||||
// Generated using script: ../../gen/apply.lean
|
||||
#include <lean/apply.h>
|
||||
#include "runtime/apply.h"
|
||||
namespace lean {
|
||||
#define obj lean_object
|
||||
#define fx(i) lean_closure_arg_cptr(f)[i]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include <lean/object.h>
|
||||
#include "runtime/object.h"
|
||||
namespace lean {
|
||||
object * curry(void * f, unsigned n, object ** as);
|
||||
}
|
||||
|
|
@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include <lean/buffer.h>
|
||||
#include <lean/object_ref.h>
|
||||
#include "runtime/buffer.h"
|
||||
#include "runtime/object_ref.h"
|
||||
|
||||
namespace lean {
|
||||
template<typename C> object * to_array(C const & elems) {
|
||||
|
|
@ -7,8 +7,8 @@ Author: Leonardo de Moura
|
|||
#pragma once
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <lean/debug.h>
|
||||
#include <lean/optional.h>
|
||||
#include "runtime/debug.h"
|
||||
#include "runtime/optional.h"
|
||||
|
||||
namespace lean {
|
||||
/**
|
||||
|
|
@ -8,9 +8,9 @@ Author: Leonardo de Moura
|
|||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <lean/hash.h>
|
||||
#include <lean/lean.h>
|
||||
#include <lean/compact.h>
|
||||
#include "runtime/hash.h"
|
||||
#include "runtime/compact.h"
|
||||
|
||||
#ifndef LEAN_WINDOWS
|
||||
#include <sys/mman.h>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Author: Leonardo de Moura
|
|||
#include <functional>
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
#include <lean/object.h>
|
||||
#include "runtime/object.h"
|
||||
|
||||
namespace lean {
|
||||
typedef lean_object * object_offset;
|
||||
|
|
@ -17,7 +17,7 @@ Author: Leonardo de Moura
|
|||
// Support for pid
|
||||
#include<unistd.h>
|
||||
#endif
|
||||
#include <lean/debug.h>
|
||||
#include "runtime/debug.h"
|
||||
|
||||
namespace lean {
|
||||
static volatile bool g_has_violations = false;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Author: Leonardo de Moura
|
|||
#pragma once
|
||||
#include <iostream>
|
||||
#include <typeinfo>
|
||||
#include <lean/exception.h>
|
||||
#include "runtime/exception.h"
|
||||
|
||||
#ifndef __has_builtin
|
||||
#define __has_builtin(x) 0
|
||||
|
|
@ -6,9 +6,9 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <lean/exception.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/exception.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/sstream.h"
|
||||
|
||||
namespace lean {
|
||||
throwable::throwable(char const * msg):m_msg(msg) {}
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include <lean/debug.h>
|
||||
#include <lean/int64.h>
|
||||
#include "runtime/debug.h"
|
||||
#include "runtime/int64.h"
|
||||
|
||||
namespace lean {
|
||||
|
||||
|
|
@ -4,13 +4,13 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/alloc.h>
|
||||
#include <lean/debug.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/object.h>
|
||||
#include <lean/io.h>
|
||||
#include <lean/stack_overflow.h>
|
||||
#include <lean/process.h>
|
||||
#include "runtime/alloc.h"
|
||||
#include "runtime/debug.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/object.h"
|
||||
#include "runtime/io.h"
|
||||
#include "runtime/stack_overflow.h"
|
||||
#include "runtime/process.h"
|
||||
|
||||
namespace lean {
|
||||
extern "C" void lean_initialize_runtime_module() {
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <limits>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/exception.h>
|
||||
#include <lean/memory.h>
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/exception.h"
|
||||
#include "runtime/memory.h"
|
||||
|
||||
namespace lean {
|
||||
LEAN_THREAD_VALUE(size_t, g_max_heartbeat, 0);
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#pragma once
|
||||
#include <utility>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/stackinfo.h>
|
||||
#include <lean/exception.h>
|
||||
#include <lean/flet.h>
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/stackinfo.h"
|
||||
#include "runtime/exception.h"
|
||||
#include "runtime/flet.h"
|
||||
|
||||
namespace lean {
|
||||
/** \brief Increment thread local counter for approximating elapsed time. */
|
||||
|
|
@ -36,12 +36,12 @@ Authors: Leonardo de Moura, Sebastian Ullrich
|
|||
#include <cctype>
|
||||
#include <sys/stat.h>
|
||||
#include "util/io.h"
|
||||
#include <lean/alloc.h>
|
||||
#include <lean/io.h>
|
||||
#include <lean/utf8.h>
|
||||
#include <lean/object.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/allocprof.h>
|
||||
#include "runtime/alloc.h"
|
||||
#include "runtime/io.h"
|
||||
#include "runtime/utf8.h"
|
||||
#include "runtime/object.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/allocprof.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define S_ISDIR(mode) ((mode & _S_IFDIR) != 0)
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include <lean/buffer.h>
|
||||
#include <lean/object_ref.h>
|
||||
#include "runtime/buffer.h"
|
||||
#include "runtime/object_ref.h"
|
||||
|
||||
namespace lean {
|
||||
template<typename T> T const & head(object * o) { return static_cast<T const &>(cnstr_get_ref(o, 0)); }
|
||||
|
|
@ -7,9 +7,9 @@ Author: Leonardo de Moura
|
|||
#include <new>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <lean/exception.h>
|
||||
#include <lean/memory.h>
|
||||
#include <lean/thread.h>
|
||||
#include "runtime/exception.h"
|
||||
#include "runtime/memory.h"
|
||||
#include "runtime/thread.h"
|
||||
|
||||
#ifndef LEAN_CHECK_MEM_THRESHOLD
|
||||
#define LEAN_CHECK_MEM_THRESHOLD 200
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/thread.h>
|
||||
#include <lean/mpq.h>
|
||||
#include <lean/sstream.h>
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/mpq.h"
|
||||
#include "runtime/sstream.h"
|
||||
|
||||
namespace lean {
|
||||
MK_THREAD_LOCAL_GET_DEF(mpz, get_tlocal1);
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include <lean/mpz.h>
|
||||
#include "runtime/mpz.h"
|
||||
|
||||
namespace lean {
|
||||
/**
|
||||
|
|
@ -6,9 +6,9 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <lean/sstream.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/mpz.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/mpz.h"
|
||||
|
||||
namespace lean {
|
||||
mpz::mpz(uint64 v):
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ Author: Leonardo de Moura
|
|||
#include <string>
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
#include <lean/int64.h>
|
||||
#include <lean/debug.h>
|
||||
#include <lean/lean.h>
|
||||
#include "runtime/int64.h"
|
||||
#include "runtime/debug.h"
|
||||
|
||||
namespace lean {
|
||||
|
||||
|
|
@ -9,16 +9,16 @@ Author: Leonardo de Moura
|
|||
#include <vector>
|
||||
#include <deque>
|
||||
#include <cmath>
|
||||
#include <lean/object.h>
|
||||
#include <lean/mpq.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/utf8.h>
|
||||
#include <lean/alloc.h>
|
||||
#include <lean/debug.h>
|
||||
#include <lean/hash.h>
|
||||
#include <lean/flet.h>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/buffer.h>
|
||||
#include "runtime/object.h"
|
||||
#include "runtime/mpq.h"
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/utf8.h"
|
||||
#include "runtime/alloc.h"
|
||||
#include "runtime/debug.h"
|
||||
#include "runtime/hash.h"
|
||||
#include "runtime/flet.h"
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/buffer.h"
|
||||
|
||||
// see `Task.Priority.max`
|
||||
#define LEAN_MAX_PRIO 8
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Author: Leonardo de Moura
|
|||
#pragma once
|
||||
#include <string>
|
||||
#include <lean/lean.h>
|
||||
#include <lean/mpz.h>
|
||||
#include "runtime/mpz.h"
|
||||
|
||||
namespace lean {
|
||||
typedef uint8_t uint8;
|
||||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/object_ref.h>
|
||||
#include "runtime/object_ref.h"
|
||||
|
||||
namespace lean {
|
||||
object_ref mk_cnstr(unsigned tag, unsigned num_objs, object ** objs, unsigned scalar_sz) {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ Author: Leonardo de Moura
|
|||
#pragma once
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
#include <lean/object.h>
|
||||
#include <lean/optional.h>
|
||||
#include "runtime/object.h"
|
||||
#include "runtime/optional.h"
|
||||
|
||||
namespace lean {
|
||||
/* Smart point for Lean objects. It is useful for writing C++ code that manipulates Lean objects. */
|
||||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Sebastian Ullrich
|
||||
*/
|
||||
#pragma once
|
||||
#include <lean/object_ref.h>
|
||||
#include "runtime/object_ref.h"
|
||||
|
||||
namespace lean {
|
||||
/* Wrapper for manipulating Lean option values in C++ */
|
||||
|
|
@ -6,7 +6,7 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#pragma once
|
||||
#include <lean/lean.h>
|
||||
#include <lean/debug.h>
|
||||
#include "runtime/debug.h"
|
||||
|
||||
namespace lean {
|
||||
/**
|
||||
|
|
@ -5,7 +5,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#pragma once
|
||||
#include <lean/object_ref.h>
|
||||
#include "runtime/object_ref.h"
|
||||
|
||||
namespace lean {
|
||||
/* Wrapper for manipulating Lean pairs in C++ */
|
||||
|
|
@ -4,7 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
|
||||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <lean/object.h>
|
||||
#include "runtime/object.h"
|
||||
|
||||
namespace lean {
|
||||
extern "C" obj_res lean_system_platform_nbits(obj_arg) {
|
||||
|
|
|
|||
|
|
@ -25,13 +25,13 @@ Author: Jared Roesch
|
|||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include <lean/object.h>
|
||||
#include <lean/io.h>
|
||||
#include <lean/array_ref.h>
|
||||
#include <lean/string_ref.h>
|
||||
#include <lean/option_ref.h>
|
||||
#include <lean/pair_ref.h>
|
||||
#include <lean/buffer.h>
|
||||
#include "runtime/object.h"
|
||||
#include "runtime/io.h"
|
||||
#include "runtime/array_ref.h"
|
||||
#include "runtime/string_ref.h"
|
||||
#include "runtime/option_ref.h"
|
||||
#include "runtime/pair_ref.h"
|
||||
#include "runtime/buffer.h"
|
||||
|
||||
namespace lean {
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include <vector>
|
||||
#include <lean/object.h>
|
||||
#include <lean/hash.h>
|
||||
#include "runtime/object.h"
|
||||
#include "runtime/hash.h"
|
||||
|
||||
namespace lean {
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ Port of the corresponding Rust code (see links below).
|
|||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <lean/stack_overflow.h>
|
||||
#include "runtime/stack_overflow.h"
|
||||
|
||||
namespace lean {
|
||||
// stack guard of the main thread
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <memory.h>
|
||||
#include <iostream>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/exception.h>
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/exception.h"
|
||||
|
||||
#if !defined(LEAN_USE_SPLIT_STACK)
|
||||
#if defined(LEAN_WINDOWS)
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <lean/sstream.h>
|
||||
#include <lean/object_ref.h>
|
||||
#include <lean/list_ref.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "runtime/object_ref.h"
|
||||
#include "runtime/list_ref.h"
|
||||
namespace lean {
|
||||
/* Wrapper for Lean string objects */
|
||||
class string_ref : public object_ref {
|
||||
|
|
@ -13,11 +13,11 @@ Author: Leonardo de Moura
|
|||
#include <pthread.h>
|
||||
#endif
|
||||
#include <lean/config.h>
|
||||
#include <lean/thread.h>
|
||||
#include <lean/interrupt.h>
|
||||
#include <lean/exception.h>
|
||||
#include <lean/alloc.h>
|
||||
#include <lean/stack_overflow.h>
|
||||
#include "runtime/thread.h"
|
||||
#include "runtime/interrupt.h"
|
||||
#include "runtime/exception.h"
|
||||
#include "runtime/alloc.h"
|
||||
#include "runtime/stack_overflow.h"
|
||||
|
||||
#ifndef LEAN_DEFAULT_THREAD_STACK_SIZE
|
||||
#define LEAN_DEFAULT_THREAD_STACK_SIZE 8*1024*1024 // 8Mb
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <lean/debug.h>
|
||||
#include <lean/optional.h>
|
||||
#include <lean/utf8.h>
|
||||
#include "runtime/debug.h"
|
||||
#include "runtime/optional.h"
|
||||
#include "runtime/utf8.h"
|
||||
|
||||
namespace lean {
|
||||
bool is_utf8_next(unsigned char c) { return (c & 0xC0) == 0x80; }
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Author: Leonardo de Moura
|
|||
#pragma once
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <lean/optional.h>
|
||||
#include "runtime/optional.h"
|
||||
|
||||
namespace lean {
|
||||
using uchar = unsigned char;
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue