Skip to content

Incorrect error message for method call on field access #830

@rayman2000

Description

@rayman2000

The following program should return the error that acc(x.next) is missing

field next: Ref

predicate list(x: Ref){
    x != null ==> acc(x.next) && list(x.next)
}

method reverse(x: Ref)
requires list(x)
ensures list(x)


method test(x: Ref)
{
    reverse(x.next)
}

Carbon does this correctly. Silicon (for me) returns the error that acc(x.next.next) is missing (both the IDE and the master branch).
Strangely, if I reverify the file in the IDE (so with a cache I assume) the error message is correct, it only fails on the first verification attempt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions