Skip to content

Undeclared functions in invariants #102

@maditaP

Description

@maditaP

Using an undeclared function with declared parameters in an invariant results in an error about the parameters being undeclared:

Image

Doing the same anywhere else in the code behaves as one would expect:

Image
coproc test() -> ()
{
    var declared: Bool = true
    var x: Bool = undeclared(declared)
    @invariant(undeclared(declared))
    while true {
       x = true
    }
}

Metadata

Metadata

Assignees

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