Block parallelism

Simple PVL program with parallel blocks (that is, code blocks with statically-scoped parallelism), incrementing two variables, `x` and `y`. We verify that, after the parallel blocks have executed, the result of the shared state is (observably) unchanged.

General Information

  • Backend: Silicon
  • Language: PVL
  • Features: Iteration contracts, Loop parallelisations, Statically-scoped parallelism
  • Path to Example File: parallel/block-par.pvl
  • Should Verify: Yes
  • Date: 2017-06-20
  • Lines of Code: 21 (comments not included)
  • Lines of Specification: 5 (23.8% of total)
  • Computation Time: 13.2 seconds