Skip to content

Allow _zero_for_deref to be defined in Pulse#685

Merged
tahina-pro merged 3 commits intofstar2from
_taramana_pulse_zero_for_deref
Mar 16, 2026
Merged

Allow _zero_for_deref to be defined in Pulse#685
tahina-pro merged 3 commits intofstar2from
_taramana_pulse_zero_for_deref

Conversation

@tahina-pro
Copy link
Copy Markdown
Member

@tahina-pro tahina-pro commented Mar 16, 2026

This PR allows Pulse to define its own _zero_for_deref, a special array index to tell Karamel to compile array accesses using that index as pointer dereferences. Having it defined in Pulse severs the dependency over Low* KrmlLib.

FStarLang/pulse#592 FStarLang/FStar#4120 (of which this PR is a companion) defines _zero_for_deref in Pulse.Lib.Pervasives

as an alternative to C._zero_for_deref, in preparation for
the deprecation of Low*

This commit maintains compatibility with EverParse.
@tahina-pro tahina-pro changed the base branch from master to fstar2 March 16, 2026 20:27
@tahina-pro tahina-pro merged commit d2560ec into fstar2 Mar 16, 2026
12 checks passed
@tahina-pro tahina-pro deleted the _taramana_pulse_zero_for_deref branch March 16, 2026 20:32
@protz
Copy link
Copy Markdown
Collaborator

protz commented Mar 18, 2026

Great, thank you.

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