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
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
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
kvmap.cpp
kvmap.h fix: Windows needs more LEAN_EXPORTs 2024-08-12 14:14:42 +02:00
lbool.cpp
lbool.h
list.h
list_fn.cpp
list_fn.h
macros.h
map_foreach.cpp
map_foreach.h
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
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
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
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
rc.h
shell.cpp refactor: port more of shell.cpp to Lean (#10086) 2025-08-26 20:02:42 +00:00
test.h
timeit.cpp
timeit.h
timer.cpp
timer.h
unit.h
unlock_guard.h