ivy/test/trace3.ivy

27 строки
227 B
XML

#lang ivy1.7
type t
var p(X:t) : bool
var q : bool
var y : t
after init {
p(X) := true
}
action a(x:t) = {
if q & x ~= y {
p(x) := false
}
else {
q := true
}
}
invariant p(X)
export a