Skip to content

Bound not recognized right after refining a spec with a loop #20

@scmu

Description

@scmu

Load the file:

con A, B : Int 
var r, a, b : Int

{ r + a * b = A * B, bnd: b }
[!
do b ≠ 0 -> skip
od
!]
{ r = A * B }

and refine the spec. We get a warning

Warning at 5:1-6:3#MissingBound
A bound is required to prove the termination of the loop.

even though there is a bound bnd: b. Loading (ctrl-c-l) the file again and things get normal.

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