Synchronisers: ReentrantLock

In this example case a re-entrant lock, implemented in Java, is verified. An atomic integer is used as the synchroniser.

General Information

  • Backend: Chalice
  • Language: Java
  • Features: Atomics, Witnesses, Locking, Loop invariants
  • Path to Example File: synchronizers/ReentrantLock.java
  • Should Verify: Yes
  • Date: 2017-06-21
  • Lines of Code: 140 (comments not included)
  • Lines of Specification: 81 (57.9% of total)
  • Computation Time: 20.9 seconds