Skip to content

Resolve builtin results and abortive expression flow - #598

Merged
LPTK merged 1 commit into
hkust-taco:hkmc2from
LPTK:codex/pr575-expression-results
Oct 30, 2026
Merged

LPTK merged 1 commit into
hkust-taco:hkmc2from
LPTK:codex/pr575-expression-results

Conversation

@LPTK

@LPTK LPTK commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

[GPT-6 Astra]

Builtin applications lacked result shapes, while exhaustive splits and loops could contribute spurious normal values. Share operand-dependent builtin result rules between resolution and IR, track ordered branch fallthrough and loop repetition, and avoid lowering unreachable continuations. Keep Wasm builtin results conservative.

Extract B02 (E09 and E16) from PR #575. Add focused JS and explicitly typed Wasm regressions, retain narrowing-cast coverage with Num inputs and a fractional SCC result, and include the regenerated goldens and builtin approximation documentation.

Validation: Metals compilation, ctest and cwtest, focused diff tests, and hkmc2AllTests/test (1,157 tests). Confirmed the builtin-call and abortive-control-flow regressions fail on the extraction base. Reviewed the complete diff and checked whitespace.

Builtin applications lacked result shapes, while exhaustive splits and loops could contribute spurious normal values. Share operand-dependent builtin result rules between resolution and IR, track ordered branch fallthrough and loop repetition, and avoid lowering unreachable continuations. Keep Wasm builtin results conservative.

Extract B02 (E09 and E16) from PR hkust-taco#575. Add focused JS and explicitly typed Wasm regressions, retain narrowing-cast coverage with Num inputs and a fractional SCC result, and include the regenerated goldens and builtin approximation documentation.

Validation: Metals compilation, ctest and cwtest, focused diff tests, and hkmc2AllTests/test (1,157 tests). Confirmed the builtin-call and abortive-control-flow regressions fail on the extraction base. Reviewed the complete diff and checked whitespace.

@LPTK LPTK left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@LPTK
LPTK merged commit 1ad11c5 into hkust-taco:hkmc2 Oct 30, 2026
1 check passed
@LPTK
LPTK deleted the codex/pr575-expression-results branch October 30, 2026 06:04
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.

2 participants