Per-operation limits for APIs that accept a ComputationContext.
Context-free BigInt and symbolic constructors are intentionally unbounded; use checked, context-aware entry points when processing untrusted input.
在文件 computation_context.hpp 第 26 行定义.
| 类成员 |
|
size_t |
max_ast_nodes = 1'000'000 |
Reference-expanded nodes per AST or output forest. |
|
size_t |
max_diagnostics = 10'000 |
Stored diagnostics. |
|
size_t |
max_expansion_terms = 100'000 |
One checked expansion. |
|
size_t |
max_input_bytes = 1'048'576 |
One checked input buffer. |
|
size_t |
max_integer_bits = 1'000'000 |
One checked integer result. |
|
size_t |
max_recursion_depth = 256 |
Simultaneous checked depth. |
|
size_t |
max_steps = 10'000'000 |
Cumulative checked steps. |