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

CBMC: More minor clean-up #381

Merged
merged 3 commits into from
Nov 13, 2024
Merged

CBMC: More minor clean-up #381

merged 3 commits into from
Nov 13, 2024

Conversation

mkannwischer
Copy link
Contributor

Depends on #380

Resolves #379

@mkannwischer mkannwischer force-pushed the cbmc-cleanup branch 5 times, most recently from 61a2188 to 75be2c9 Compare November 12, 2024 10:27
@mkannwischer mkannwischer marked this pull request as ready for review November 12, 2024 10:44
Signed-off-by: Matthias J. Kannwischer <[email protected]>
#371 introduced a new macro
ARRAY_ABS_BOUND for bounds that are centered around zero.
This commit makes use of that macro everywhere.

Resolves #379

Signed-off-by: Matthias J. Kannwischer <[email protected]>
#371 introduced
a new ARRAY_ABS_BOUND macro which now has inconsistent naming
with ARRAY_IN_BOUNDS. I propose to rename ARRAY_IN_BOUNDS to
just ARRAY_BOUND for consistency.

This commit renames the function and also moves the array
that it operates on to be the first argument

Signed-off-by: Matthias J. Kannwischer <[email protected]>
@hanno-becker hanno-becker merged commit c530758 into main Nov 13, 2024
33 checks passed
@hanno-becker hanno-becker deleted the cbmc-cleanup branch November 13, 2024 06:55
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.

Use ARRAY_ABS_BOUNDS(...) where possible
2 participants