Skip to content

'super' in specs not translated correctly #932

@davidcok

Description

@davidcok

The following code, which uses 'super' in the specs of a method, is not translated correctly for either ESC or RAC.
Put in a test case: gitbug932

public class Super extends A {

  //@ also
  //@ ensures \result == super.m();
  //@ spec_pure
  public int m() {
    return super.m();
  }

  public static void main(String... args) {

    int k = new Super().m();
    //@ check k == 42;

  }
}

class A {
  //@ ensures \result == 42;
  //@ spec_pure
  public int m() {
    return 42;
  }
}

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