val op_At_Bar (#a:Type0) (s1:array a) (s2:array a)
  : ST (array a)
       (requires (fun h -> contains h s1 /\ contains h s2))
       (ensures  (fun h0 s h1 -> contains h0 s1 /\ contains h0 s2 /\ contains h1 s /\
                              sel h1 s == Seq.append (sel h0 s1) (sel h0 s2) /\
                              modifies Set.empty h0 h1))
let op_At_Bar #a s1 s2 =
  let s1' = !s1 in
  let s2' = !s2 in
  ST.alloc (Seq.append s1' s2')
val op_At_Bar (#a:Type0) (s1:array a) (s2:array a)
  : ST (array a)
       (requires (fun h -> contains h s1 /\ contains h s2))
       (ensures  (fun h0 s h1 -> contains h0 s1 /\ contains h0 s2 /\ contains h1 s /\
                              sel h1 s == Seq.append (sel h0 s1) (sel h0 s2) /\
                              modifies Set.empty h0 h1))
let op_At_Bar #a s1 s2 =
let s1' = !s1 in
let s2' = !s2 in
ST.alloc (Seq.append s1' s2')
FStar.Array.fst.checked
prims.fst.checked FStar.ST.fst.checked FStar.Seq.fst.checked FStar.Ref.fst.checked FStar.Pervasives.fsti.checked FStar.All.fst.checked
FStar.Array.fst
FStar.Array.array FStar.ST.alloc FStar.Seq.Base.seq FStar.Heap.trivial_preorder FStar.Seq.Base.append FStar.ST.mref FStar.Ref.op_Bang
(*
   Copyright 2008-2014 Nikhil Swamy and 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.
*)

(**
F* standard library mutable arrays module.

@summary Mutable arrays
*)
module FStar.Array
#set-options "--max_fuel 0 --initial_fuel 0 --initial_ifuel 0 --max_ifuel 0"
open FStar.All
open FStar.Seq
open FStar.Ref

let array a = ref (seq a)

let as_ref #_ arr = arr
val op_At_Bar (#a:Type0) (s1:array a) (s2:array a)
  : ST (array a)
       (requires (fun h -> contains h s1 /\ contains h s2))
       (ensures  (fun h0 s h1 -> contains h0 s1 /\ contains h0 s2 /\ contains h1 s /\
                              sel h1 s == Seq.append (sel h0 s1) (sel h0 s2) /\
                              modifies Set.empty h0 h1))
s1: FStar.Array.array a -> s2: FStar.Array.array a -> FStar.ST.ST (FStar.Array.array a)