cli: query expression types and callee paths iteratively

This commit is contained in:
dev committed 2026-10-10 17:21:30 +03:00
1 parent dd73b84085
commit e862e03f2b
5 files changed
+531 -102

No files matched your search

+4
View File
@@ -525,4 +525,8 @@ Follow-up [expression-depth probes](source-expression-depth-audit.md) now confir
The [unary lowering/addressability increment](source-expression-depth-audit.md#unary-lowering-and-addressability-continuations) removes direct not/neg/deref/cast descent and the separately confirmed recursive storage-marking prepass. Typed scalar checks/lowerings pass through 65,536 nodes; direct malformed dereferences return their inner E7005. Instruction order, signed-boundary literals, storage policy, diagnostics and host OOM propagation are retained. Q-061 remains open: a separate 16,384-dereference operand beneath a cast still aborts in `peekType` without stdout JSON, confirming the next query path; other expression/statement and generic paths remain to be audited. No normative depth limit is inferred from these repairs or tests.
The [expression-query increment](source-expression-depth-audit.md#expression-type-query-continuations) repairs that cast/dereference failure and the recursive callee path callbacks. Query continuations retain existing classification and fallback order; host metadata OOM follows the best-effort unknown-result contract. Deep cast/dereference checks now return the expected inner E7005, and deep unknown callees return E7002. This does not close `useIn`, other expression/statement lowering, nested primary parsing or generic expression transformation; no whole-frontend bound or new acceptance rule is claimed.
A subsequent finite source probe, `let n = 1; return - … n;` in an i64 function, accepts 1,024 negations but aborts without stdout JSON at 16,384 in `useIn`, during expected-use inference for the unsuffixed binding. Its raw evidence is in the linked audit. Q-061 remains open for that confirmed path and the other unverified paths above.
Audit these paths separately with finite public/generated source inputs before claiming whole-frontend bounded native-stack processing. Prefer explicit continuations preserving existing syntax, evaluation/query order, diagnostics and OOM behavior. A new depth rejection requires a normative decision; Q-059's type-traversal resolution does not authorize one.