Skip to content

Issues batch F: #1071 #984 #989 #2269 - #3255

Merged
ehartford merged 4 commits into
static-textfrom
issues-f
Nov 11, 2026
Merged

ehartford merged 4 commits into
static-textfrom
issues-f

Conversation

@ehartford

@ehartford ehartford commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Battery: GREEN on this commit 433e59c (seed-driven, with uat --strict).

Eric Hartford added 4 commits November 11, 2026 01:59
test/pcre2_smoke.w, pcre2_verify.w and pcre2_sanity_check.w do not compile
(19, 17 and 3 errors: raw calls outside unsafe, old syntax) and nothing in
the build names them. The PCRE2 port is tested by its corpus lanes
(build/pcre2.w: the migrated pcre2test over upstream's testdata). Law 9.
…tructural validator; emit-C trusts it

For TK_SWITCH_INT the C backend read a default of 0 as "no default:
abort()" and the LLVM backend as bb0. No producer writes 0 and none may:
bb0 is the entry, which LLVM forbids a predecessor. validate_mir_body
refuses it, and emit-C's three `d2 != 0 … abort()` branches go. Negative
cases for validate_mir_body (#989): no block, a goto out of range, a
switch defaulting to the entry (test/internals/
mir_structural_validator_test.w).
A read of a local a reset-on-move zero fill blanked is refused; the same
read after the local is written again is accepted. With the structural
cases beside it, validate_mir_body and validate_use_after_kill_body both
have malformed-MIR coverage (test/internals/mir_structural_validator_test.w).
…ence with no dereference

mir_validate_place_type returns the type lowering declared for a place
and never walks its projections, so `_7.a` with `_7: &Pair` (declared
i64) passed and codegen indexed the pointer. The per-place projection
check, which walks derived types, now names it. Lowering writes
`_1.*.a`; 60 behavior tests validate clean under the rule. Negative and
positive cases in test/internals/mir_structural_validator_test.w.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant