Minor Promela updates.

This commit is contained in:
Yury Gribov
2025-01-24 10:42:44 +03:00
parent f0ff27a02a
commit 39ec5178d1
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -257,12 +257,14 @@ never {
od
}
// NoLibResets(TLA): Library never UN-loaded
ltl NoLibResets {
ltl Prop {
[](
// NoLibResets(TLA): Library never UN-loaded
// FIXME: use X when Debian/Ubuntu support it
// (https://github.com/thomaslee/spin-debian/commit/8b2c6e3881d9b1b70a53b46ca5f637b6d57eb385)
(lib_state == LOADING -> [](lib_state == LOADING || lib_state == LOADED))
&& (lib_state == LOADED -> [](lib_state == LOADED))
)
}
// TODO: forall predicates (LoadBeforeUse2, NoShimResets)
// TODO: quantified predicates (LoadBeforeUse2, NoShimResets)
+1 -1
View File
@@ -6,6 +6,6 @@ set -x
rm -rf states
java -jar ~/Downloads/tla2tools.jar -workers `nproc` -coverage 0 Init.tla
for inv in never_0 NoLibResets; do
for inv in never_0 Prop; do
spin -run -ltl $inv Init.pml
done