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

Translate global body as a separate initializer function #461

Merged
merged 7 commits into from
Nov 20, 2024

Conversation

Nadrieril
Copy link
Member

This changes how we represent globals: instead of carrying a body directly, we instead translate their body as a separate initializer function. The global itself only keeps the id of this function. This reduces duplication in many places.

We were already presenting the llbc in this way on the ocaml side, so this PR doesn't change the LLBC OCaml API; it does change the ULLBC OCaml API however.

@Nadrieril Nadrieril force-pushed the const-initializers branch 2 times, most recently from 569db09 to 8eb4994 Compare November 18, 2024 09:56
charon/src/ast/types.rs Outdated Show resolved Hide resolved
@Nadrieril Nadrieril merged commit 735b75b into AeneasVerif:main Nov 20, 2024
3 of 5 checks passed
@Nadrieril Nadrieril deleted the const-initializers branch November 20, 2024 09:33
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