jasmin icon indicating copy to clipboard operation
jasmin copied to clipboard

stack allocation: invalid slot

Open eponier opened this issue 4 years ago • 1 comments

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 avatar Sep 03 '21 10:09 eponier

@vbgl

eponier avatar Sep 03 '21 10:09 eponier