Open enjhnsn2 opened 3 months ago
The easiest way to support this is by opportunistically doing const eval during lifting here https://github.com/flux-rs/flux/blob/main/crates/flux-middle/src/fhir/lift.rs#L540
Handling more complicated cases like const generics is a bit more involved.
Hello, it appears that using compile-time constants as array lengths. For example, the following code
fails with the error:
You can workaround this by just writing it out as
directly, but thats a little ugly.
Presumably, adding support for compile-time constant lengths is pretty straight forward, would you mind either (1) implementing it, or (2) pointing me to the appropriate part of the code so that I can implement it?
Thanks