val change_slprop_equiv (p q: vprop) (proof: squash (p `equiv` q)) : SteelT unit p (fun _ -> q)
let change_slprop_equiv (p q : vprop)
              (proof : squash (p `equiv` q))
   : SteelT unit p (fun _ -> q)
   = rewrite_slprop p q (fun _ -> proof; reveal_equiv p q)
val change_slprop_equiv (p q: vprop) (proof: squash (p `equiv` q)) : SteelT unit p (fun _ -> q)
let change_slprop_equiv (p q: vprop) (proof: squash (p `equiv` q)) : SteelT unit p (fun _ -> q) =
rewrite_slprop p
  q
  (fun _ ->
      proof;
      reveal_equiv p q)
Steel.Primitive.ForkJoin.Unix.fst.checked
Steel.Reference.fsti.checked Steel.Primitive.ForkJoin.fsti.checked Steel.Memory.fsti.checked Steel.FractionalPermission.fst.checked Steel.Effect.Atomic.fsti.checked Steel.Effect.fsti.checked prims.fst.checked FStar.Tactics.Effect.fsti.checked FStar.Tactics.fst.checked FStar.Pervasives.fsti.checked FStar.Ghost.fsti.checked
Steel.Primitive.ForkJoin.Unix.fst
Steel.Effect.Common.vprop Prims.squash Steel.Effect.Common.equiv Steel.Effect.Atomic.rewrite_slprop FStar.Ghost.hide FStar.Set.set Steel.Memory.iname FStar.Set.empty Steel.Memory.mem Steel.Effect.Common.reveal_equiv Prims.unit
(*
   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.Primitive.ForkJoin.Unix

(* This module shows that it's possible to layer continuations on top
of SteelT to get a direct style (or Unix style) fork/join. Very much a
prototype for now. *)

open FStar.Ghost
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.Reference
open Steel.Primitive.ForkJoin

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

// (* Some helpers *)
let change_slprop_equiv (p q : vprop)
              (proof : squash (p `equiv` q))
val change_slprop_equiv (p q: vprop) (proof: squash (p `equiv` q)) : SteelT unit p (fun _ -> q)

    p: Steel.Effect.Common.vprop ->
    q: Steel.Effect.Common.vprop ->
    proof: Prims.squash (Steel.Effect.Common.equiv p q)
  -> Steel.Effect.SteelT Prims.unit