Skip to content

Cleanup of the file kernel/nativecode.ml#22108

Open
IBBXEF wants to merge 2 commits into
rocq-prover:masterfrom
IBBXEF:cleanup
Open

Cleanup of the file kernel/nativecode.ml#22108
IBBXEF wants to merge 2 commits into
rocq-prover:masterfrom
IBBXEF:cleanup

Conversation

@IBBXEF

@IBBXEF IBBXEF commented Jun 9, 2026

Copy link
Copy Markdown

While tinkering with the native code generation, I found two problems in the file nativecode.ml.
While those do not change the behaviour of the code in any way, they can be confusing to the reader and may cause uneeded computation.

@IBBXEF IBBXEF requested a review from a team as a code owner June 9, 2026 13:35
@coqbot-app coqbot-app Bot added the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Jun 9, 2026
@ppedrot ppedrot self-assigned this Jun 9, 2026
@ppedrot ppedrot added this to the 9.3+rc1 milestone Jun 9, 2026
@ppedrot ppedrot added the kind: cleanup Code removal, deprecation, refactorings, etc. label Jun 9, 2026
@ppedrot

ppedrot commented Jun 9, 2026

Copy link
Copy Markdown
Member

@coqbot run full ci

@coqbot-app coqbot-app Bot removed the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Jun 9, 2026
Comment thread kernel/nativecode.ml Outdated
let sig_str = if arity > 0 then aux "of Nativevalues.t" (arity-1) else "" in
let cstr = string_of_construct "" ~constant:true ind tag in
Format.fprintf fmt " | %s %s@\n" cstr sig_str
Format.fprintf fmt " | %s @\n" cstr

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Format.fprintf fmt " | %s @\n" cstr
Format.fprintf fmt " | %s@\n" cstr

also unneeded

@ppedrot ppedrot added the needs: progress Work in progress: awaiting action from the author. label Jun 12, 2026
@coqbot-app coqbot-app Bot added the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Jun 15, 2026
@ppedrot

ppedrot commented Jun 15, 2026

Copy link
Copy Markdown
Member

@coqbot run full ci

@coqbot-app coqbot-app Bot removed the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Jun 15, 2026
@ppedrot ppedrot removed the needs: progress Work in progress: awaiting action from the author. label Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: cleanup Code removal, deprecation, refactorings, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants