let freeable (#a: alg) (h: HS.mem) (p: state a) =
  B.freeable p /\ freeable_s (B.deref h p)
let freeable (#a: alg) (h: HS.mem) (p: state a) =
B.freeable p /\ freeable_s (B.deref h p)
NotEverCrypt.CTR.fsti.checked
Spec.Loops.fst.checked Spec.Agile.CTR.fst.checked prims.fst.checked LowStar.Buffer.fst.checked Lib.IntTypes.fsti.checked FStar.UInt32.fsti.checked FStar.Pervasives.fsti.checked FStar.HyperStack.ST.fsti.checked FStar.HyperStack.fst.checked FStar.Ghost.fsti.checked EverCrypt.Error.fsti.checked
NotEverCrypt.CTR.fsti
NotEverCrypt.CTR.alg FStar.Monotonic.HyperStack.mem NotEverCrypt.CTR.state Prims.l_and LowStar.Monotonic.Buffer.freeable NotEverCrypt.CTR.state_s LowStar.Buffer.trivial_preorder NotEverCrypt.CTR.freeable_s LowStar.Monotonic.Buffer.deref Prims.logical
module NotEverCrypt.CTR

module ST = FStar.HyperStack.ST
module HS = FStar.HyperStack
module B = LowStar.Buffer
module G = FStar.Ghost

module Spec = Spec.Agile.CTR

open FStar.HyperStack.ST
open EverCrypt.Error

unfold noextract
let alg = Spec.cipher_alg

/// Classic boilerplate
/// -------------------

[@CAbstractStruct]
val state_s: alg -> Type0

let state alg = B.pointer (state_s alg)

inline_for_extraction noextract
val freeable_s: #(a: alg) -> state_s a -> Type0

inline_for_extraction noextract
val freeable : h: FStar.Monotonic.HyperStack.mem -> p: NotEverCrypt.CTR.state a -> Prims.logical
h: FStar.Monotonic.HyperStack.mem -> p: NotEverCrypt.CTR.state a -> Prims.logical