Skip to content

[ir] strict verification for comparison operations #2251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

cdleary
Copy link
Collaborator

@cdleary cdleary commented May 23, 2025

  • non-equality cmp comparisons (ult, slt, etc.) now strictly require bits type operands, aligning verifier with ir_semantics.md
  • equality comparisons (eq, ne) now disallow Token type operands in the verifier

@cdleary cdleary marked this pull request as ready for review May 23, 2025 01:11
* non-equality cmp comparisons (ult, slt, etc.) now strictly require `bits`
  type operands, aligning verifier with `ir_semantics.md`
*  equality comparisons (eq, ne) now disallow `Token` type operands in the
   verifier
@cdleary cdleary force-pushed the cdleary/2025-05-22-array-cmp-check-ir-equivalence branch from 0a6e136 to 8179ea8 Compare May 23, 2025 01:11
@copybara-service copybara-service bot merged commit 24aa54f into google:main May 29, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants