Advertisement
Beatgodes

Untitled

Apr 19th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. (* ---------------------------------------------------------- *)
  2. (* --- Global Definitions --- *)
  3. (* ---------------------------------------------------------- *)
  4. theory Axiomatic
  5.  
  6. use import bool.Bool
  7. use import int.Int
  8. use import int.ComputerDivision
  9. use import real.RealInfix
  10. use import qed.Arith
  11. use import map.Map
  12. use import memory.Memory
  13.  
  14. predicate p_Length_of_str_is (mchar_0 : map addr int)
  15. (malloc_0 : map int int) (s_0 : addr) (n_0 : int) =
  16. let x_0 = s_0.base in let x_1 = s_0.offset in (0 <= n_0) /\
  17. ((valid_rw malloc_0 s_0 (1 + n_0))) /\
  18. (0 = mchar_0[{ s_0 with offset = n_0 + x_1 }]) /\
  19. (forall k_0 : int. (k_0 < n_0) -> (0 <= k_0) ->
  20. (0 <> mchar_0[{ s_0 with offset = k_0 + x_1 }]))
  21.  
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement