Skip to content

Solidity import: preserve lazy boolean evaluation - #2467

Open
Th0rgal wants to merge 1 commit into
mainfrom
feat/solidity-import-short-circuit
Open

Th0rgal wants to merge 1 commit into
mainfrom
feat/solidity-import-short-circuit

Conversation

@Th0rgal

@Th0rgal Th0rgal commented Oct 3, 2026

Copy link
Copy Markdown
Member

Solidity && and || now lower to selected branches, evaluating the left operand once and keeping RHS guards, mapping reads and helper preludes inside the branch that executes. For example, x == 0 || 100 / x > 1 succeeds at zero without evaluating the division. Unsupported constructs still reject with source locations, including in unreachable operands.

Validation on exact head 3ab874ab66190776c10c63a81429723cc74235d7: all eleven local gates passed (make check, full Verity/Contracts/Smoke build, importer mutations, smoke/loss/generated programs, axiom generator, pinned Morpho pilot, stateful and both require campaigns). Three equivalent source variants agree across 96 A/B/C transactions; 34 acceptance/rejection controls and three lowering mutations pass. Receipts are preserved in linux-validation/short-circuit-3ab874ab-1/ in the mission workspace. An earlier smoke infrastructure failure is preserved separately; the final smoke receipt passes.

No golden model or pilot provenance changes. This is tested lowering, with the existing conditional semantics; no Solidity equivalence proof is claimed. Midnight coverage remains 14/45 at this slice: these operators expose later blockers rather than unlocking complete functions yet.

Published as one construct family. Current main has advanced since this tested head; integration and exact-head checks remain necessary if conflict resolution changes the head. Merge with a merge commit to retain the validated commit.

@Th0rgal
Th0rgal marked this pull request as ready for review October 3, 2026 02:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T02:30:55.701499Z 3ab874a Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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