I apologize if this is not the right place to report this, I admit I haven't investigated it thoroughly.
Using the CertiCoq project to try to extract the parsing of the binary representation of a WebAssembly module (using WasmCert-Coq), I encountered an "anomaly", and at a quick glance, it looked like it originated in one of the phases that MetaCoq is responsible for.
Again, I haven't investigated exactly what part of WasmCert that triggers this, so for now I leave this "minimal" example, and I will report back if I pinpoint it more accurately.
Error:
Anomaly
"File "extraction/pCUICSafeRetyping.ml", line 48, characters 25-31: Assertion failed."
Please report at http://coq.inria.fr/bugs/.
Don't know if it even makes sense to include this, but the assertion failing code snippet in question is this:
(** val infer_as_sort :
checker_flags -> abstract_env_impl -> __ -> PCUICEnvironment.context ->
term -> principal_type -> principal_sort **)
let infer_as_sort cf x_type x _UU0393_ t0 tx =
let filtered_var =
reduce_to_sort cf x_type x _UU0393_
(principal_type_type cf x_type x _UU0393_ t0 tx)
in
(match filtered_var with
| Checked_comp a -> let Coq_existT (u, _) = a in Coq_existT (u, __)
| TypeError_comp _ -> assert false (* absurd case *))
I apologize if this is not the right place to report this, I admit I haven't investigated it thoroughly. Using the CertiCoq project to try to extract the parsing of the binary representation of a WebAssembly module (using WasmCert-Coq), I encountered an "anomaly", and at a quick glance, it looked like it originated in one of the phases that MetaCoq is responsible for. Again, I haven't investigated exactly what part of WasmCert that triggers this, so for now I leave this "minimal" example, and I will report back if I pinpoint it more accurately.
Error message:
Don't know if it even makes sense to include this, but the assertion failing code snippet in question is this: