val repr (a:Type u#a)               //result type
         (already_framed:bool)      //framed or not
         (opened_invariants:inames) //which invariants are we relying on
         (g:observability)          //is this a ghost computation?
         (pre:pre_t)                //expects vprop
         (post:post_t a)            //provides a -> vprop
         (req:pure_pre)             //a prop refinement as a precondition
         (ens:pure_post a)           //an (a -> prop) as a postcondition
  : Type u#(max a 2)
let repr (a:Type u#a)
         (already_framed:bool)
         (opened_invariants:inames)
         (g:observability)
         (pre:pre_t)
         (post:post_t a)
         (req:Type0)
         (ens:a -> Type0)
  : Type u#(max a 2)
  = SEA.repr a already_framed opened_invariants g pre post
             (fun _ -> req)
             (fun _ x _ -> ens x)
val repr (a:Type u#a)               //result type
         (already_framed:bool)      //framed or not
         (opened_invariants:inames) //which invariants are we relying on
         (g:observability)          //is this a ghost computation?
         (pre:pre_t)                //expects vprop
         (post:post_t a)            //provides a -> vprop
         (req:pure_pre)             //a prop refinement as a precondition
         (ens:pure_post a)           //an (a -> prop) as a postcondition
  : Type u#(max a 2)
let repr
      (a: Type u#a)
      (already_framed: bool)
      (opened_invariants: inames)
      (g: observability)
      (pre: pre_t)
      (post: post_t a)
      (req: Type0)
      (ens: (a -> Type0))
    : Type u#(max a 2) =
SEA.repr a already_framed opened_invariants g pre post (fun _ -> req) (fun _ x _ -> ens x)
Steel.ST.Effect.AtomicAndGhost.fst.checked
Steel.ST.Effect.fst.checked Steel.Memory.fsti.checked Steel.Effect.Common.fsti.checked Steel.Effect.Atomic.fst.checked Steel.Effect.fsti.checked prims.fst.checked FStar.Tactics.fst.checked FStar.Set.fsti.checked FStar.Pervasives.fsti.checked FStar.Monotonic.Pure.fst.checked FStar.Classical.Sugar.fsti.checked
Steel.ST.Effect.AtomicAndGhost.fst
Prims.bool Steel.Memory.inames Steel.Effect.Common.observability Steel.Effect.Common.pre_t Steel.Effect.Common.post_t Steel.Effect.Atomic.repr Steel.Effect.Common.rmem
(*
   Copyright 2020 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 Steel.ST.Effect.AtomicAndGhost
friend Steel.Effect.Atomic
friend Steel.ST.Effect
module C = Steel.Effect.Common
open Steel.Memory
module T = FStar.Tactics
module STF = Steel.ST.Effect
module SEA = Steel.Effect.Atomic
open Steel.Effect.Atomic

/// This module defines atomic and ghost variants of the Steel effect

#set-options "--warn_error -330 --ide_id_info_off"  //turn off the experimental feature warning

let repr (a:Type u#a)
         (already_framed:bool)
         (opened_invariants:inames)
         (g:observability)
         (pre:pre_t)
         (post:post_t a)
         (req:Type0)
         (ens:a -> Type0)
val repr (a:Type u#a)               //result type
         (already_framed:bool)      //framed or not
         (opened_invariants:inames) //which invariants are we relying on
         (g:observability)          //is this a ghost computation?
         (pre:pre_t)                //expects vprop
         (post:post_t a)            //provides a -> vprop
         (req:pure_pre)             //a prop refinement as a precondition
         (ens:pure_post a)           //an (a -> prop) as a postcondition
  : Type u#(max a 2)

    a: Type ->
    already_framed: Prims.bool ->
    opened_invariants: Steel.Memory.inames ->
    g: Steel.Effect.Common.observability ->
    pre: Steel.Effect.Common.pre_t ->
    post: Steel.Effect.Common.post_t a ->
    req: Prims.pure_pre ->
    ens: Prims.pure_post a
  -> Type