learning_tla/intro/specs/mutex.cfg
Frederic G. MARAND de69f7c399 Intro: examples.
2025-02-22 19:20:33 +01:00

23 lines
861 B
INI

(**********************************************)
(* Initial predicate and next-state relation. *)
(* Alternatively, you can comment out these *)
(* and use SPECIFICATION. *)
(**********************************************)
SPECIFICATION Spec
(**********************************************)
(* Specify the values of declared constants. *)
(**********************************************)
\* CONSTANT MyConstant = {0, 1}
(**********************************************)
(* Formulas true in every reachable state. *)
(**********************************************)
INVARIANT TypeOK \* check type safety
PROPERTY Mutex \* verify mutual exclusion
(**********************************************)
(* Disable checking deadlock. *)
(**********************************************)
CHECK_DEADLOCK TRUE \* detect deadlocks