src/file_riff.h: improve Frama-C annotations
This commit is contained in:
parent
5f1002487d
commit
219bd3a3ae
1 changed files with 2 additions and 7 deletions
|
@ -26,14 +26,9 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
@ requires buffer_size > 0;
|
|
||||||
@ requires (buffer_size&1)==0;
|
|
||||||
@ requires \valid_read(buffer+(0..buffer_size-1));
|
|
||||||
@ requires \valid(file_recovery);
|
|
||||||
@ requires file_recovery->data_check==&data_check_avi_stream;
|
@ requires file_recovery->data_check==&data_check_avi_stream;
|
||||||
@ requires file_recovery->calculated_file_size <= PHOTOREC_MAX_FILE_SIZE;
|
@ requires valid_data_check_param(buffer, buffer_size, file_recovery);
|
||||||
@ requires \separated(buffer, file_recovery);
|
@ ensures valid_data_check_result(\result, file_recovery);
|
||||||
@ ensures \result == DC_CONTINUE || \result == DC_STOP;
|
|
||||||
@ assigns file_recovery->calculated_file_size;
|
@ assigns file_recovery->calculated_file_size;
|
||||||
@*/
|
@*/
|
||||||
data_check_t data_check_avi_stream(const unsigned char *buffer, const unsigned int buffer_size, file_recovery_t *file_recovery);
|
data_check_t data_check_avi_stream(const unsigned char *buffer, const unsigned int buffer_size, file_recovery_t *file_recovery);
|
||||||
|
|
Loading…
Reference in a new issue