Skip to content

Move volatile_store and ensure alignment - #794

Merged
adpaco merged 6 commits into
model-checking:mainfrom
adpaco:volatile-store
Feb 15, 2022
Merged

adpaco merged 6 commits into
model-checking:mainfrom
adpaco:volatile-store

Conversation

@adpaco

@adpaco adpaco commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

Description of changes:

Adds an is_aligned function to determine if dst is aligned.
Moves volatile_store out of the PtrWrite hook. Now emits a warning during generation and adds a check for alignment.

Resolved issues:

Part of #727

Call-outs:

Testing:

  • How is this change tested? Existing regression.

  • Is this a refactor change? Almost.

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@adpaco
adpaco requested a review from a team as a code owner February 3, 2022 22:31

@zhassan-aws zhassan-aws left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@adpaco
adpaco merged commit f82a2d8 into model-checking:main Feb 15, 2022
@adpaco adpaco mentioned this pull request Feb 17, 2022
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 26, 2022
* Move `volatile_store` and ensure alignment

* Create util function for concurrency warnings

* Add positive and negative test cases

* Emit concurrency warning with macro
tedinski pushed a commit that referenced this pull request Apr 27, 2022
* Move `volatile_store` and ensure alignment

* Create util function for concurrency warnings

* Add positive and negative test cases

* Emit concurrency warning with macro
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.

4 participants