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

Adding only tick variables as implicit binders #66

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Conversation

aseemr
Copy link
Contributor

@aseemr aseemr commented Apr 25, 2024

//
// Pulse checker adds implicit binders for 'n1 and 'n2
//   at erased types
//
fn swap (r1 r2:ref U32.t)
  requires
      pts_to r1 'n1 **
      pts_to r2 'n2
  ensures
      pts_to r1 'n2 **
      pts_to r2 'n1



//
// Since p and n are non tick variables,
//   this gives an error "Identifiers (n, p) not found, consider adding them as binders"
//
[@@ expect_failure]
fn test_read (r:ref U32.t)
   requires pts_to r #p n
   returns x : U32.t
   ensures pts_to r #p x

@aseemr aseemr merged commit b82971a into main Apr 25, 2024
1 check passed
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.

1 participant