Skip to content
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

[asl] Change type of index in for loop #920

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

HadrienRenaud
Copy link
Collaborator

@HadrienRenaud HadrienRenaud commented Jul 30, 2024

This PR changes the type of the index in a for loop. Before it was a complex operation to determine the maximum and the minimum of the bounds of the loop. Now the type of i in for i = a to b is simply:

  • integer {a..b} if a and b are well-constrained;
  • the unconstrained integer type otherwise.

TPositive8 is now split in two:

Copy link
Collaborator

@Roman-Manevich Roman-Manevich left a comment

Choose a reason for hiding this comment

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

LGTM

@HadrienRenaud HadrienRenaud force-pushed the asl-for-index-type branch 4 times, most recently from d4a4df3 to 1e1831d Compare August 5, 2024 11:16
@HadrienRenaud HadrienRenaud merged commit 444c421 into herd:master Aug 5, 2024
3 checks passed
@HadrienRenaud HadrienRenaud deleted the asl-for-index-type branch August 5, 2024 15:36
@Roman-Manevich Roman-Manevich mentioned this pull request Aug 8, 2024
4 tasks
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