Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. char* rbr (char* out, int length, int dist) {
  2. while (length-- > 0) { out[0] = out[-dist]; out++; }
  3. return out;
  4. }
  5.  
  6. Require Import floyd.proofauto.
  7. Require Import backref.
  8.  
  9. Local Open Scope logic.
  10. Local Open Scope Z.
  11.  
  12. Definition rbr_spec :=
  13. DECLARE _rbr
  14. WITH sh : share, contents : Z -> int
  15. PRE [ _out OF (tptr tuchar), _length OF tint, _dist OF tint ]
  16. PROP ()
  17. LOCAL ()
  18. SEP ()
  19. POST [tptr tuchar] local(fun _ => True).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement