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

ID44
Articlenone
Back-endSilicon
LanguageOpenMP for C
Features
Sources
Path to example fileclang/c-example-use.c
Date2017-06-15

Statistical information

Lines of code10 lines (comments not included)
Lines of specification2 lines (20% of the total)
Computation time6115 milliseconds

Example code

Note, verification may take a while and has a time-out of 20 seconds.