Skip to content

Invalid Postcondition for Bytecode.Gas #650

Description

@DavePearce

The postcondition is written as:

    function method Gas(st: State): (st': State)
    requires st.IsExecuting() 
    ensures st'.OK? || st' == INVALID(STACK_OVERFLOW) 
    ensures st'.OK? <==> st.Capacity() >= 1 && st.Gas() <= (MAX_U256 as nat)

The part st.Gas() <= (MAX_U256 as nat) is invalid. The problem is that its constraining the permitted values for st.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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