lean4-htt/src/util
Mac Malone db3fb47109
refactor: port more of shell.cpp to Lean (#10086)
This PR ports more of the post-initialization C++ shell code to Lean.

All that remains is the initialization of the profiler and task manager.
As initialization tasks rather than main shell code, they were left in
C++ (where the rest of the initialization code currently is).

The `max_memory` and `timeout` Lean options used by the the `--memory`
and `--timeout` command-line options are now properly registered. The
server defaults for max memory and max heartbeats (timeout) were removed
as they were not actually used (because the `server` option that was
checked was neither set nor exists).

This PR also makes better use of the module system in `Shell.lean` and
fixes a minor bug in a previous port where the file name check was
dependent on building the `.ilean` rather than the `.c` file (as was
originally the case).

Fixes #9879.
2025-08-26 20:02:42 +00:00
..
alloc.h perf: use mimalloc with important C++ hash maps (#7868) 2025-04-11 16:23:33 +00:00
ascii.cpp
ascii.h
bit_tricks.cpp chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
bit_tricks.h
CMakeLists.txt fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
escaped.cpp
escaped.h
exception_with_pos.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
ffi.cpp chore: CMAKE_CXX_SYSROOT_FLAG is also needed for linking (#6297) 2024-12-03 16:14:22 +00:00
freset.h
init_module.cpp fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
init_module.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
io.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
kvmap.cpp feat: implement bool operator==(data_value const & a, data_value const & b) using Lean autogenerated code 2021-12-16 16:37:47 -08:00
kvmap.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
lbool.cpp
lbool.h
list.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
list_fn.cpp
list_fn.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
macros.h
map_foreach.cpp fix: dllexport functions not already annotated in header 2021-09-20 18:41:46 +02:00
map_foreach.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
message_definitions.h feat: define Int8 (#5790) 2024-10-25 06:06:40 +00:00
name.cpp fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
name.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
name_generator.cpp chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
name_generator.h
name_hash_map.h
name_hash_set.h
name_map.h
name_set.cpp
name_set.h
nat.h perf: fix implementation of move constructors and move assignment ope… (#4700) 2024-08-02 17:55:03 +00:00
null_ostream.h
option_declarations.cpp feat: hover/go-to-def/refs for options 2022-11-07 20:01:13 +01:00
option_declarations.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
options.cpp chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
options.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
output_channel.h chore: fix spelling mistakes in non-Lean files (#5430) 2024-09-23 21:11:20 +00:00
pair.h chore: remove obsolete serializer code 2021-07-22 18:59:39 +02:00
path.cpp fix: resolve symbolic links through IO.FS.realPath on windows (#8534) 2025-06-13 13:16:13 +00:00
path.h fix: resolve symbolic links through IO.FS.realPath on windows (#8534) 2025-06-13 13:16:13 +00:00
rb_map.h
rb_tree.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
rc.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
shell.cpp refactor: port more of shell.cpp to Lean (#10086) 2025-08-26 20:02:42 +00:00
test.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
timeit.cpp
timeit.h fix: show exclusive profiling times everywhere 2021-06-17 11:25:58 +02:00
timer.cpp
timer.h chore: reduce src/include/lean 2021-09-07 08:24:54 -07:00
unit.h
unlock_guard.h