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

Concretize all abstract functions in the IO-spec #231

Merged
merged 21 commits into from
Nov 15, 2023

Conversation

mlimbeck
Copy link
Collaborator

@mlimbeck mlimbeck commented Oct 12, 2023

All abstract functions in the IO-spec are concretized.

@jcp19 Can you take a closer look at the following functions:

  • is_target and link_type are not given by Isabelle and have some freedom on how they can be defined.
  • dp3s_forward_ext has its existentials removed but there is again some freedom what arguments are fed to is_target.
  • enter_guard was too strict and needs a case distinction on the next interface (v.IO_Internal_val1_4)
  • enter_guard checks some(v.IO_Internal_val1_2) in domain(s.ibuf) ==> . Are we sure we need an implication and not a conjunction?
  • exit_guard checks none[IO_ifs] in domain(s.ibuf) ==>. Are we sure we need an implication and not a conjunction?
  • send_guard checks v.IO_val_Pkt2_1 in domain(s.obuf) ==>. Are we sure we need an implication and not a conjunction?

@mlimbeck mlimbeck marked this pull request as ready for review November 1, 2023 12:53
verification/io/dataplane_abstract.gobra Outdated Show resolved Hide resolved
verification/io/dataplane_abstract.gobra Outdated Show resolved Hide resolved
verification/io/dataplane_abstract.gobra Show resolved Hide resolved
verification/io/dataplane_abstract.gobra Outdated Show resolved Hide resolved
verification/io/io-spec.gobra Outdated Show resolved Hide resolved
verification/io/router.gobra Outdated Show resolved Hide resolved
verification/io/router.gobra Outdated Show resolved Hide resolved
verification/io/router.gobra Outdated Show resolved Hide resolved
verification/io/router.gobra Outdated Show resolved Hide resolved
verification/io/router.gobra Outdated Show resolved Hide resolved
@jcp19 jcp19 requested a review from Dspil November 5, 2023 11:19
@jcp19
Copy link
Contributor

jcp19 commented Nov 5, 2023

The CI is currently failing due to changes in Gobra, but it should go through after #234 is merged. @Dspil it would be great if you could take a look as well, given that you also worked extensively on these files

@jcp19 jcp19 self-requested a review November 15, 2023 15:18
verification/io/io-spec.gobra Outdated Show resolved Hide resolved
verification/io/io-spec.gobra Outdated Show resolved Hide resolved
Copy link
Contributor

@jcp19 jcp19 left a comment

Choose a reason for hiding this comment

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

LGTM! Let's merge it when verification goes through

@jcp19 jcp19 merged commit c0b039e into viperproject:master Nov 15, 2023
4 checks passed
@jcp19 jcp19 mentioned this pull request Dec 5, 2023
Closed
13 tasks
@mlimbeck mlimbeck deleted the instantiate-IO-Spec-functions branch December 20, 2023 13:10
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.

3 participants