cli: lower scalar binary operands iteratively

This commit is contained in:
dev committed 2026-10-10 17:55:46 +03:00
1 parent e3f4695efe
commit 6945b511a4
5 files changed
+572 -117

No files matched your search

+2
View File
@@ -531,4 +531,6 @@ A subsequent finite source probe, `let n = 1; return - … n;` in an i64 functio
The [expected-use increment](source-expression-depth-audit.md#expected-use-query-continuations) repairs that mutual expression/statement/block query path. It preserves lazy hint queries, search order, cast hint removal and the outer let rebinding barrier; deep inferred unary checks accept through 65,536 and missing hints retain E7007. No new inference or acceptance limit is introduced. Follow-up finite probes now confirm separate native failures at 1,024 levels in binary lowering, parenthesized parsing and generic expression transformation. Q-061 remains open for those observed paths and the remaining inventory.
The [binary operand increment](source-expression-depth-audit.md#binary-operand-lowering-continuations) shares explicit continuations with unary lowering, preserving type/error priority, instruction order and short-circuit CFG. Arithmetic checks/lowerings accept through 65,536 operations; deep boolean chains now reach the existing E5101 block limit without stack failure. No normative depth limit or operator rule changes. Current parenthesized and generic-unary checks still abort at 1,024 levels; Q-061's remaining inventory and independent Phase 6 gates stay open.
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.