=================== tlc-KeyedFork.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 61 and seed 7681043817693172647 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/ReactorLocks.tla
Parsing file <tmp>/tlc-13819632755781728867/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-13819632755781728867/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-13819632755781728867/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-13819632755781728867/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-13819632755781728867/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-13819632755781728867/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-13819632755781728867/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module ReactorLocks
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module ReactorLocks
Starting... (2026-11-16 11:30:50)
Implied-temporal checking--satisfiability problem has 4 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:30:50.
Progress(19) at 2026-11-16 11:30:50: 2,022 states generated, 942 distinct states found, 0 states left on queue.
Checking 4 branches of temporal properties for the complete state space with 3768 total distinct states at (2026-11-16 11:30:50)
Finished checking temporal properties in 00s at 2026-11-16 11:30:50
Model checking completed. No error has been found.
  Estimates of the probability that TLC did not check all reachable states
  because two distinct states had the same fingerprint:
  calculated (optimistic):  val = 5.5E-14
2022 states generated, 942 distinct states found, 0 states left on queue.
The depth of the complete state graph search is 19.
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 4 and the 95th percentile is 2).
Finished in 00s at (2026-11-16 11:30:50)
=================== tlc-KeyedForkLarge.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 35 and seed 8149074211836345584 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/ReactorLocks.tla
Parsing file <tmp>/tlc-18335941793906137251/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-18335941793906137251/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-18335941793906137251/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-18335941793906137251/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-18335941793906137251/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-18335941793906137251/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-18335941793906137251/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module ReactorLocks
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module ReactorLocks
Starting... (2026-11-16 11:31:13)
Implied-temporal checking--satisfiability problem has 5 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:31:13.
Checking 5 branches of temporal properties for the current state space with 307225 total distinct states at (2026-11-16 11:31:16)
Finished checking temporal properties in 02s at 2026-11-16 11:31:19
Progress(16) at 2026-11-16 11:31:19: 174,222 states generated (174,222 s/min), 61,446 distinct states found (61,446 ds/min), 11,795 states left on queue.
Progress(25) at 2026-11-16 11:31:21: 350,441 states generated, 124,885 distinct states found, 0 states left on queue.
Checking 5 branches of temporal properties for the complete state space with 624425 total distinct states at (2026-11-16 11:31:21)
Finished checking temporal properties in 06s at 2026-11-16 11:31:28
Model checking completed. No error has been found.
  Estimates of the probability that TLC did not check all reachable states
  because two distinct states had the same fingerprint:
  calculated (optimistic):  val = 1.5E-9
  based on the actual fingerprints:  val = 2.5E-10
350441 states generated, 124885 distinct states found, 0 states left on queue.
The depth of the complete state graph search is 25.
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 6 and the 95th percentile is 2).
Finished in 14s at (2026-11-16 11:31:28)
=================== tlc-KeyedForkLateJoin.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 89 and seed 4604024179675040156 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/ReactorLocks.tla
Parsing file <tmp>/tlc-12080659678171991152/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-12080659678171991152/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-12080659678171991152/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-12080659678171991152/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-12080659678171991152/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-12080659678171991152/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-12080659678171991152/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module ReactorLocks
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module ReactorLocks
Starting... (2026-11-16 11:30:50)
Implied-temporal checking--satisfiability problem has 4 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:30:51.
Error: Invariant PerKeyFIFO is violated.
Error: The behavior up to this point is:
State 1: <Initial predicate>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<>>

State 2: <Arrive(b) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<b>>

State 3: <Arrive(b) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<b, b>>

State 4: <Take line 85, col 3 to line 97, col 52 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {1}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<b, b>>

State 5: <Take line 85, col 3 to line 97, col 52 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {1, 2}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 2
/\ handled = <<>>
/\ arrived = <<b, b>>

State 6: <Join(2) line 101, col 3 to line 104, col 68 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<2>>)
/\ forked = {1}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 2
/\ handled = <<>>
/\ arrived = <<b, b>>

State 7: <Acquire(2) line 112, col 3 to line 116, col 68 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 2)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {1}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 2
/\ handled = <<>>
/\ arrived = <<b, b>>

State 8: <Finish(2) line 120, col 3 to line 125, col 59 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {1}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 2
/\ handled = <<2>>
/\ arrived = <<b, b>>

1536 states generated, 694 distinct states found, 274 states left on queue.
The depth of the complete state graph search is 9.
Finished in 00s at (2026-11-16 11:30:51)
Trace exploration spec path: ./ReactorLocks_TTrace_1794799850.tla
=================== tlc-KeyedForkNonFifoLock.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 129 and seed 4664166179557161950 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/ReactorLocks.tla
Parsing file <tmp>/tlc-3161597335951252441/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-3161597335951252441/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-3161597335951252441/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-3161597335951252441/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-3161597335951252441/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-3161597335951252441/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-3161597335951252441/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module ReactorLocks
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module ReactorLocks
Starting... (2026-11-16 11:30:50)
Implied-temporal checking--satisfiability problem has 4 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:30:50.
Error: Invariant PerKeyFIFO is violated.
Error: The behavior up to this point is:
State 1: <Initial predicate>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<>>

State 2: <Arrive(b) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<b>>

State 3: <Arrive(b) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<b, b>>

State 4: <Take line 85, col 3 to line 97, col 52 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<1>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<b, b>>

State 5: <Take line 85, col 3 to line 97, col 52 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<1, 2>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 2
/\ handled = <<>>
/\ arrived = <<b, b>>

State 6: <Acquire(2) line 112, col 3 to line 116, col 68 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 2)
/\ waiters = (a :> <<>> @@ b :> <<1>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 2
/\ handled = <<>>
/\ arrived = <<b, b>>

State 7: <Finish(2) line 120, col 3 to line 125, col 59 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<1>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 2
/\ handled = <<2>>
/\ arrived = <<b, b>>

518 states generated, 272 distinct states found, 104 states left on queue.
The depth of the complete state graph search is 8.
Finished in 00s at (2026-11-16 11:30:50)
Trace exploration spec path: ./ReactorLocks_TTrace_1794799850.tla
=================== tlc-Sequential.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 99 and seed -6212183726812551631 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/ReactorLocks.tla
Parsing file <tmp>/tlc-17174030255607668204/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-17174030255607668204/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-17174030255607668204/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-17174030255607668204/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-17174030255607668204/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-17174030255607668204/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-17174030255607668204/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module ReactorLocks
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module ReactorLocks
Starting... (2026-11-16 11:30:49)
Implied-temporal checking--satisfiability problem has 4 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:30:49.
Progress(19) at 2026-11-16 11:30:49: 785 states generated, 379 distinct states found, 0 states left on queue.
Checking 4 branches of temporal properties for the complete state space with 1516 total distinct states at (2026-11-16 11:30:49)
Error: Temporal property EventuallyHandled was violated.

Error: The following behavior constitutes a counter-example:

State 1: <Initial predicate>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<>>

State 2: <ExtAcquire(b) line 70, col 3 to line 74, col 68 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 5)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {b}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<>>

State 3: <ExtRelease(b) line 77, col 3 to line 79, col 77 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {b}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<>>

State 4: <Arrive(a) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {b}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<a>>

State 5: <Arrive(b) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {b}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<a, b>>

State 6: <Arrive(b) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {b}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<a, b, b>>

State 7: <Take line 85, col 3 to line 97, col 52 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<1>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a, b, b>>

State 8: <Arrive(a) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 5 @@ b :> 0)
/\ waiters = (a :> <<1>> @@ b :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a, b, b, a>>

State 9: Stuttering
Finished checking temporal properties in 00s at 2026-11-16 11:30:49
785 states generated, 379 distinct states found, 0 states left on queue.
The depth of the complete state graph search is 19.
Finished in 00s at (2026-11-16 11:30:49)
Trace exploration spec path: ./ReactorLocks_TTrace_1794799849.tla
=================== tlc-SequentialLarge.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 121 and seed -435656943196059018 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/ReactorLocks.tla
Parsing file <tmp>/tlc-7594007234921761725/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-7594007234921761725/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-7594007234921761725/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-7594007234921761725/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-7594007234921761725/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-7594007234921761725/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-7594007234921761725/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module ReactorLocks
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module ReactorLocks
Starting... (2026-11-16 11:30:51)
Implied-temporal checking--satisfiability problem has 5 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:30:51.
Progress(25) at 2026-11-16 11:30:52: 57,039 states generated, 20,433 distinct states found, 0 states left on queue.
Checking 5 branches of temporal properties for the complete state space with 102165 total distinct states at (2026-11-16 11:30:52)
Error: Temporal property EventuallyHandled was violated.

Error: The following behavior constitutes a counter-example:

State 1: <Initial predicate>
/\ holder = (a :> 6 @@ b :> 0 @@ c :> 0)
/\ waiters = (a :> <<>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<>>

State 2: <ExtAcquire(c) line 70, col 3 to line 74, col 68 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 0 @@ c :> 6)
/\ waiters = (a :> <<>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {c}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<>>

State 3: <ExtAcquire(b) line 70, col 3 to line 74, col 68 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 6 @@ c :> 6)
/\ waiters = (a :> <<>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {b, c}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<>>

State 4: <Arrive(a) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 6 @@ c :> 6)
/\ waiters = (a :> <<>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 0
/\ extUsed = {b, c}
/\ taken = 0
/\ handled = <<>>
/\ arrived = <<a>>

State 5: <Take line 85, col 3 to line 97, col 52 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 6 @@ c :> 6)
/\ waiters = (a :> <<1>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b, c}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a>>

State 6: <ExtRelease(b) line 77, col 3 to line 79, col 77 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 0 @@ c :> 6)
/\ waiters = (a :> <<1>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b, c}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a>>

State 7: <ExtRelease(c) line 77, col 3 to line 79, col 77 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 0 @@ c :> 0)
/\ waiters = (a :> <<1>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b, c}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a>>

State 8: <Arrive(a) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 0 @@ c :> 0)
/\ waiters = (a :> <<1>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b, c}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a, a>>

State 9: <Arrive(c) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 0 @@ c :> 0)
/\ waiters = (a :> <<1>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b, c}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a, a, c>>

State 10: <Arrive(a) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 0 @@ c :> 0)
/\ waiters = (a :> <<1>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b, c}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a, a, c, a>>

State 11: <Arrive(a) line 63, col 3 to line 65, col 76 of module ReactorLocks>
/\ holder = (a :> 6 @@ b :> 0 @@ c :> 0)
/\ waiters = (a :> <<1>> @@ b :> <<>> @@ c :> <<>>)
/\ forked = {}
/\ busyCur = 1
/\ extUsed = {b, c}
/\ taken = 1
/\ handled = <<>>
/\ arrived = <<a, a, c, a, a>>

State 12: Stuttering
Finished checking temporal properties in 00s at 2026-11-16 11:30:52
57039 states generated, 20433 distinct states found, 0 states left on queue.
The depth of the complete state graph search is 25.
Finished in 01s at (2026-11-16 11:30:52)
Trace exploration spec path: ./ReactorLocks_TTrace_1794799851.tla
=================== tlc-SequentialNoBusyLarge.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 127 and seed 6153849299502617883 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/ReactorLocks.tla
Parsing file <tmp>/tlc-7270025235011766069/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-7270025235011766069/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-7270025235011766069/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-7270025235011766069/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-7270025235011766069/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-7270025235011766069/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-7270025235011766069/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module ReactorLocks
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module ReactorLocks
Starting... (2026-11-16 11:30:52)
Implied-temporal checking--satisfiability problem has 5 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:30:53.
Checking 5 branches of temporal properties for the current state space with 250030 total distinct states at (2026-11-16 11:30:56)
Finished checking temporal properties in 02s at 2026-11-16 11:30:58
Progress(15) at 2026-11-16 11:30:58: 163,598 states generated (163,598 s/min), 50,010 distinct states found (50,010 ds/min), 8,402 states left on queue.
Progress(27) at 2026-11-16 11:31:06: 426,700 states generated, 127,980 distinct states found, 0 states left on queue.
Checking 5 branches of temporal properties for the complete state space with 639900 total distinct states at (2026-11-16 11:31:06)
Finished checking temporal properties in 07s at 2026-11-16 11:31:13
Model checking completed. No error has been found.
  Estimates of the probability that TLC did not check all reachable states
  because two distinct states had the same fingerprint:
  calculated (optimistic):  val = 2.1E-9
  based on the actual fingerprints:  val = 1.9E-10
426700 states generated, 127980 distinct states found, 0 states left on queue.
The depth of the complete state graph search is 27.
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 7 and the 95th percentile is 2).
Finished in 20s at (2026-11-16 11:31:13)
=================== tlc-qw-ByChild.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 34 and seed 2891747131391983903 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/QuestionWakeKeys.tla
Parsing file <tmp>/tlc-2255185157622527/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-2255185157622527/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-2255185157622527/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-2255185157622527/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-2255185157622527/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-2255185157622527/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-2255185157622527/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module QuestionWakeKeys
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module QuestionWakeKeys
Starting... (2026-11-16 11:31:29)
Implied-temporal checking--satisfiability problem has 1 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:31:29.
Error: Invariant NoStaleWake is violated.
Error: The behavior up to this point is:
State 1: <Initial predicate>
/\ extHolds = TRUE
/\ queued = FALSE
/\ found = FALSE
/\ w = "wait"
/\ x = "idle"

State 2: <ExtRelease line 43, col 3 to line 45, col 38 of module QuestionWakeKeys>
/\ extHolds = FALSE
/\ queued = FALSE
/\ found = FALSE
/\ w = "wait"
/\ x = "idle"

State 3: <XRead line 54, col 3 to line 57, col 38 of module QuestionWakeKeys>
/\ extHolds = FALSE
/\ queued = FALSE
/\ found = FALSE
/\ w = "wait"
/\ x = "read"

State 4: <WDispatch line 48, col 3 to line 51, col 37 of module QuestionWakeKeys>
/\ extHolds = FALSE
/\ queued = TRUE
/\ found = FALSE
/\ w = "done"
/\ x = "read"

State 5: <XCancel line 60, col 3 to line 63, col 37 of module QuestionWakeKeys>
/\ extHolds = FALSE
/\ queued = TRUE
/\ found = FALSE
/\ w = "done"
/\ x = "done"

14 states generated, 10 distinct states found, 0 states left on queue.
The depth of the complete state graph search is 5.
Finished in 00s at (2026-11-16 11:31:29)
Trace exploration spec path: ./QuestionWakeKeys_TTrace_1794799889.tla
=================== tlc-qw-ByParent.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 106 and seed 2010657794369870614 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/QuestionWakeKeys.tla
Parsing file <tmp>/tlc-1273107388088997756/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-1273107388088997756/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-1273107388088997756/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-1273107388088997756/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-1273107388088997756/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-1273107388088997756/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-1273107388088997756/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module QuestionWakeKeys
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module QuestionWakeKeys
Starting... (2026-11-16 11:31:29)
Implied-temporal checking--satisfiability problem has 1 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:31:29.
Progress(5) at 2026-11-16 11:31:29: 6 states generated, 5 distinct states found, 0 states left on queue.
Checking temporal properties for the complete state space with 5 total distinct states at (2026-11-16 11:31:29)
Finished checking temporal properties in 00s at 2026-11-16 11:31:29
Model checking completed. No error has been found.
  Estimates of the probability that TLC did not check all reachable states
  because two distinct states had the same fingerprint:
  calculated (optimistic):  val = 2.7E-19
6 states generated, 5 distinct states found, 0 states left on queue.
The depth of the complete state graph search is 5.
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 1 and the 95th percentile is 1).
Finished in 00s at (2026-11-16 11:31:29)
=================== tlc-qw-Sequential.out
TLC2 Version 2026.11.15.002146 (rev: bc1b506)
Running breadth-first search Model-Checking with fp 113 and seed 2621344674092915428 with 4 workers on 16 cores with 10923MB heap and 64MB offheap memory [pid] (Mac OS X 26.6.2 aarch64, Eclipse Adoptium 17.0.21 64bit, MSBDiskFPSet, DiskStateQueue).
Parsing file ./tla/QuestionWakeKeys.tla
Parsing file <tmp>/tlc-8717453780269175479/Naturals.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Naturals.tla)
Parsing file <tmp>/tlc-8717453780269175479/_TLCTrace.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/_TLCTrace.tla)
Parsing file <tmp>/tlc-8717453780269175479/TLC.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLC.tla)
Parsing file <tmp>/tlc-8717453780269175479/TLCExt.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/TLCExt.tla)
Parsing file <tmp>/tlc-8717453780269175479/Sequences.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Sequences.tla)
Parsing file <tmp>/tlc-8717453780269175479/FiniteSets.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/FiniteSets.tla)
Parsing file <tmp>/tlc-8717453780269175479/Integers.tla (jar:file:<tools>/tla2tools.jar!/tla2sany/StandardModules/Integers.tla)
Semantic processing of module Naturals
Semantic processing of module Sequences
Semantic processing of module FiniteSets
Semantic processing of module TLC
Semantic processing of module Integers
Semantic processing of module TLCExt
Semantic processing of module _TLCTrace
Semantic processing of module QuestionWakeKeys
Linting of module TLCExt
Linting of module _TLCTrace
Linting of module QuestionWakeKeys
Starting... (2026-11-16 11:31:28)
Implied-temporal checking--satisfiability problem has 1 branches.
Computing initial states...
Finished computing initial states: 1 distinct state generated at 2026-11-16 11:31:28.
Progress(5) at 2026-11-16 11:31:28: 6 states generated, 5 distinct states found, 0 states left on queue.
Checking temporal properties for the complete state space with 5 total distinct states at (2026-11-16 11:31:28)
Finished checking temporal properties in 00s at 2026-11-16 11:31:28
Model checking completed. No error has been found.
  Estimates of the probability that TLC did not check all reachable states
  because two distinct states had the same fingerprint:
  calculated (optimistic):  val = 2.7E-19
6 states generated, 5 distinct states found, 0 states left on queue.
The depth of the complete state graph search is 5.
The average outdegree of the complete state graph is 1 (minimum is 0, the maximum 1 and the 95th percentile is 1).
Finished in 00s at (2026-11-16 11:31:28)
