Add FramaC TDM
This commit is contained in:
parent
713e8d12c4
commit
56e86b4b20
9 changed files with 606 additions and 0 deletions
17
content/conception_formelle/99-DM_framac/code/abs.h
Normal file
17
content/conception_formelle/99-DM_framac/code/abs.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef __FORMALISM__
|
||||
#define __FORMALISM__
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
/*@ logic integer abs(integer n) = 0<n?n:-n;*/
|
||||
|
||||
/*@ terminates \true;
|
||||
ensures \result == abs(n);
|
||||
*/
|
||||
int abs(int n);
|
||||
|
||||
/*@ terminates \true;
|
||||
ensures \result == abs(n);*/
|
||||
int abs2(int n);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue