Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Use a Pulse-specific _zero_for_deref instead of Low* KrmlLib#592

Closed
tahina-pro wants to merge 3 commits intoFStarLang:fstar2from
tahina-pro:_taramana_zero_for_deref
Closed

Use a Pulse-specific _zero_for_deref instead of Low* KrmlLib#592
tahina-pro wants to merge 3 commits intoFStarLang:fstar2from
tahina-pro:_taramana_zero_for_deref

Conversation

@tahina-pro
Copy link
Member

This PR cuts the extraction dependency on Low* KrmlLib for extraction of Pulse code to C or Rust via Karamel.

So far Pulse extraction was relying on C._zero_for_deref to extract access to references using BufLoad from the Karamel AST: using this index instead of 0 makes Karamel turn an array access into a pointer access. But C._zero_for_deref is defined in KrmlLib, which is written in Low*.

This PR replaces C._zero_for_deref with a Pulse-specific definition, Pulse.Lib.Pervasives._zero_for_deref, so that verification no longer depends on Low* KrmlLib.

@tahina-pro tahina-pro requested review from elefthei and mtzguido March 16, 2026 18:35
path: karamel
repository: FStarLang/karamel
ref: d6607b99477640cb1e5d423d5cbe709d76da61f7
ref: 50d52e10c7b3b6815759152cca882d8c979a5204
Copy link
Member Author

Choose a reason for hiding this comment

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

This corresponds to FStarLang/karamel#685

@tahina-pro tahina-pro changed the base branch from main to fstar2 March 16, 2026 20:24
@tahina-pro
Copy link
Member Author

This will happen only on the fstar2 copy of Pulse.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants