Skip to content

Reveal in Assert #293

@gewlar

Description

@gewlar

Using a Reveal expression within an Assert doesn't allow verification of an Opaque function.

@Pure
@Opaque
def pure_opaque_func() -> int:
    return 3
# Can be proven
x = Reveal(pure_opaque_func())
Assert(x == 3)
# Cannot be proven
Assert(Reveal(pure_opaque_func()) == 3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions