Skip to content

Safety: implement real nonreentrant guard semantics #1893

@Th0rgal

Description

@Th0rgal

Problem

#1728 tracks nonreentrant as part of compile-time safety, but the remaining useful work is a concrete guard semantics rather than another umbrella item.

Scope

  • Define the storage/state model for a generated non-reentrancy guard.
  • Lower nonreentrant functions to guard enter/exit code with revert-safe cleanup behavior.
  • Ensure interactions with return, revert, Leave, and internal calls are explicit.
  • Add source/executable semantics and generated-Yul tests.
  • Decide whether the first version is outside SupportedSpec or prove the required guard preservation lemmas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions