Single-threaded counting

This example shows a single-threaded Counter class with several methods (both static and dynamic) to increase the counter. We verify that the different ways to increase `val` are functionally correct and do not have races.

General Information

  • Backend: Chalice
  • Language: Java
  • Features: Loop invariants
  • Path to Example File: permissions/
  • Should Verify: Yes
  • Date: 2017-06-20
  • Lines of Code: 43 (comments not included)
  • Lines of Specification: 10 (23.3% of total)
  • Computation Time: 8.8 seconds