val choose_one (a b: option 'a) : ML (option 'a)
let choose_one (a b:option 'a) : ML (option 'a) = 
  match a, b with
  | Some fc, _
  | _, Some fc -> Some fc
  | _ -> None
val choose_one (a b: option 'a) : ML (option 'a)
let choose_one (a b: option 'a) : ML (option 'a) =
match a, b with
| Some fc, _ | _, Some fc -> Some fc
| _ -> None
InlineSingletonRecords.fst.checked
prims.fst.checked Options.fsti.checked Hashtable.fsti.checked FStar.Printf.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked FStar.List.fst.checked FStar.All.fst.checked Ast.fst.checked
InlineSingletonRecords.fst
FStar.Pervasives.Native.option FStar.Pervasives.Native.Mktuple2 FStar.Pervasives.Native.Some FStar.Pervasives.Native.tuple2 FStar.Pervasives.Native.None
(*
   Copyright 2019 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 InlineSingletonRecords
open Ast
open FStar.All
module H = Hashtable
type singleton_record = list param & atomic_field
let env = H.t ident' singleton_record

(*
  This module implements a pass over the source AST
  
    1. Inlining records that contain only a single field
    2. Inlining enumerated types that have dependences

  Both of these are necessary to avoid double fetches
*)
val choose_one (a b: option 'a) : ML (option 'a)
a: FStar.Pervasives.Native.option 'a -> b: FStar.Pervasives.Native.option 'a
  -> FStar.All.ML (FStar.Pervasives.Native.option 'a)