Skip to content

Invariant inference 1/6: candidate invariants for int locals a loop changes #543

Closed

Description

@CatarinaGamboa

Part of the loop invariant inference plan (parent issue).

Candidates. For each int local the loop changes (not fields), build the candidate invariants:

  • x >= x_pre and x <= x_pre, with x_pre the instance before the loop;
  • the comparisons in the loop condition that mention x, weakened so they can be inductive (x < e becomes x <= e, x > e becomes x >= e; <=, >= kept).

Pure code with unit tests; no change in what the verifier accepts yet. Deterministic order, and a cap on the number of candidates per variable.

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