Distributed controller synthesis for deadlock avoidance (Logical Methods in Computer Science, 2025)