Skip to content

[vastly] Add support for casts and module parameters.#860

Merged
meheff merged 4 commits intomainfrom
meheff/2026-03-05-vastly-casts
Mar 6, 2026
Merged

[vastly] Add support for casts and module parameters.#860
meheff merged 4 commits intomainfrom
meheff/2026-03-05-vastly-casts

Conversation

@meheff
Copy link
Contributor

@meheff meheff commented Mar 6, 2026

No description provided.

@meheff meheff requested a review from cdleary March 6, 2026 19:18
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

let mut env = init_function_env(f, args);

P1 Badge Carry module params into combo function environments

eval_combo now seeds env with m.consts, but function calls rebuild a fresh env via init_function_env(f, args) that only contains args/locals/return. As a result, a helper function that references a module parameter (e.g. Mask) fails with unknown identifier during normal eval and coverage eval, breaking parameterized modules that use functions.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@meheff meheff force-pushed the meheff/2026-03-05-vastly-casts branch from b1ea128 to 78e9a93 Compare March 6, 2026 19:31
@meheff meheff force-pushed the meheff/2026-03-05-vastly-casts branch from 78e9a93 to 9b48e86 Compare March 6, 2026 20:32
@meheff meheff force-pushed the meheff/2026-03-05-vastly-casts branch from f3f24e0 to 86afb0b Compare March 6, 2026 20:48
@meheff
Copy link
Contributor Author

meheff commented Mar 6, 2026

💡 Codex Review

let mut env = init_function_env(f, args);

P1 Badge Carry module params into combo function environments
eval_combo now seeds env with m.consts, but function calls rebuild a fresh env via init_function_env(f, args) that only contains args/locals/return. As a result, a helper function that references a module parameter (e.g. Mask) fails with unknown identifier during normal eval and coverage eval, breaking parameterized modules that use functions.

ℹ️ About Codex in GitHub

Fixed and added test.

@meheff meheff merged commit d657db1 into main Mar 6, 2026
12 checks passed
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