Skip to content

Implementation of assume-reflect#2313

Merged
facundominguez merged 3 commits into
ucsd-progsys:developfrom
jarctan:assumereflect
Aug 14, 2024
Merged

Implementation of assume-reflect#2313
facundominguez merged 3 commits into
ucsd-progsys:developfrom
jarctan:assumereflect

Conversation

@jarctan

@jarctan jarctan commented Jul 31, 2024

Copy link
Copy Markdown
Contributor

Here is the implementation of assume-reflect, following the specification given in #2310. Any comments welcome!

@ranjitjhala

Copy link
Copy Markdown
Member

Wow this is awesome, thanks!!!

@jarctan

jarctan commented Aug 2, 2024

Copy link
Copy Markdown
Contributor Author

I see that there are compile errors for the stack_900 test suite that I didn't have locally, is there a command that I can use to reproduce these errors? I was using stack build liquidhaskell and then ./scripts/test/test_plugin.sh

@facundominguez

Copy link
Copy Markdown
Collaborator

I think the error is due to the fact that liquidhaskell is build with -Werror in CI. I think you can pass --pedantic to stack in order to enable that.

Comment on lines +712 to +717
-- We make sure that the reflected functions are excluded from `gsAsmSigs`, except for the signatures of
-- actual functions in assume-reflect. The latter are added here because 1. it's what makes tests work
-- and 2. so that we probably "shadow" the old signatures of the actual function correctly. Note that even if the
-- signature of the actual function was asserted and not assumed, we do not put our new signature for the actual function
-- in `gsTySigs` (which is for asserted signatures). Indeed, the new signature will *always* be an assumption since we
-- add the extra post-condition that the actual and pretended function behave in the same way.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@nikivazou, does this ring well to you?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Even though this is merged, I still would like to know what you think and would contribute edits if necessary.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This makes sense to me!

@facundominguez facundominguez merged commit 21404ae into ucsd-progsys:develop Aug 14, 2024
@jarctan jarctan deleted the assumereflect branch August 21, 2024 15:06
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