Skip to content

Conversation

mario-bucev
Copy link
Collaborator

@mario-bucev mario-bucev commented Nov 10, 2022

Closes #1271

  • @opaque function do not get their bodies erased until the VCs are generated. This ensures that mutually recursive opaque functions are discovered by the type checker.
  • @opaque function with @inlineOnce only inlines the contracts (the function call remains).
  • Forbids @opaque paired with @inline.
  • Also fixes an incorrect postcondition lemma Map.toListPost (map(a) is not guaranteed to be well-formed).

This PR requires small tweaks to Bolts: epfl-lara/bolts#55

@mario-bucev mario-bucev marked this pull request as ready for review November 14, 2022 16:12
Copy link
Collaborator

@vkuncak vkuncak left a comment

Choose a reason for hiding this comment

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

@samarion This seems OK to me, WDYT ?

@vkuncak vkuncak merged commit 1b6185b into epfl-lara:main Nov 14, 2022
@mario-bucev mario-bucev deleted the fix-1271 branch November 15, 2022 04:49
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.

Measuring decreasing VC for opaque recursive functions not generated
2 participants