val copy_buffer_contents_postcond' (#t: typ) (a b: buffer t) (h h': HS.mem) : GTot Type0
let copy_buffer_contents_postcond'
  (#t: typ)
  (a: buffer t) (* source *)
  (b: buffer t) (* destination *)
  (h: HS.mem)
  (h' : HS.mem)
: GTot Type0
= copy_buffer_contents_precond' a b h /\
  modifies (loc_buffer b) h h' /\
  buffer_readable h' b /\
  buffer_as_seq h' b == buffer_as_seq h a
val copy_buffer_contents_postcond' (#t: typ) (a b: buffer t) (h h': HS.mem) : GTot Type0
let copy_buffer_contents_postcond' (#t: typ) (a b: buffer t) (h h': HS.mem) : GTot Type0 =
copy_buffer_contents_precond' a b h /\ modifies (loc_buffer b) h h' /\ buffer_readable h' b /\
buffer_as_seq h' b == buffer_as_seq h a
FStar.Pointer.Derived2.fst.checked
prims.fst.checked FStar.UInt32.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.fsti.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked FStar.Ghost.fsti.checked
FStar.Pointer.Derived2.fst
FStar.Pointer.Base.typ FStar.Pointer.Base.buffer FStar.Monotonic.HyperStack.mem Prims.l_and FStar.Pointer.Derived2.copy_buffer_contents_precond' FStar.Pointer.Base.modifies FStar.Pointer.Base.loc_buffer FStar.Pointer.Base.buffer_readable Prims.eq2 FStar.Seq.Base.seq FStar.Pointer.Base.type_of_typ FStar.Pointer.Base.buffer_as_seq
(*
   Copyright 2008-2018 Microsoft Research

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*)
module FStar.Pointer.Derived2

module HH = FStar.HyperStack
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST

private
let copy_buffer_contents_precond'
  (#t: typ)
  (a: buffer t) (* source *)
  (b: buffer t) (* destination *)
  (h: HS.mem)
: GTot Type0
= buffer_live h b /\
  buffer_readable h a /\
  buffer_length b == buffer_length a /\
  loc_disjoint (loc_buffer a) (loc_buffer b)

private
let copy_buffer_contents_postcond'
  (#t: typ)
  (a: buffer t) (* source *)
  (b: buffer t) (* destination *)
  (h: HS.mem)
  (h' : HS.mem)
val copy_buffer_contents_postcond' (#t: typ) (a b: buffer t) (h h': HS.mem) : GTot Type0

    a: FStar.Pointer.Base.buffer t ->
    b: FStar.Pointer.Base.buffer t ->
    h: FStar.Monotonic.HyperStack.mem ->
    h': FStar.Monotonic.HyperStack.mem
  -> Prims.GTot Type0