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

Improve error when implicit is solved to ghost value #319

Open
mtzguido opened this issue Feb 11, 2025 · 0 comments
Open

Improve error when implicit is solved to ghost value #319

mtzguido opened this issue Feb 11, 2025 · 0 comments

Comments

@mtzguido
Copy link
Member

#lang-pulse
open Pulse

fn foo (r : ref int) (#x : int)
  requires pts_to r x
  ensures  pts_to r x
{ () }

fn test (r : ref int) (#x : erased int)
  requires pts_to r x
  ensures  pts_to r x
{
  foo r;
}

The previous snippet should fail indeed, since we can't reveal x, but the error is not very informative:

- prover error
- For term (<stapp>foo r #x) implicit solution x has ghost effect
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

No branches or pull requests

1 participant