Skip to content

Fix all FIXME comments in src/#931

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/fix-all-fixme-comments
Draft

Fix all FIXME comments in src/#931
Copilot wants to merge 3 commits intomainfrom
copilot/fix-all-fixme-comments

Conversation

Copy link

Copilot AI commented Mar 10, 2026

Addresses a collection of FIXME markers across the codebase — removing dead parameters, replacing assert false/failwith crashes with proper errors, and implementing missing cases.

Remove unused parameters

  • ecCoreGoal.ml/mli: Drop ?who:string from tc_error, tc_error_exn, tc_error_lazy, tc_lookup_error — was accepted and immediately ignored. All 14 call sites updated.
  • ecUnify.ml/mli: Drop ?hidden:bool from select_op — same issue. Updated the one call site in ecPrinting.ml.

Replace crashes with proper errors

File Location Fix
ecIo.ml parseall assert falseParseError for P_Undo/P_Exit
ecScope.ml add_instance failwith "unsupported"hierror with instance name
ecPhlInline.ml inline_i assert falsetc_error "code pattern doesn't match instruction type"
ecPhlInline.ml pat_of_occs bare assert (Sint.is_empty !occs)tc_error reporting the invalid occurrence numbers (also threads tc into pat_of_occs)
ecPhlSkip.ml t_bdhoare_skip_r_low empty string error → "skip requires comparison to be = or >=, got <="
ecEnv.ml actmem_body assert false for FBabs/FBaliasinvalid_arg
ecTyping.ml i_inuse assert false for Sabstractinvalid_arg
ecPV.ml add_glob three bare assert falseinvalid_arg with messages
ecPV.ml i_eqobs_in_refl, eqobs_inF_refl assert falseinvalid_arg
ecProofTerm.ml apply_pterm_to_local assert false for LD_abs_stinvalid_arg

Implement missing cases

  • ecPhlFel.ml callable_oracles_i: Handle Sabstract by folding callable_oracles_f over aus_calls from the abstract statement's use set.
  • ecEnv.ml ld_subst: Implement LD_abs_st substitution — apply ty_subst/pv_subst/x_subst to aus_reads, aus_writes, and aus_calls.

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits March 10, 2026 10:31
Co-authored-by: namasikanam <22532925+namasikanam@users.noreply.github.com>
…ing cases

Co-authored-by: namasikanam <22532925+namasikanam@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix all FIXME comments in the codebase Fix all FIXME comments in src/ Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants