Skip to content

Soundness issue: old as operator. #257

@MikaelMayer

Description

@MikaelMayer

Consider the following code:

procedure f()
  modifies x, y
  ensures x == y ==> old(x) != old(y)
{
   if x != y {
      x := y;
   } else {
     x := y + 1;
   }
}

Unfortunately, we encode old() as an application of "old" operator to the argument.
Hence, it should be provable in lambda that x == y ==> old(x) == old(y), so the procedure above would theoretically able to prove false.

To fix this, we shouldn't use operator application to describe the old value of variables.

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