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

[CN-exec] Runtime loop invariants #723

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

rbanerjee20
Copy link
Contributor

No description provided.

Copy link
Contributor

@dc-mak dc-mak left a comment

Choose a reason for hiding this comment

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

Can’t comment on the specifics but left a few nits. Do you have any tests to include with this change, demonstrating loops working?

backend/cn/lib/cn_internal_to_ail.ml Outdated Show resolved Hide resolved
backend/cn/lib/cn_internal_to_ail.ml Outdated Show resolved Hide resolved
backend/cn/lib/cn_internal_to_ail.ml Outdated Show resolved Hide resolved
backend/cn/lib/executable_spec_internal.ml Show resolved Hide resolved
| [ _ ] -> []
| x :: xs -> x :: remove_last xs
in
let rec remove_last_semicolon = function
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems amenable to regexps

backend/cn/lib/executable_spec_utils.ml Show resolved Hide resolved
backend/cn/lib/executable_spec_utils.ml Show resolved Hide resolved
backend/cn/lib/ownership_exec.ml Outdated Show resolved Hide resolved
@rbanerjee20
Copy link
Contributor Author

Can’t comment on the specifics but left a few nits. Do you have any tests to include with this change, demonstrating loops working?

I haven't written any new tests but am checking that the previous CI tests that had loop invariants (which was a no-op in runtime testing before) are still working with these new added checks

@rbanerjee20 rbanerjee20 marked this pull request as ready for review November 22, 2024 01:05
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