@@ -597,11 +597,11 @@ void *memcpy(void *dst, const void *src, size_t n)
597
597
__CPROVER_precondition (__CPROVER_POINTER_OBJECT (dst )!=
598
598
__CPROVER_POINTER_OBJECT (src ),
599
599
"memcpy src/dst overlap" );
600
- (void )* (char * )dst ; // check that the memory is accessible
601
- (void )* (const char * )src ; // check that the memory is accessible
602
600
603
601
if (n > 0 )
604
602
{
603
+ (void )* (char * )dst ; // check that the memory is accessible
604
+ (void )* (const char * )src ; // check that the memory is accessible
605
605
(void )* (((char * )dst ) + n - 1 ); // check that the memory is accessible
606
606
(void )* (((const char * )src ) + n - 1 ); // check that the memory is accessible
607
607
//for(__CPROVER_size_t i=0; i<n ; i++) ((char *)dst)[i]=((const char *)src)[i];
@@ -639,12 +639,12 @@ void *__builtin___memcpy_chk(void *dst, const void *src, __CPROVER_size_t n, __C
639
639
__CPROVER_precondition (__CPROVER_POINTER_OBJECT (dst )!=
640
640
__CPROVER_POINTER_OBJECT (src ),
641
641
"memcpy src/dst overlap" );
642
- (void )* (char * )dst ; // check that the memory is accessible
643
- (void )* (const char * )src ; // check that the memory is accessible
644
642
(void )size ;
645
643
646
644
if (n > 0 )
647
645
{
646
+ (void )* (char * )dst ; // check that the memory is accessible
647
+ (void )* (const char * )src ; // check that the memory is accessible
648
648
(void )* (((char * )dst ) + n - 1 ); // check that the memory is accessible
649
649
(void )* (((const char * )src ) + n - 1 ); // check that the memory is accessible
650
650
//for(__CPROVER_size_t i=0; i<n ; i++) ((char *)dst)[i]=((const char *)src)[i];
@@ -685,10 +685,10 @@ void *memset(void *s, int c, size_t n)
685
685
else
686
686
__CPROVER_is_zero_string (s )= 0 ;
687
687
#else
688
- (void )* (char * )s ; // check that the memory is accessible
689
688
690
689
if (n > 0 )
691
690
{
691
+ (void )* (char * )s ; // check that the memory is accessible
692
692
(void )* (((char * )s ) + n - 1 ); // check that the memory is accessible
693
693
//char *sp=s;
694
694
//for(__CPROVER_size_t i=0; i<n ; i++) sp[i]=c;
@@ -724,10 +724,10 @@ void *__builtin_memset(void *s, int c, __CPROVER_size_t n)
724
724
__CPROVER_is_zero_string (s )= 0 ;
725
725
}
726
726
#else
727
- (void )* (char * )s ; // check that the memory is accessible
728
727
729
728
if (n > 0 )
730
729
{
730
+ (void )* (char * )s ; // check that the memory is accessible
731
731
(void )* (((char * )s ) + n - 1 ); // check that the memory is accessible
732
732
//char *sp=s;
733
733
//for(__CPROVER_size_t i=0; i<n ; i++) sp[i]=c;
@@ -763,11 +763,11 @@ void *__builtin___memset_chk(void *s, int c, __CPROVER_size_t n, __CPROVER_size_
763
763
else
764
764
__CPROVER_is_zero_string (s )= 0 ;
765
765
#else
766
- (void )* (char * )s ; // check that the memory is accessible
767
766
(void )size ;
768
767
769
768
if (n > 0 )
770
769
{
770
+ (void )* (char * )s ; // check that the memory is accessible
771
771
(void )* (((char * )s ) + n - 1 ); // check that the memory is accessible
772
772
//char *sp=s;
773
773
//for(__CPROVER_size_t i=0; i<n ; i++) sp[i]=c;
@@ -804,11 +804,11 @@ void *memmove(void *dest, const void *src, size_t n)
804
804
else
805
805
__CPROVER_is_zero_string (dest )= 0 ;
806
806
#else
807
- (void )* (char * )dest ; // check that the memory is accessible
808
- (void )* (const char * )src ; // check that the memory is accessible
809
807
810
808
if (n > 0 )
811
809
{
810
+ (void )* (char * )dest ; // check that the memory is accessible
811
+ (void )* (const char * )src ; // check that the memory is accessible
812
812
(void )* (((char * )dest ) + n - 1 ); // check that the memory is accessible
813
813
(void )* (((const char * )src ) + n - 1 ); // check that the memory is accessible
814
814
char src_n [n ];
@@ -848,12 +848,12 @@ void *__builtin___memmove_chk(void *dest, const void *src, size_t n, __CPROVER_s
848
848
__CPROVER_is_zero_string (dest )= 0 ;
849
849
}
850
850
#else
851
- (void )* (char * )dest ; // check that the memory is accessible
852
- (void )* (const char * )src ; // check that the memory is accessible
853
851
(void )size ;
854
852
855
853
if (n > 0 )
856
854
{
855
+ (void )* (char * )dest ; // check that the memory is accessible
856
+ (void )* (const char * )src ; // check that the memory is accessible
857
857
(void )* (((char * )dest ) + n - 1 ); // check that the memory is accessible
858
858
(void )* (((const char * )src ) + n - 1 ); // check that the memory is accessible
859
859
char src_n [n ];
0 commit comments