Skip to content

ConstraintAnalysis: Handle cases with extra constraints - #8988

Open
kripken wants to merge 15 commits into
WebAssembly:mainfrom
kripken:constraint.eq.best
Open

ConstraintAnalysis: Handle cases with extra constraints#8988
kripken wants to merge 15 commits into
WebAssembly:mainfrom
kripken:constraint.eq.best

Conversation

@kripken

@kripken kripken commented Aug 11, 2026

Copy link
Copy Markdown
Member
  1. When incrementing x++, drop things we can't increment, rather than
    giving up entirely.
  2. When extending ranges, do not look for a single Eq constraint to a
    constant - do not give up if other constraints exist aside from an Eq one.

These are hard to test separately. While doing so I also fixed two other
issues (which I could split out, but again, full testing only really happens
together):

  • We negated operations rather than flipping them.
  • We should propagate constants: if x is a constant, than any constraint
    referring to it can use that constant.

@kripken
kripken requested a review from tlively August 11, 2026 23:20
@kripken
kripken requested a review from a team as a code owner August 11, 2026 23:20
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