let ctr (r:ref int) = prev:erased int  -> SteelT (y:int{y == prev + 1}) (repr r prev) (repr r)
let ctr (r: ref int) =
prev: erased int -> SteelT (y: int{y == prev + 1}) (repr r prev) (repr r)
Steel.Closure.fst.checked
Steel.Reference.fsti.checked Steel.Memory.fsti.checked Steel.FractionalPermission.fst.checked Steel.Effect.Atomic.fsti.checked Steel.Effect.fsti.checked prims.fst.checked FStar.Pervasives.fsti.checked
Steel.Closure.fst
Steel.Reference.ref Prims.int FStar.Ghost.erased Prims.eq2 Prims.op_Addition FStar.Ghost.reveal Steel.Closure.repr
(*
   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.Closure

open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.Reference
open Steel.FractionalPermission

[@@__reduce__]
let repr (r:ref int) (x:int) = pts_to r full_perm (hide x)
val ctr : r: Steel.Reference.ref Prims.int -> Type0
r: Steel.Reference.ref Prims.int -> Type0