Annotating function declarations in C

This verification example shows a ".h" file with an annotated function declaration, and a ".c" file that contains the implementation of the header file. We verify that the implementing method adheres to the contract. See also c-example.h and (c-example-impl.c for the implementation).

General Information

  • Backend: Silicon
  • Language: C / OpenMP / OpenCL
  • Features:
  • Path to Example File: clang/c-example-use.c
  • Should Verify: Yes
  • Date: 2017-06-15
  • Lines of Code: 10 (comments not included)
  • Lines of Specification: 2 (20.0% of total)
  • Computation Time: 6.1 seconds