X-Git-Url: http://andersk.mit.edu/gitweb/splint.git/blobdiff_plain/2ab9c885b11ea2ed5e45af61e728e20d6979f745..dcaf75eaed37623f27c23241c146ad25910208f3:/test/simplebufferConstraintTests/sizeof.c diff --git a/test/simplebufferConstraintTests/sizeof.c b/test/simplebufferConstraintTests/sizeof.c index d95b92b..52a77d8 100644 --- a/test/simplebufferConstraintTests/sizeof.c +++ b/test/simplebufferConstraintTests/sizeof.c @@ -2,11 +2,11 @@ extern void /*@alt char * @*/ mystrncpy (/*@unique@*/ /*@out@*/ /*@returned@*/ char *s1, char *s2, size_t n) - /*@modifies *s1@*/ /*@bufferConstraint MaxSet(s1) >= ( n - 1 -); MaxRead (s2) >= ( n - 1 ); @*/ /*@ensuresConstraint MaxRead (s1) == -MaxRead (s2); MaxRead (s1) <= n; @*/; + /*@modifies *s1@*/ /*@requires MaxSet(s1) >= ( n - 1 +) /\ MaxRead (s2) >= ( n - 1 ); @*/ /*@ensures MaxRead (s1) == +MaxRead (s2) /\ MaxRead (s1) <= n; @*/; - void f(char *z) /*@bufferConstraint MaxRead(z) >= 2; @*/ + void f(char *z) /*@requires MaxRead(z) >= 2; @*/ { char x[3]; char y[3];