kenmcmil / ivy

IVy is a research tool intended to allow interactive development of protocols and their proofs of correctness and to provide a platform for developing and experimenting with automated proof techniques. In particular, IVy provides interactive visualization of automated proofs, and supports a use model in which the human protocol designer and the automated tool interact to expose errors and prove correctness.
Other
77 stars 24 forks source link

"this" in object not work #77

Closed gipsyh closed 2 months ago

gipsyh commented 3 months ago
#lang ivy1.7

object foo = {
    relation bit
    after init {
        this.bit := false
    }
}
ivy_check ./mesi.ivy
./mesi.ivy(16): error: token 'this': syntax error

commit dbe45e7fc5769170b92492b70827d1cf7efb7972

ruijiefang commented 2 months ago

@gipsyh this is not really a bug. Try:

#lang ivy1.7

object foo = {
    relation bit
    after init {
        bit := false
    }
}