Skip to content

Mint initialised flag restricted assumes validity in cheatcode which avoids branches #139

@dkcumming

Description

@dkcumming

The specifications have some branches that depend on the mint being initialised to a valid value, which is only valid if field is_initialized is 0 or 1 and it errors otherwise.

Our cheatcode that sets the symbolic state restricts the state to $0 ≤ is\_initialized ≤ 1$ which means we will never explore the error branch. (Same for concrete / random execution)

The solution is to expand this to the full range of u8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions