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

dynamic gradual guarantee broken for permissions #30

Open
JonathanAldrich opened this issue May 21, 2022 · 0 comments
Open

dynamic gradual guarantee broken for permissions #30

JonathanAldrich opened this issue May 21, 2022 · 0 comments

Comments

@JonathanAldrich
Copy link
Member

The attached file avl-bug1.c0.txt is a version of a correctly running c0 program with "//@requires ?;" added to functions that should need it. Running with -x yields the error:

sbt:gvc0> run -x avl.c0
[info] running (fork) gvc.Main -x avl.c0
[error] Error: Field access runtime check failed for struct Node.key
[error] Nonzero exit code returned from runner: 1
[error] (Compile / run) Nonzero exit code returned from runner: 1
[error] Total time: 4 s, completed May 20, 2022, 10:26:55 PM

It appears that the ? at the top of the function is not generating the required permission everywhere it needs to.

I tried to isolate the issue by commenting out accesses to the key field, but I ran into another bug (filing separately)

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