Skip to content

Invariant inference 3/6: invariant and negated condition after a loop without break #545

Open

Description

@CatarinaGamboa

Part of the loop invariant inference plan (parent issue). Builds on the Houdini sub-issue.

Facts after the loop. For a loop that can only exit through its condition (no break, no labelled jump out), give the instance after the loop the inferred invariant and the negated condition, instead of only its declared refinement. Example: after int i = 0; while (i < n) i++; we know i >= n (and i >= 0, i <= n when inferred).

Loops with break keep today's behaviour (only the declared refinement).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions