Standard Library
The standard library, in scope in every file without an import. It declares the primitive datatypes, Anything, and the annotations the tools read.
Datatypes
| Datatype | Description |
|---|---|
any | The supertype of every type: every value fits where any stands. |
int | The mathematical integers, with no fixed width. |
real | The real numbers. |
bool | The Boolean values true and false. |
string | Strings of characters, such as "hello". |
clock | A clock measures time: it starts at 0, advances by the wait before every main step, is reset to 0 by assignment, and is read only in comparisons with integers known at compile time. |
Classes
Anything
class Anything {
tran {
}
init {
}
prop {
return AG true
}
}
The implicit superclass of every class.
Annotations
@VerificationCase
annotation VerificationCase(summary: string[0..1])
Marks a class as a verification case. The optional summary is shown for the case in place of its name.
@Tag
annotation Tag(category: string)
Gives a verification case a category, such as @Tag("slow"), by which the command line selects and skips cases.
@Control
annotation Control
Marks a variable a backend may track from the start of its search: a hint for speed that changes neither the verdict nor the trace.
@Shared
annotation Shared
Marks a containment whose one instance is shared by every instance of the declaring class, instead of one each.
@Trace
annotation Trace
Marks a transition whose calls the trace lists, each in the step it fired in, with its receiver's path from the root instance, such as root.kitchen.lamp, and its arguments' values. No argument of a call to a traced transition may be a record.
@NonOptimizable
annotation NonOptimizable
Keeps a variable from the optimizations that could remove or fold it, so that it stays in the compiled model and the witness.