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

change error msg when section var are cleared #580

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/coq_elpi_HOAS.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,10 @@ let rec constr2lp coq_ctx ~calldepth ~depth state t =
let state, elpi_uvk, _, gsl_t = in_elpi_evar ~calldepth k state in
gls := gsl_t @ !gls;
let args = Evd.expand_existential sigma (k, args) in
let args = CList.firstn (List.length args - coq_ctx.section_len) args in
let argno = List.length args - coq_ctx.section_len in
if (argno < 0) then
nYI "constr2lp: cleared section variables";
let args = CList.firstn argno args in
let state, args = CList.fold_left_map (aux ~depth env) state args in
state, E.mkUnifVar elpi_uvk ~args:(List.rev args) state
| C.Sort s -> in_elpi_sort ~depth state (EC.ESorts.kind sigma s)
Expand Down
Loading