Repository navigation
Fix compiler value and artifact handling, std boundaries, and Whale lowering - #958
Merged
Merged
Conversation
Preserve Typed HIR conversions, wrapping and source-ordered single evaluation for +=, -= and *=. Keep division and remainder explicit unsupported operations. Closes wavefnd#872 Signed-off-by: LunaStev <[email protected]>
Expose x1 as an output in all BSD syscall wrappers and regress optimized runtime allocation sizes and emitted register constraints. Closes wavefnd#933 Signed-off-by: LunaStev <[email protected]>
Load address-backed fixed arrays when initialization, nested aggregates or method arguments require independent values. Preserve ordinary lvalue storage behavior. Closes wavefnd#953 Signed-off-by: LunaStev <[email protected]>
Intern exact named types with disjoint semantic-kind tags so structural names, Unicode and nested applications cannot alias specialization caches. Preserve recursion limits and deterministic reuse. Closes wavefnd#952 Signed-off-by: LunaStev <[email protected]>
Route continue through the increment and break directly to the exit, preserving initializer scope and source-ordered conditions and effects. Closes wavefnd#873 Signed-off-by: LunaStev <[email protected]>
Materialize Typed HIR constant values without runtime initializer evaluation. Preserve dependency casts, scalar storage bits, local shadowing and frontend diagnostics. Closes wavefnd#874 Signed-off-by: LunaStev <[email protected]>
Consume pointer values before index effects and materialize computed aggregate bases once in entry storage. Preserve lvalue writes and pointer-to-array projection and stride. Closes wavefnd#954 Signed-off-by: LunaStev <[email protected]>
Use target-selected invalid and overflow errors and WASI NOSYS across providers and allocator validation. Preserve genuine host errors, interruption retries and bare WebAssembly conventions. Closes wavefnd#945 Signed-off-by: LunaStev <[email protected]>
Compare logical and effective destinations before emission, respecting direct writes, atomic replacement, MSVC staging and identity passthrough. Cover normalized, symlink, inode and Windows case aliases without truncating sentinels. Closes wavefnd#948 Signed-off-by: LunaStev <[email protected]>
LunaStev
force-pushed
the
fix/nine-correctness-whale
branch
from
October 18, 2026 13:43
70e4cae to
2d38947
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wave can reuse incompatible generic specializations, overwrite requested LLVM artifacts, and reject valid fixed-array values or computed index bases. The std providers also expose incorrect optimized Darwin syscall state and mixed WASI error numbers. This batch fixes those failures and extends the existing Whale scalar/control-flow subset using verified Typed HIR.
LLVM remains the default. Whale keeps the official Git dependency locked at 9eed1958 and its Linux amd64/O0 verified textual-IR contract. Integer/control-flow tests execute with the bounded interpreter; floating cases verify IR and storage bits. This PR adds no native Whale execution.
Validation (Rust 1.89, Cargo jobs=2, LLVM 21):
Closes #952.
Closes #948.
Closes #933.
Closes #945.
Closes #953.
Closes #954.
Closes #872.
Closes #873.
Closes #874.
CI follow-up: run 39130673872 passed 34/35 jobs, including Darwin and Windows build/test lanes. The sole failure was shared/test127.wave in the WASI runtime suite: its unavailable-randomness expectation still used -38 after the provider adopted WASI NOSYS (-52). The shared case now selects the correct target value; random_fill's existing argument-validation results remain unchanged. The controlled-host regression also checks that a nonempty random_fill propagates -52 without modifying its buffer or calling the host.
The original exit-2 failure was reproduced before the fix. Afterward the exact CI-selected WASI runtime list passed 149/149 cases, both focused provider tests passed at O0/O2, and shared/test127 passed 26 cross-target IR/object builds plus eight native/WebAssembly executions at O0/O2. Std policy and whitespace checks pass. The correction is folded into the #945 commit, preserving nine issue-specific commits.