viperproject / viper-ide

This is the main repository for the Viper IDE extension for VS Code.
Mozilla Public License 2.0
10 stars 11 forks source link

Viper gets stuck trying to verify a syntactically incorrect program (field.ref instead of ref.field) #397

Closed dnezam closed 11 months ago

dnezam commented 1 year ago

Note the following incorrect program:

field f: Int

method swap(a: Ref, b: Ref) {
    var tmp: Int
    tmp := f.a
    f.a := f.b
    f.b := tmp
}

Instead of using a.f and b.f, I accidentally wrote f.a and f.b.

When trying to verify the above program, the following behavior can be observed:

This behavior has been observed on two machines: Manjaro Linux (arch-based) and Arch Linux (Java package: jre-openjdk, VS Code package: code)

marcoeilers commented 11 months ago

This was fixed in silver a couple of months ago.