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

stack allocation: invalid slot #54

Closed
eponier opened this issue Sep 3, 2021 · 1 comment · Fixed by #363
Closed

stack allocation: invalid slot #54

eponier opened this issue Sep 3, 2021 · 1 comment · Fixed by #363
Labels

Comments

@eponier
Copy link
Contributor

eponier commented Sep 3, 2021

In the following example

export fn main () -> reg u64 {
  reg u64 res;
  stack u64[3] a, b;
  a[0:2] = b[1:2];
  res = a[0];
  return res;
}

the OCaml oracle associates a partly negative range to variable b. Then the Coq checker fails due to the negative starting index.

I am not sure what to do here. Should the OCaml oracle be patched to fail early? Or do we consider that this is normal, but just need a bettor error message from the Coq checker?

@eponier
Copy link
Contributor Author

eponier commented Sep 3, 2021

@vbgl

@vbgl vbgl added the bug label Sep 12, 2022
vbgl added a commit that referenced this issue Feb 28, 2023
vbgl added a commit that referenced this issue Mar 1, 2023
eponier pushed a commit that referenced this issue Mar 1, 2023
vbgl added a commit that referenced this issue Mar 2, 2023
vbgl added a commit that referenced this issue Mar 7, 2023
Fixes #54

(cherry picked from commit 6e6e80d)
(cherry picked from commit e32ed87)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants