file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
Target.fst
Target.has_output_type_exprs
val has_output_type_exprs (ds:list decl) : bool
val has_output_type_exprs (ds:list decl) : bool
let has_output_type_exprs (ds:list decl) : bool = List.Tot.existsb (fun (d, _) -> Output_type_expr? d) ds
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 57, "end_line": 87, "start_col": 0, "start_line": 86 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ds: Prims.list Target.decl -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Target.decl", "FStar.List.Tot.Base.existsb", "FStar.Pervasives.Native.tuple2", "Target.decl'", "Target.decl_attributes", "Target.uu___is_Output_type_expr", "Prims.bool" ]
[]
false
false
false
true
false
let has_output_type_exprs (ds: list decl) : bool =
List.Tot.existsb (fun (d, _) -> Output_type_expr? d) ds
false
Target.fst
Target.print_range
val print_range (r: A.range) : string
val print_range (r: A.range) : string
let print_range (r:A.range) : string = let open A in Printf.sprintf "(FStar.Range.mk_range \"%s\" %d %d %d %d)" (fst r).filename (fst r).line (fst r).col (snd r).line (snd r).col
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 15, "end_line": 184, "start_col": 0, "start_line": 177 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Ast.range -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Ast.range", "FStar.Printf.sprintf", "Ast.__proj__Mkpos__item__filename", "FStar.Pervasives.Native.fst", "Ast.pos", "Ast.__proj__Mkpos__item__line", "Ast.__proj__Mkpos__item__col", "FStar.Pervasives.Native.snd", "Prims.string" ]
[]
false
false
false
true
false
let print_range (r: A.range) : string =
let open A in Printf.sprintf "(FStar.Range.mk_range \"%s\" %d %d %d %d)" (fst r).filename (fst r).line (fst r).col (snd r).line (snd r).col
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.accessor_fldata
val accessor_fldata (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (accessor (gaccessor_fldata p sz))
val accessor_fldata (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (accessor (gaccessor_fldata p sz))
let accessor_fldata (#k: parser_kind) (#t: Type) (p: parser k t { k.parser_kind_subkind == Some ParserStrong } ) (sz: nat) : Tot (accessor (gaccessor_fldata p sz)) = fun #rrel #rel input pos -> let h = HST.get () in [@inline_let] let _ = slice_access_eq h (gaccessor_fldata p sz) input pos in pos
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 266, "start_col": 0, "start_line": 257 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k t { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> sz: Prims.nat -> LowParse.Low.Base.accessor (LowParse.Low.FLData.gaccessor_fldata p sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.Native.Some", "LowParse.Spec.Base.ParserStrong", "Prims.nat", ...
[]
false
false
false
false
false
let accessor_fldata (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (accessor (gaccessor_fldata p sz)) =
fun #rrel #rel input pos -> let h = HST.get () in [@@ inline_let ]let _ = slice_access_eq h (gaccessor_fldata p sz) input pos in pos
false
Hacl.Test.SHA3.fst
Hacl.Test.SHA3.test_sha3
val test_sha3: msg_len:size_t -> msg:lbuffer uint8 msg_len -> expected224:lbuffer uint8 28ul -> expected256:lbuffer uint8 32ul -> expected384:lbuffer uint8 48ul -> expected512:lbuffer uint8 64ul -> Stack unit (requires fun h -> live h msg /\ live h expected224 /\ live h expected256 /\ li...
val test_sha3: msg_len:size_t -> msg:lbuffer uint8 msg_len -> expected224:lbuffer uint8 28ul -> expected256:lbuffer uint8 32ul -> expected384:lbuffer uint8 48ul -> expected512:lbuffer uint8 64ul -> Stack unit (requires fun h -> live h msg /\ live h expected224 /\ live h expected256 /\ li...
let test_sha3 msg_len msg expected224 expected256 expected384 expected512 = push_frame(); let test224 = create 28ul (u8 0) in let test256 = create 32ul (u8 0) in let test384 = create 48ul (u8 0) in let test512 = create 64ul (u8 0) in sha3_224 test224 msg msg_len; sha3_256 test256 msg msg_len; sha3_384 ...
{ "file_name": "code/tests/Hacl.Test.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 42, "start_col": 0, "start_line": 26 }
module Hacl.Test.SHA3 open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.PrintBuffer open Hacl.SHA3 #reset-options "--z3rlimit 100 --fuel 0 --ifuel 0" val test_sha3: msg_len:size_t -> msg:lbuffer uint8 msg_len -> expected224:lbuffer uint8 28ul -> expected256:lbuffer uint8 ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.PrintBuffer.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul....
[ { "abbrev": false, "full_module": "Hacl.SHA3", "short_module": null }, { "abbrev": false, "full_module": "Lib.PrintBuffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.I...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
msg_len: Lib.IntTypes.size_t -> msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msg_len -> expected224: Lib.Buffer.lbuffer Lib.IntTypes.uint8 28ul -> expected256: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> expected384: Lib.Buffer.lbuffer Lib.IntTypes.uint8 48ul -> expected512: Lib.Buffer.lbuffer ...
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "C.exit", "FStar.Int32.__int_to_t", "Prims.bool", "Prims.op_Negation", "Lib.PrintBuffer.result_compare_display", "Lib.Buffer.to_const", "Lib.Buffer.MU...
[]
false
true
false
false
false
let test_sha3 msg_len msg expected224 expected256 expected384 expected512 =
push_frame (); let test224 = create 28ul (u8 0) in let test256 = create 32ul (u8 0) in let test384 = create 48ul (u8 0) in let test512 = create 64ul (u8 0) in sha3_224 test224 msg msg_len; sha3_256 test256 msg msg_len; sha3_384 test384 msg msg_len; sha3_512 test512 msg msg_len; if not (result_compare_display 28ul (to_c...
false
Target.fst
Target.error_handler_decl
val error_handler_decl : decl
val error_handler_decl : decl
let error_handler_decl = let open A in let error_handler_id' = { modul_name = Some "EverParse3d.Actions.Base"; name = "error_handler" } in let error_handler_id = with_range error_handler_id' dummy_range in let typ = T_app error_handler_id KindSpec [] in let a = Assumption (error_handler_name...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 18, "end_line": 131, "start_col": 0, "start_line": 122 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Target.decl
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.Mktuple2", "Target.decl'", "Target.decl_attributes", "Target.default_attrs", "Target.Assumption", "Ast.ident", "Target.typ", "Target.error_handler_name", "Target.T_app", "Ast.KindSpec", "Prims.Nil", "FStar.Pervasives.either", "Target.expr", "Ast.with_meta_t", "As...
[]
false
false
false
true
false
let error_handler_decl =
let open A in let error_handler_id' = { modul_name = Some "EverParse3d.Actions.Base"; name = "error_handler" } in let error_handler_id = with_range error_handler_id' dummy_range in let typ = T_app error_handler_id KindSpec [] in let a = Assumption (error_handler_name, typ) in a, default_attrs
false
Target.fst
Target.has_extern_types
val has_extern_types (ds:list decl) : bool
val has_extern_types (ds:list decl) : bool
let has_extern_types (ds:list decl) : bool = List.Tot.existsb (fun (d, _) -> Extern_type? d) ds
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 90, "start_col": 0, "start_line": 89 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ds: Prims.list Target.decl -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Target.decl", "FStar.List.Tot.Base.existsb", "FStar.Pervasives.Native.tuple2", "Target.decl'", "Target.decl_attributes", "Target.uu___is_Extern_type", "Prims.bool" ]
[]
false
false
false
true
false
let has_extern_types (ds: list decl) : bool =
List.Tot.existsb (fun (d, _) -> Extern_type? d) ds
false
Target.fst
Target.default_attrs
val default_attrs : Target.decl_attributes
let default_attrs = { is_hoisted = false; is_if_def = false; is_exported = false; should_inline = false; comments = [] }
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 1, "end_line": 111, "start_col": 0, "start_line": 105 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Target.decl_attributes
Prims.Tot
[ "total" ]
[]
[ "Target.Mkdecl_attributes", "Prims.Nil", "Prims.string" ]
[]
false
false
false
true
false
let default_attrs =
{ is_hoisted = false; is_if_def = false; is_exported = false; should_inline = false; comments = [] }
false
Target.fst
Target.has_external_api
val has_external_api (ds:list decl) : bool
val has_external_api (ds:list decl) : bool
let has_external_api (ds:list decl) : bool = has_output_type_exprs ds || has_extern_types ds || has_extern_functions ds || has_extern_probes ds
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 25, "end_line": 102, "start_col": 0, "start_line": 98 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ds: Prims.list Target.decl -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Target.decl", "Prims.op_BarBar", "Target.has_output_type_exprs", "Target.has_extern_types", "Target.has_extern_functions", "Target.has_extern_probes", "Prims.bool" ]
[]
false
false
false
true
false
let has_external_api (ds: list decl) : bool =
has_output_type_exprs ds || has_extern_types ds || has_extern_functions ds || has_extern_probes ds
false
Target.fst
Target.print_maybe_qualified_ident
val print_maybe_qualified_ident (mname:string) (i:A.ident) : ML string
val print_maybe_qualified_ident (mname:string) (i:A.ident) : ML string
let print_maybe_qualified_ident (mname:string) (i:A.ident) = Printf.sprintf "%s%s" (maybe_mname_prefix mname i) (print_ident i)
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 68, "end_line": 153, "start_col": 0, "start_line": 152 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> i: Ast.ident -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Ast.ident", "FStar.Printf.sprintf", "Target.maybe_mname_prefix", "Target.print_ident" ]
[]
false
true
false
false
false
let print_maybe_qualified_ident (mname: string) (i: A.ident) =
Printf.sprintf "%s%s" (maybe_mname_prefix mname i) (print_ident i)
false
Target.fst
Target.arith_op
val arith_op : o: Target.op -> Prims.bool
let arith_op (o:op) = match o with | Plus _ | Minus _ | Mul _ | Division _ | Remainder _ | ShiftLeft _ | ShiftRight _ | BitwiseAnd _ | BitwiseOr _ | BitwiseXor _ | BitwiseNot _ -> true | _ -> false
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 199, "start_col": 0, "start_line": 186 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
o: Target.op -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Target.op", "Ast.integer_type", "Prims.bool" ]
[]
false
false
false
true
false
let arith_op (o: op) =
match o with | Plus _ | Minus _ | Mul _ | Division _ | Remainder _ | ShiftLeft _ | ShiftRight _ | BitwiseAnd _ | BitwiseOr _ | BitwiseXor _ | BitwiseNot _ -> true | _ -> false
false
Target.fst
Target.is_infix
val is_infix : _: Target.op -> Prims.bool
let is_infix = function | Eq | Neq | And | Or -> true | _ -> false
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 264, "start_col": 0, "start_line": 258 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Target.op -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Target.op", "Prims.bool" ]
[]
false
false
false
true
false
let is_infix =
function | Eq | Neq | And | Or -> true | _ -> false
false
Steel.ST.C.Types.UserStruct.fsti
Steel.ST.C.Types.UserStruct.set_snoc
val set_snoc (#t: eqtype) (q: FStar.Set.set t) (a: t) : Pure (nonempty_set t) (requires True) (ensures (fun s -> (forall (x: t). {:pattern FStar.Set.mem x s} FStar.Set.mem x s == (x = a || FStar.Set.mem x q))))
val set_snoc (#t: eqtype) (q: FStar.Set.set t) (a: t) : Pure (nonempty_set t) (requires True) (ensures (fun s -> (forall (x: t). {:pattern FStar.Set.mem x s} FStar.Set.mem x s == (x = a || FStar.Set.mem x q))))
let set_snoc // for associativity reasons (#t: eqtype) (q: FStar.Set.set t) (a: t) : Pure (nonempty_set t) (requires True) (ensures (fun s -> (forall (x: t). {:pattern FStar.Set.mem x s} FStar.Set.mem x s == (x = a || FStar.Set.mem x q)) )) = q `FStar.Set.union` FStar.Set.singleton a
{ "file_name": "lib/steel/c/Steel.ST.C.Types.UserStruct.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 29, "start_col": 0, "start_line": 23 }
module Steel.ST.C.Types.UserStruct open Steel.ST.Util open Steel.ST.C.Types.Struct.Aux module Set = FStar.Set (* This library allows the user to define their own struct type, with a constructor from field values, and a destructor to field values for each field. This may be necessary for recursive structs *) let set_...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.C.Types.Struct.Aux.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fs...
[ { "abbrev": true, "full_module": "FStar.Set", "short_module": "Set" }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Struct.Aux", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
q: FStar.Set.set t -> a: t -> Prims.Pure (Steel.ST.C.Types.UserStruct.nonempty_set t)
Prims.Pure
[]
[]
[ "Prims.eqtype", "FStar.Set.set", "FStar.Set.union", "FStar.Set.singleton", "Steel.ST.C.Types.UserStruct.nonempty_set", "Prims.l_True", "Prims.l_Forall", "Prims.eq2", "Prims.bool", "FStar.Set.mem", "Prims.op_BarBar", "Prims.op_Equality" ]
[]
false
false
false
false
false
let set_snoc (#t: eqtype) (q: FStar.Set.set t) (a: t) : Pure (nonempty_set t) (requires True) (ensures (fun s -> (forall (x: t). {:pattern FStar.Set.mem x s} FStar.Set.mem x s == (x = a || FStar.Set.mem x q)))) =
q `FStar.Set.union` (FStar.Set.singleton a)
false
Target.fst
Target.print_arith_op_range
val print_arith_op_range: Prims.unit -> ML bool
val print_arith_op_range: Prims.unit -> ML bool
let print_arith_op_range () : ML bool = List.length (Options.get_equate_types_list ()) = 0
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 216, "start_col": 0, "start_line": 215 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.All.ML Prims.bool
FStar.All.ML
[ "ml" ]
[]
[ "Prims.unit", "Prims.op_Equality", "Prims.int", "Prims.bool", "FStar.List.Tot.Base.length", "FStar.Pervasives.Native.tuple2", "Prims.string", "Prims.list", "Options.get_equate_types_list" ]
[]
false
true
false
false
false
let print_arith_op_range () : ML bool =
List.length (Options.get_equate_types_list ()) = 0
false
Lib.Sequence.fsti
Lib.Sequence.last
val last : len: Prims.nat -> blocksize: Lib.IntTypes.size_pos -> Type0
let last (len:nat) (blocksize:size_pos) = i:nat{i = len / blocksize}
{ "file_name": "lib/Lib.Sequence.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 69, "end_line": 437, "start_col": 0, "start_line": 437 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" /// Variable length Sequences, derived from FStar.Seq (* This is the type of unbounded sequences. Use this only whe...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", ...
[ { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib", "short_module": null }, { "abbrev": false, "full_module": "Lib", "shor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Prims.nat -> blocksize: Lib.IntTypes.size_pos -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Division" ]
[]
false
false
false
true
true
let last (len: nat) (blocksize: size_pos) =
i: nat{i = len / blocksize}
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.jump_fldata
val jump_fldata (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (jumper (parse_fldata p sz))
val jump_fldata (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (jumper (parse_fldata p sz))
let jump_fldata (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (jumper (parse_fldata p sz)) = jump_constant_size (parse_fldata p sz) sz32 ()
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 48, "end_line": 217, "start_col": 0, "start_line": 210 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k t -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> LowParse.Low.Base.jumper (LowParse.Spec.FLData.parse_fldata p sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "LowParse.Low.Base.jump_constant_size", "LowParse.Spec.FL...
[]
false
false
false
false
false
let jump_fldata (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (jumper (parse_fldata p sz)) =
jump_constant_size (parse_fldata p sz) sz32 ()
false
Lib.Sequence.fsti
Lib.Sequence.repeat_blocks_f
val repeat_blocks_f (#a #b: Type0) (bs: size_nat{bs > 0}) (inp: seq a) (f: (lseq a bs -> b -> b)) (nb: nat{nb == length inp / bs}) (i: nat{i < nb}) (acc: b) : b
val repeat_blocks_f (#a #b: Type0) (bs: size_nat{bs > 0}) (inp: seq a) (f: (lseq a bs -> b -> b)) (nb: nat{nb == length inp / bs}) (i: nat{i < nb}) (acc: b) : b
let repeat_blocks_f (#a:Type0) (#b:Type0) (bs:size_nat{bs > 0}) (inp:seq a) (f:(lseq a bs -> b -> b)) (nb:nat{nb == length inp / bs}) (i:nat{i < nb}) (acc:b) : b = assert ((i+1) * bs <= nb * bs); let block = Seq.slice inp (i * bs) (i * bs + bs) in f block acc
{ "file_name": "lib/Lib.Sequence.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 280, "start_col": 0, "start_line": 268 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" /// Variable length Sequences, derived from FStar.Seq (* This is the type of unbounded sequences. Use this only whe...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", ...
[ { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib", "short_module": null }, { "abbrev": false, "full_module": "Lib", "shor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: Lib.IntTypes.size_nat{bs > 0} -> inp: Lib.Sequence.seq a -> f: (_: Lib.Sequence.lseq a bs -> _: b -> b) -> nb: Prims.nat{nb == Lib.Sequence.length inp / bs} -> i: Prims.nat{i < nb} -> acc: b -> b
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_GreaterThan", "Lib.Sequence.seq", "Lib.Sequence.lseq", "Prims.nat", "Prims.eq2", "Prims.int", "Prims.op_Division", "Lib.Sequence.length", "Prims.op_LessThan", "FStar.Seq.Base.seq", "FStar.Seq.Base.slice", "FStar.Mul.op_Star", "Prims.op_Addi...
[]
false
false
false
false
false
let repeat_blocks_f (#a #b: Type0) (bs: size_nat{bs > 0}) (inp: seq a) (f: (lseq a bs -> b -> b)) (nb: nat{nb == length inp / bs}) (i: nat{i < nb}) (acc: b) : b =
assert ((i + 1) * bs <= nb * bs); let block = Seq.slice inp (i * bs) (i * bs + bs) in f block acc
false
Target.fst
Target.print_op
val print_op : o: Target.op -> FStar.All.ALL Prims.string
let print_op = print_op_with_range None
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 39, "end_line": 305, "start_col": 0, "start_line": 305 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
o: Target.op -> FStar.All.ALL Prims.string
FStar.All.ALL
[]
[]
[ "Target.print_op_with_range", "FStar.Pervasives.Native.None", "Ast.range" ]
[]
false
true
false
false
false
let print_op =
print_op_with_range None
false
Steel.ST.C.Types.UserStruct.fsti
Steel.ST.C.Types.UserStruct.nonempty_set_nonempty_type
val nonempty_set_nonempty_type (x: string) (s: Set.set string) : Lemma (requires (x `Set.mem` s)) (ensures (exists (x: field_t s). True))
val nonempty_set_nonempty_type (x: string) (s: Set.set string) : Lemma (requires (x `Set.mem` s)) (ensures (exists (x: field_t s). True))
let nonempty_set_nonempty_type (x: string) (s: Set.set string) : Lemma (requires (x `Set.mem` s)) (ensures (exists (x: field_t s) . True)) = Classical.exists_intro (fun (_: field_t s) -> True) x
{ "file_name": "lib/steel/c/Steel.ST.C.Types.UserStruct.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 55, "end_line": 51, "start_col": 0, "start_line": 48 }
module Steel.ST.C.Types.UserStruct open Steel.ST.Util open Steel.ST.C.Types.Struct.Aux module Set = FStar.Set (* This library allows the user to define their own struct type, with a constructor from field values, and a destructor to field values for each field. This may be necessary for recursive structs *) let set_...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.C.Types.Struct.Aux.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fs...
[ { "abbrev": true, "full_module": "FStar.Set", "short_module": "Set" }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Struct.Aux", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Prims.string -> s: FStar.Set.set Prims.string -> FStar.Pervasives.Lemma (requires FStar.Set.mem x s) (ensures exists (x: Steel.ST.C.Types.UserStruct.field_t s). Prims.l_True)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.string", "FStar.Set.set", "FStar.Classical.exists_intro", "Steel.ST.C.Types.UserStruct.field_t", "Prims.l_True", "Prims.unit", "Prims.b2t", "FStar.Set.mem", "Prims.squash", "Prims.l_Exists", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let nonempty_set_nonempty_type (x: string) (s: Set.set string) : Lemma (requires (x `Set.mem` s)) (ensures (exists (x: field_t s). True)) =
Classical.exists_intro (fun (_: field_t s) -> True) x
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.validate_fldata_strong
val validate_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata_strong s sz))
val validate_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata_strong s sz))
let validate_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (v: validator p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (validator (parse_fldata_strong s sz)) = fun #rrel #rel input pos -> let h = HST.get () in [@inline_let] let _ = valid_facts (parse_fldata p s...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 37, "end_line": 207, "start_col": 0, "start_line": 194 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> v: LowParse.Low.Base.validator p -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> LowParse.Low.Base.validator (LowParse.Spec.FLData.parse_fldata_strong s sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Low.Base.validator", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt...
[]
false
false
false
false
false
let validate_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata_strong s sz)) =
fun #rrel #rel input pos -> let h = HST.get () in [@@ inline_let ]let _ = valid_facts (parse_fldata p sz) h input (uint64_to_uint32 pos) in [@@ inline_let ]let _ = valid_facts (parse_fldata_strong s sz) h input (uint64_to_uint32 pos) in validate_fldata v sz sz32 input pos
false
Lib.Sequence.fsti
Lib.Sequence.map_blocks_f
val map_blocks_f (#a: Type) (bs: size_nat{bs > 0}) (max: nat) (inp: seq a {length inp == max * bs}) (f: (i: nat{i < max} -> lseq a bs -> lseq a bs)) (i: nat{i < max}) (acc: map_blocks_a a bs max i) : map_blocks_a a bs max (i + 1)
val map_blocks_f (#a: Type) (bs: size_nat{bs > 0}) (max: nat) (inp: seq a {length inp == max * bs}) (f: (i: nat{i < max} -> lseq a bs -> lseq a bs)) (i: nat{i < max}) (acc: map_blocks_a a bs max i) : map_blocks_a a bs max (i + 1)
let map_blocks_f (#a:Type) (bs:size_nat{bs > 0}) (max:nat) (inp:seq a{length inp == max * bs}) (f:(i:nat{i < max} -> lseq a bs -> lseq a bs)) (i:nat{i < max}) (acc:map_blocks_a a bs max i) : map_blocks_a a bs max (i + 1) = Math.Lemmas.lemma_mult_le_right bs (i+1) max; let block = Seq.slice inp (i*bs) ...
{ "file_name": "lib/Lib.Sequence.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 391, "start_col": 0, "start_line": 380 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" /// Variable length Sequences, derived from FStar.Seq (* This is the type of unbounded sequences. Use this only whe...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", ...
[ { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib", "short_module": null }, { "abbrev": false, "full_module": "Lib", "shor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: Lib.IntTypes.size_nat{bs > 0} -> max: Prims.nat -> inp: Lib.Sequence.seq a {Lib.Sequence.length inp == max * bs} -> f: (i: Prims.nat{i < max} -> _: Lib.Sequence.lseq a bs -> Lib.Sequence.lseq a bs) -> i: Prims.nat{i < max} -> acc: Lib.Sequence.map_blocks_a a bs max i -> Lib.Sequence.map_b...
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_GreaterThan", "Prims.nat", "Lib.Sequence.seq", "Prims.eq2", "Prims.int", "Lib.Sequence.length", "FStar.Mul.op_Star", "Prims.op_LessThan", "Lib.Sequence.lseq", "Lib.Sequence.map_blocks_a", "FStar.Seq.Base.append", "FStar.Seq.Base.seq", "FSta...
[]
false
false
false
false
false
let map_blocks_f (#a: Type) (bs: size_nat{bs > 0}) (max: nat) (inp: seq a {length inp == max * bs}) (f: (i: nat{i < max} -> lseq a bs -> lseq a bs)) (i: nat{i < max}) (acc: map_blocks_a a bs max i) : map_blocks_a a bs max (i + 1) =
Math.Lemmas.lemma_mult_le_right bs (i + 1) max; let block = Seq.slice inp (i * bs) ((i + 1) * bs) in Seq.append acc (f i block)
false
Lib.Sequence.fsti
Lib.Sequence.get_block
val get_block (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len}) (f: (block len blocksize -> lseq a blocksize -> lseq a blocksize)) (i: nat{i < (len / blocksize) * blocksize}) : Pure (lseq a blocksize) True (fun _ -> i / blocksize < len / blocksize)
val get_block (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len}) (f: (block len blocksize -> lseq a blocksize -> lseq a blocksize)) (i: nat{i < (len / blocksize) * blocksize}) : Pure (lseq a blocksize) True (fun _ -> i / blocksize < len / blocksize)
let get_block (#a:Type) (#len:nat) (blocksize:size_pos) (inp:seq a{length inp == len}) (f:(block len blocksize -> lseq a blocksize -> lseq a blocksize)) (i:nat{i < (len / blocksize) * blocksize}) : Pure (lseq a blocksize) True (fun _ -> i / blocksize < len / blocksize) = div_mul_lt blocksize i (len / bl...
{ "file_name": "lib/Lib.Sequence.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 478, "start_col": 0, "start_line": 466 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" /// Variable length Sequences, derived from FStar.Seq (* This is the type of unbounded sequences. Use this only whe...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", ...
[ { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib", "short_module": null }, { "abbrev": false, "full_module": "Lib", "shor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
blocksize: Lib.IntTypes.size_pos -> inp: Lib.Sequence.seq a {Lib.Sequence.length inp == len} -> f: (_: Lib.Sequence.block len blocksize -> _: Lib.Sequence.lseq a blocksize -> Lib.Sequence.lseq a blocksize) -> i: Prims.nat{i < (len / blocksize) * blocksize} -> Prims.Pure (Lib.Sequence....
Prims.Pure
[]
[]
[ "Prims.nat", "Lib.IntTypes.size_pos", "Lib.Sequence.seq", "Prims.eq2", "Lib.Sequence.length", "Lib.Sequence.block", "Lib.Sequence.lseq", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Prims.op_Division", "FStar.Seq.Base.slice", "Prims.op_Addition", "Prims.unit", "Lib.Sequence.di...
[]
false
false
false
false
false
let get_block (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len}) (f: (block len blocksize -> lseq a blocksize -> lseq a blocksize)) (i: nat{i < (len / blocksize) * blocksize}) : Pure (lseq a blocksize) True (fun _ -> i / blocksize < len / blocksize) = ...
div_mul_lt blocksize i (len / blocksize); let j:block len blocksize = i / blocksize in let b:lseq a blocksize = Seq.slice inp (j * blocksize) ((j + 1) * blocksize) in f j b
false
Target.fst
Target.print_expr_lam
val print_expr_lam (mname: string) (x: lam expr) : ML string
val print_expr_lam (mname: string) (x: lam expr) : ML string
let print_expr_lam (mname:string) (x:lam expr) : ML string = print_lam (print_expr mname) x
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 364, "start_col": 0, "start_line": 363 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> x: Target.lam Target.expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.lam", "Target.expr", "Target.print_lam", "Target.print_expr" ]
[]
false
true
false
false
false
let print_expr_lam (mname: string) (x: lam expr) : ML string =
print_lam (print_expr mname) x
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.gaccessor_fldata
val gaccessor_fldata (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor (parse_fldata p sz) p (clens_id _))
val gaccessor_fldata (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor (parse_fldata p sz) p (clens_id _))
let gaccessor_fldata (#k: parser_kind) (#t: Type) (p: parser k t { k.parser_kind_subkind == Some ParserStrong } ) (sz: nat) : Tot (gaccessor (parse_fldata p sz) p (clens_id _)) = gaccessor_prop_equiv (parse_fldata p sz) p (clens_id _) (gaccessor_fldata' p sz); gaccessor_fldata' p sz
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 24, "end_line": 254, "start_col": 0, "start_line": 247 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k t { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> sz: Prims.nat -> LowParse.Low.Base.Spec.gaccessor (LowParse.Spec.FLData.parse_fldata p sz) p (LowParse.Low.Base.Spec.clens_id t)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.Native.Some", "LowParse.Spec.Base.ParserStrong", "Prims.nat", ...
[]
false
false
false
false
false
let gaccessor_fldata (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor (parse_fldata p sz) p (clens_id _)) =
gaccessor_prop_equiv (parse_fldata p sz) p (clens_id _) (gaccessor_fldata' p sz); gaccessor_fldata' p sz
false
Lib.Sequence.fsti
Lib.Sequence.get_last
val get_last (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len}) (g: (last len blocksize -> rem: size_nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (i: nat{(len / blocksize) * blocksize <= i /\ i < len}) : Pure (lseq a (len % blocksize)) True (fun _...
val get_last (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len}) (g: (last len blocksize -> rem: size_nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (i: nat{(len / blocksize) * blocksize <= i /\ i < len}) : Pure (lseq a (len % blocksize)) True (fun _...
let get_last (#a:Type) (#len:nat) (blocksize:size_pos) (inp:seq a{length inp == len}) (g:(last len blocksize -> rem:size_nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (i:nat{(len / blocksize) * blocksize <= i /\ i < len}) : Pure (lseq a (len % blocksize)) True (fun _ -> i % blocksize < len % blocksiz...
{ "file_name": "lib/Lib.Sequence.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 494, "start_col": 0, "start_line": 482 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" /// Variable length Sequences, derived from FStar.Seq (* This is the type of unbounded sequences. Use this only whe...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", ...
[ { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib", "short_module": null }, { "abbrev": false, "full_module": "Lib", "shor...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
blocksize: Lib.IntTypes.size_pos -> inp: Lib.Sequence.seq a {Lib.Sequence.length inp == len} -> g: ( _: Lib.Sequence.last len blocksize -> rem: Lib.IntTypes.size_nat{rem < blocksize} -> _: Lib.Sequence.lseq a rem -> Lib.Sequence.lseq a rem) -> i: Prim...
Prims.Pure
[]
[]
[ "Prims.nat", "Lib.IntTypes.size_pos", "Lib.Sequence.seq", "Prims.eq2", "Lib.Sequence.length", "Lib.Sequence.last", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThan", "Lib.Sequence.lseq", "Prims.l_and", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Prims.op_Division", "FStar.S...
[]
false
false
false
false
false
let get_last (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len}) (g: (last len blocksize -> rem: size_nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (i: nat{(len / blocksize) * blocksize <= i /\ i < len}) : Pure (lseq a (len % blocksize)) True (fun _...
mod_div_lt blocksize i len; let rem = len % blocksize in let b:lseq a rem = Seq.slice inp (len - rem) len in g (len / blocksize) rem b
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.gaccessor_fldata_strong
val gaccessor_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor (parse_fldata_strong s sz) p (clens_fldata_strong s sz))
val gaccessor_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor (parse_fldata_strong s sz) p (clens_fldata_strong s sz))
let gaccessor_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { k.parser_kind_subkind == Some ParserStrong }) (sz: nat) : Tot (gaccessor (parse_fldata_strong s sz) p (clens_fldata_strong s sz)) = gaccessor_prop_equiv (parse_fldata_strong s sz) p (clens_fldata_strong s sz) (gaccess...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 31, "end_line": 307, "start_col": 0, "start_line": 299 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> sz: Prims.nat -> LowParse.Low.Base.Spec.gaccessor (LowParse.Spec.FLData.parse_fldata_strong s sz) p (LowParse.Low.FLData.clens_fl...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.Native.Some", "LowParse.Spec.B...
[]
false
false
false
false
false
let gaccessor_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor (parse_fldata_strong s sz) p (clens_fldata_strong s sz)) =
gaccessor_prop_equiv (parse_fldata_strong s sz) p (clens_fldata_strong s sz) (gaccessor_fldata_strong' s sz); gaccessor_fldata_strong' s sz
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.validate_fldata
val validate_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata p sz))
val validate_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata p sz))
let validate_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (validator (parse_fldata p sz)) = if k.parser_kind_subkind = Some ParserConsumesAll then validate_fldata_consumes_all v sz sz32 () else validate_fldata_gen v sz sz32
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 36, "end_line": 132, "start_col": 0, "start_line": 122 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: LowParse.Low.Base.validator p -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> LowParse.Low.Base.validator (LowParse.Spec.FLData.parse_fldata p sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Low.Base.validator", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "Prims.op_Equality", "FS...
[]
false
false
false
false
false
let validate_fldata (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata p sz)) =
if k.parser_kind_subkind = Some ParserConsumesAll then validate_fldata_consumes_all v sz sz32 () else validate_fldata_gen v sz sz32
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.valid_fldata_gen
val valid_fldata_gen (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) (#rrel #rel: _) (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (U32.v pos + sz < 4294967296 /\ valid_exact p h input pos (pos `U32.add` (U32.uint_to_t sz)) ...
val valid_fldata_gen (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) (#rrel #rel: _) (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (U32.v pos + sz < 4294967296 /\ valid_exact p h input pos (pos `U32.add` (U32.uint_to_t sz)) ...
let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires ( U32.v pos + sz < 4294967296 /\ valid_exact p h input pos (pos `U32.add` U32.uint_to_t sz) )) (ensures ( U32.v pos + sz < 429496729...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 38, "end_line": 36, "start_col": 0, "start_line": 12 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k t -> sz: Prims.nat -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires FStar.UInt32.v pos + sz < 4294967296 /\ LowParse.Low.Base.Spec.valid_exact p h ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.nat", "LowParse.Slice.srel", "LowParse.Bytes.byte", "LowParse.Slice.slice", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "LowParse.Low.Base.Spec.contents_exact_eq", "Prims.unit", "LowParse.Low.Base.Spec.valid_exact_equi...
[]
true
false
true
false
false
let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (U32.v pos + sz < 4294967296 /\ valid_exact p h input pos (pos `U32.add` (U32.uint_to_t sz)) ...
valid_facts (parse_fldata p sz) h input pos; let pos' = pos `U32.add` (U32.uint_to_t sz) in let input' = { base = input.base; len = pos' } in valid_facts p h input' pos; valid_exact_equiv p h input pos pos'; contents_exact_eq p h input pos pos'
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.jump_fldata_strong
val jump_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (jumper (parse_fldata_strong s sz))
val jump_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (jumper (parse_fldata_strong s sz))
let jump_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (jumper (parse_fldata_strong s sz)) = jump_constant_size (parse_fldata_strong s sz) sz32 ()
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 228, "start_col": 0, "start_line": 220 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> LowParse.Low.Base.jumper (LowParse.Spec.FLData.parse_fldata_strong s sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "LowParse.Low.Base.jump_...
[]
false
false
false
false
false
let jump_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (jumper (parse_fldata_strong s sz)) =
jump_constant_size (parse_fldata_strong s sz) sz32 ()
false
Target.fst
Target.lookup
val lookup (s: subst) (i: A.ident) : option expr
val lookup (s: subst) (i: A.ident) : option expr
let lookup (s:subst) (i:A.ident) : option expr = List.Tot.assoc i.v s
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 22, "end_line": 23, "start_col": 0, "start_line": 22 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Target.subst -> i: Ast.ident -> FStar.Pervasives.Native.option Target.expr
Prims.Tot
[ "total" ]
[]
[ "Target.subst", "Ast.ident", "FStar.List.Tot.Base.assoc", "Ast.ident'", "Target.expr", "Ast.__proj__Mkwith_meta_t__item__v", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let lookup (s: subst) (i: A.ident) : option expr =
List.Tot.assoc i.v s
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.gaccessor_fldata'
val gaccessor_fldata' (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor' (parse_fldata p sz) p (clens_id _))
val gaccessor_fldata' (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor' (parse_fldata p sz) p (clens_id _))
let gaccessor_fldata' (#k: parser_kind) (#t: Type) (p: parser k t { k.parser_kind_subkind == Some ParserStrong } ) (sz: nat) : Tot (gaccessor' (parse_fldata p sz) p (clens_id _)) = fun (input: bytes) -> ( let _ = match parse (parse_fldata p sz) input with | None -> () | Some (_, consumed) -> i...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 245, "start_col": 0, "start_line": 230 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k t { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> sz: Prims.nat -> LowParse.Low.Base.Spec.gaccessor' (LowParse.Spec.FLData.parse_fldata p sz) p (LowParse.Low.Base.Spec.clens_id t)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.Native.Some", "LowParse.Spec.Base.ParserStrong", "Prims.nat", ...
[]
false
false
false
false
false
let gaccessor_fldata' (#k: parser_kind) (#t: Type) (p: parser k t {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor' (parse_fldata p sz) p (clens_id _)) =
fun (input: bytes) -> (let _ = match parse (parse_fldata p sz) input with | None -> () | Some (_, consumed) -> if consumed = sz then parse_strong_prefix p (Seq.slice input 0 sz) input in 0)
false
Steel.ST.C.Types.UserStruct.fsti
Steel.ST.C.Types.UserStruct.get_set
val get_set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f) (f': field_t sd.fields) : Lemma (sd.get (set sd x f v) f' == (if f = f' then v else sd.get x f')) [SMTPat (sd.get (set sd x f v) f')]
val get_set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f) (f': field_t sd.fields) : Lemma (sd.get (set sd x f v) f' == (if f = f' then v else sd.get x f')) [SMTPat (sd.get (set sd x f v) f')]
let get_set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f) (f' : field_t sd.fields) : Lemma (sd.get (set sd x f v) f' == (if f = f' then v else sd.get x f')) [SMTPat (sd.get (set sd x f v) f')] = sd.get_mk (set_aux sd x f v) f'
{ "file_name": "lib/steel/c/Steel.ST.C.Types.UserStruct.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 33, "end_line": 66, "start_col": 0, "start_line": 63 }
module Steel.ST.C.Types.UserStruct open Steel.ST.Util open Steel.ST.C.Types.Struct.Aux module Set = FStar.Set (* This library allows the user to define their own struct type, with a constructor from field values, and a destructor to field values for each field. This may be necessary for recursive structs *) let set_...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.C.Types.Struct.Aux.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fs...
[ { "abbrev": true, "full_module": "FStar.Set", "short_module": "Set" }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Struct.Aux", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sd: Steel.ST.C.Types.UserStruct.struct_def t -> x: t -> f: Steel.ST.C.Types.UserStruct.field_t (Mkstruct_def?.fields sd) -> v: Mkfield_description_gen_t?.fd_type (Mkstruct_def?.field_desc sd) f -> f': Steel.ST.C.Types.UserStruct.field_t (Mkstruct_def?.fields sd) -> FStar.Pervasives.Lemma (e...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.ST.C.Types.UserStruct.struct_def", "Steel.ST.C.Types.UserStruct.field_t", "Steel.ST.C.Types.UserStruct.__proj__Mkstruct_def__item__fields", "Steel.ST.C.Types.Struct.Aux.__proj__Mkfield_description_gen_t__item__fd_type", "Steel.ST.C.Types.UserStruct.__proj__Mkstruct_def__item__field_desc", "Steel.ST...
[]
true
false
true
false
false
let get_set (#t: Type) (sd: struct_def t) (x: t) (f: field_t sd.fields) (v: sd.field_desc.fd_type f) (f': field_t sd.fields) : Lemma (sd.get (set sd x f v) f' == (if f = f' then v else sd.get x f')) [SMTPat (sd.get (set sd x f v) f')] =
sd.get_mk (set_aux sd x f v) f'
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.accessor_fldata_strong
val accessor_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (accessor (gaccessor_fldata_strong s sz))
val accessor_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (accessor (gaccessor_fldata_strong s sz))
let accessor_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { k.parser_kind_subkind == Some ParserStrong }) (sz: nat) : Tot (accessor (gaccessor_fldata_strong s sz)) = fun #rrel #rel input pos -> let h = HST.get () in [@inline_let] let _ = slice_access_eq h (gaccessor_fldata_...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 320, "start_col": 0, "start_line": 310 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> sz: Prims.nat -> LowParse.Low.Base.accessor (LowParse.Low.FLData.gaccessor_fldata_strong s sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.Native.Some", "LowParse.Spec.B...
[]
false
false
false
false
false
let accessor_fldata_strong (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (accessor (gaccessor_fldata_strong s sz)) =
fun #rrel #rel input pos -> let h = HST.get () in [@@ inline_let ]let _ = slice_access_eq h (gaccessor_fldata_strong s sz) input pos in pos
false
Target.fst
Target.parser_kind_eq
val parser_kind_eq (k k':parser_kind) : bool
val parser_kind_eq (k k':parser_kind) : bool
let rec parser_kind_eq k k' = match k.pk_kind, k'.pk_kind with | PK_return, PK_return -> true | PK_impos, PK_impos -> true | PK_list, PK_list -> true | PK_t_at_most, PK_t_at_most -> true | PK_t_exact, PK_t_exact -> true | PK_base hd1, PK_base hd2 -> A.(hd1.v = hd2.v) | PK_filter k, PK_filter ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 81, "start_col": 0, "start_line": 68 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: Target.parser_kind -> k': Target.parser_kind -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Target.parser_kind", "FStar.Pervasives.Native.Mktuple2", "Target.parser_kind'", "Target.__proj__Mkparser_kind__item__pk_kind", "Ast.ident", "Prims.op_Equality", "Ast.ident'", "Ast.__proj__Mkwith_meta_t__item__v", "Target.parser_kind_eq", "Prims.op_AmpAmp", "FStar.Pervasives.Native.tuple2", "P...
[ "recursion" ]
false
false
false
true
false
let rec parser_kind_eq k k' =
match k.pk_kind, k'.pk_kind with | PK_return, PK_return -> true | PK_impos, PK_impos -> true | PK_list, PK_list -> true | PK_t_at_most, PK_t_at_most -> true | PK_t_exact, PK_t_exact -> true | PK_base hd1, PK_base hd2 -> let open A in hd1.v = hd2.v | PK_filter k, PK_filter k' -> parser_kind_eq k k' | PK_and_then k1 k2, ...
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.gaccessor_fldata_strong'
val gaccessor_fldata_strong' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor' (parse_fldata_strong s sz) p (clens_fldata_strong s sz))
val gaccessor_fldata_strong' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor' (parse_fldata_strong s sz) p (clens_fldata_strong s sz))
let gaccessor_fldata_strong' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { k.parser_kind_subkind == Some ParserStrong }) (sz: nat) : Tot (gaccessor' (parse_fldata_strong s sz) p (clens_fldata_strong s sz)) = fun (input: bytes) -> let _ = match parse (parse_fldata_strong s sz) input wit...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 296, "start_col": 0, "start_line": 281 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> sz: Prims.nat -> LowParse.Low.Base.Spec.gaccessor' (LowParse.Spec.FLData.parse_fldata_strong s sz) p (LowParse.Low.FLData.clens_f...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.Native.Some", "LowParse.Spec.B...
[]
false
false
false
false
false
let gaccessor_fldata_strong' (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (sz: nat) : Tot (gaccessor' (parse_fldata_strong s sz) p (clens_fldata_strong s sz)) =
fun (input: bytes) -> let _ = match parse (parse_fldata_strong s sz) input with | None -> () | Some (_, consumed) -> if consumed = sz then parse_strong_prefix p (Seq.slice input 0 sz) input in 0
false
Target.fst
Target.maybe_mname_prefix
val maybe_mname_prefix (mname:string) (i:A.ident) : string
val maybe_mname_prefix (mname:string) (i:A.ident) : string
let maybe_mname_prefix (mname:string) (i:A.ident) = let open A in match i.v.modul_name with | None -> "" | Some s -> if s = mname then "" else Printf.sprintf "%s." s
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 62, "end_line": 141, "start_col": 0, "start_line": 137 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> i: Ast.ident -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Ast.ident", "Ast.__proj__Mkident'__item__modul_name", "Ast.__proj__Mkwith_meta_t__item__v", "Ast.ident'", "Prims.op_Equality", "Prims.bool", "FStar.Printf.sprintf" ]
[]
false
false
false
true
false
let maybe_mname_prefix (mname: string) (i: A.ident) =
let open A in match i.v.modul_name with | None -> "" | Some s -> if s = mname then "" else Printf.sprintf "%s." s
false
Target.fst
Target.subst_exprs
val subst_exprs : s: Target.subst -> es: Prims.list (Target.expr' * Ast.range) -> Prims.list (Target.expr' * Ast.range)
let rec subst_expr (s:subst) (e:expr) : expr = match fst e with | Constant _ -> e | Identifier i -> ( match lookup s i with | Some e' -> e' | None -> e ) | App hd args -> ( App hd (subst_exprs s args), snd e ) | Record tn fields -> ( Record tn (subst_fields s fields), snd e ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 47, "start_col": 0, "start_line": 25 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Target.subst -> es: Prims.list (Target.expr' * Ast.range) -> Prims.list (Target.expr' * Ast.range)
Prims.Tot
[ "total" ]
[ "subst_expr", "subst_exprs", "subst_fields" ]
[ "Target.subst", "Prims.list", "FStar.Pervasives.Native.tuple2", "Target.expr'", "Ast.range", "Prims.Nil", "Prims.Cons", "Target.subst_expr", "Target.subst_exprs" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec subst_exprs s es =
match es with | [] -> [] | e :: es -> subst_expr s e :: subst_exprs s es
false
Target.fst
Target.subst_fields
val subst_fields : s: Target.subst -> fs: Prims.list (Ast.ident * (Target.expr' * Ast.range)) -> Prims.list (Ast.ident * (Target.expr' * Ast.range))
let rec subst_expr (s:subst) (e:expr) : expr = match fst e with | Constant _ -> e | Identifier i -> ( match lookup s i with | Some e' -> e' | None -> e ) | App hd args -> ( App hd (subst_exprs s args), snd e ) | Record tn fields -> ( Record tn (subst_fields s fields), snd e ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 47, "start_col": 0, "start_line": 25 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Target.subst -> fs: Prims.list (Ast.ident * (Target.expr' * Ast.range)) -> Prims.list (Ast.ident * (Target.expr' * Ast.range))
Prims.Tot
[ "total" ]
[ "subst_expr", "subst_exprs", "subst_fields" ]
[ "Target.subst", "Prims.list", "FStar.Pervasives.Native.tuple2", "Ast.ident", "Target.expr'", "Ast.range", "Prims.Nil", "Prims.Cons", "FStar.Pervasives.Native.Mktuple2", "Target.subst_expr", "Target.subst_fields" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec subst_fields s fs =
match fs with | [] -> [] | (i, e) :: fs -> (i, subst_expr s e) :: subst_fields s fs
false
Target.fst
Target.print_typedef_typ
val print_typedef_typ (tdn: typedef_name) : ML string
val print_typedef_typ (tdn: typedef_name) : ML string
let print_typedef_typ (tdn:typedef_name) : ML string = Printf.sprintf "%s %s" (print_ident tdn.td_name) (String.concat " " (List.map (fun (id, t) -> (print_ident id)) tdn.td_params))
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 65, "end_line": 529, "start_col": 0, "start_line": 525 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tdn: Target.typedef_name -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.typedef_name", "FStar.Printf.sprintf", "Target.print_ident", "Target.__proj__Mktypedef_name__item__td_name", "Prims.string", "FStar.String.concat", "Prims.list", "FStar.List.map", "FStar.Pervasives.Native.tuple2", "Ast.ident", "Target.typ", "Target.__proj__Mktypedef_name__item__td_para...
[]
false
true
false
false
false
let print_typedef_typ (tdn: typedef_name) : ML string =
Printf.sprintf "%s %s" (print_ident tdn.td_name) (String.concat " " (List.map (fun (id, t) -> (print_ident id)) tdn.td_params))
false
Target.fst
Target.exprs_eq
val exprs_eq (es1 es1:list expr) : bool
val exprs_eq (es1 es1:list expr) : bool
let rec expr_eq e1 e2 = match fst e1, fst e2 with | Constant c1, Constant c2 -> c1=c2 | Identifier i1, Identifier i2 -> A.(i1.v = i2.v) | App hd1 args1, App hd2 args2 -> hd1 = hd2 && exprs_eq args1 args2 | Record t1 fields1, Record t2 fields2 -> A.(t1.v = t2.v) && fields_eq fields1 fields2 | _ -> fals...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 67, "start_col": 0, "start_line": 49 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
es1: Prims.list Target.expr -> es1: Prims.list Target.expr -> Prims.bool
Prims.Tot
[ "total" ]
[ "expr_eq", "exprs_eq", "fields_eq" ]
[ "Prims.list", "Target.expr", "FStar.Pervasives.Native.Mktuple2", "Prims.op_AmpAmp", "Target.expr_eq", "Target.exprs_eq", "FStar.Pervasives.Native.tuple2", "Prims.bool" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec exprs_eq es1 es2 =
match es1, es2 with | [], [] -> true | e1 :: es1, e2 :: es2 -> expr_eq e1 e2 && exprs_eq es1 es2 | _ -> false
false
Target.fst
Target.namespace_of_integer_type
val namespace_of_integer_type : _: Ast.integer_type -> Prims.string
let namespace_of_integer_type = let open A in function | UInt8 -> "UInt8" | UInt16 -> "UInt16" | UInt32 -> "UInt32" | UInt64 -> "UInt64"
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 23, "end_line": 175, "start_col": 0, "start_line": 169 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Ast.integer_type -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Ast.integer_type", "Prims.string" ]
[]
false
false
false
true
false
let namespace_of_integer_type =
let open A in function | UInt8 -> "UInt8" | UInt16 -> "UInt16" | UInt32 -> "UInt32" | UInt64 -> "UInt64"
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.valid_fldata_gen_elim
val valid_fldata_gen_elim (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) (#rrel #rel: _) (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (valid (parse_fldata p sz) h input pos)) (ensures (U32.v pos + sz < 4294967296 /\ ...
val valid_fldata_gen_elim (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) (#rrel #rel: _) (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (valid (parse_fldata p sz) h input pos)) (ensures (U32.v pos + sz < 4294967296 /\ ...
let valid_fldata_gen_elim (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires ( valid (parse_fldata p sz) h input pos )) (ensures ( U32.v pos + sz < 4294967296 /\ ( let pos' = pos `U32.add` U32.uint_to_t s...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 38, "end_line": 62, "start_col": 0, "start_line": 38 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k t -> sz: Prims.nat -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid (LowParse.Spec.FLData.parse_fldata p sz) h input pos) (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.nat", "LowParse.Slice.srel", "LowParse.Bytes.byte", "LowParse.Slice.slice", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "LowParse.Low.Base.Spec.contents_exact_eq", "Prims.unit", "LowParse.Low.Base.Spec.valid_exact_equi...
[]
true
false
true
false
false
let valid_fldata_gen_elim (#k: parser_kind) (#t: Type) (p: parser k t) (sz: nat) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (valid (parse_fldata p sz) h input pos)) (ensures (U32.v pos + sz < 4294967296 /\ ...
valid_facts (parse_fldata p sz) h input pos; let pos' = pos `U32.add` (U32.uint_to_t sz) in let input' = { base = input.base; len = pos' } in valid_facts p h input' pos; valid_exact_equiv p h input pos pos'; contents_exact_eq p h input pos pos'
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.validate_fldata_consumes_all
val validate_fldata_consumes_all (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) (sq: squash (k.parser_kind_subkind == Some ParserConsumesAll)) : Tot (validator (parse_fldata p sz))
val validate_fldata_consumes_all (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) (sq: squash (k.parser_kind_subkind == Some ParserConsumesAll)) : Tot (validator (parse_fldata p sz))
let validate_fldata_consumes_all (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) (sq: squash (k.parser_kind_subkind == Some ParserConsumesAll)) : Tot (validator (parse_fldata p sz)) = fun #rrel #rel input pos -> let h = HST.get () in [@inlin...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 119, "start_col": 0, "start_line": 93 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: LowParse.Low.Base.validator p -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> sq: Prims.squash (Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll) -> LowParse.Low.Base.validator (LowParse.Spec.FLData.pa...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Low.Base.validator", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "Prims.squash", "FStar.P...
[]
false
false
false
false
false
let validate_fldata_consumes_all (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) (sq: squash (k.parser_kind_subkind == Some ParserConsumesAll)) : Tot (validator (parse_fldata p sz)) =
fun #rrel #rel input pos -> let h = HST.get () in [@@ inline_let ]let _ = valid_facts (parse_fldata p sz) h input (uint64_to_uint32 pos); parse_fldata_consumes_all_correct p sz (bytes_of_slice_from h input (uint64_to_uint32 pos)) in if ((Cast.uint32_to_uint64 input.len) `U64.sub` pos) `U64.lt` (Cast.uin...
false
Target.fst
Target.print_ident
val print_ident (i:A.ident) : string
val print_ident (i:A.ident) : string
let print_ident (i:A.ident) = let open A in match String.list_of_string i.v.name with | [] -> i.v.name | c0::_ -> if FStar.Char.lowercase c0 = c0 then i.v.name else Ast.reserved_prefix^i.v.name
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 37, "end_line": 150, "start_col": 0, "start_line": 143 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Ast.ident -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Ast.ident", "FStar.String.list_of_string", "Ast.__proj__Mkident'__item__name", "Ast.__proj__Mkwith_meta_t__item__v", "Ast.ident'", "FStar.String.char", "Prims.list", "Prims.op_Equality", "FStar.Char.char", "FStar.Char.lowercase", "Prims.bool", "Prims.op_Hat", "Ast.reserved_prefix", "Prims...
[]
false
false
false
true
false
let print_ident (i: A.ident) =
let open A in match String.list_of_string i.v.name with | [] -> i.v.name | c0 :: _ -> if FStar.Char.lowercase c0 = c0 then i.v.name else Ast.reserved_prefix ^ i.v.name
false
Target.fst
Target.print_typedef_actions_inv_and_fp
val print_typedef_actions_inv_and_fp : td: Target.type_decl -> Prims.string * Prims.string
let print_typedef_actions_inv_and_fp (td:type_decl) = //we need to add output loc to the modifies locs //if there is an output type type parameter let should_add_output_loc = List.Tot.existsb (fun (_, t) -> is_output_type t || is_extern_type t) td.decl_name.td_params in let pointers = //get ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 11, "end_line": 570, "start_col": 0, "start_line": 544 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
td: Target.type_decl -> Prims.string * Prims.string
Prims.Tot
[ "total" ]
[]
[ "Target.type_decl", "FStar.Pervasives.Native.Mktuple2", "Prims.string", "FStar.List.Tot.Base.fold_right", "FStar.Pervasives.Native.tuple2", "Ast.ident", "Target.typ", "FStar.Printf.sprintf", "Target.print_ident", "Prims.bool", "Prims.list", "Prims.l_Forall", "Prims.l_imp", "FStar.List.Tot....
[]
false
false
false
true
false
let print_typedef_actions_inv_and_fp (td: type_decl) =
let should_add_output_loc = List.Tot.existsb (fun (_, t) -> is_output_type t || is_extern_type t) td.decl_name.td_params in let pointers = List.Tot.filter (fun (x, t) -> T_pointer? t && not (is_output_type t || is_extern_type t)) td.decl_name.td_params in let inv = List.Tot.fold_right (fun (x, t) out -> ...
false
Target.fst
Target.print_comments
val print_comments (cs: list string) : string
val print_comments (cs: list string) : string
let print_comments (cs:list string) : string = match cs with | [] -> "" | _ -> let c = String.concat "\\n\\\n" cs in Printf.sprintf " (Comment \"%s\")" c
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 40, "end_line": 577, "start_col": 0, "start_line": 572 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cs: Prims.list Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Prims.string", "FStar.Printf.sprintf", "FStar.String.concat" ]
[]
false
false
false
true
false
let print_comments (cs: list string) : string =
match cs with | [] -> "" | _ -> let c = String.concat "\\n\\\n" cs in Printf.sprintf " (Comment \"%s\")" c
false
Target.fst
Target.fields_eq
val fields_eq (fs1 fs2:list (A.ident & expr)) : bool
val fields_eq (fs1 fs2:list (A.ident & expr)) : bool
let rec expr_eq e1 e2 = match fst e1, fst e2 with | Constant c1, Constant c2 -> c1=c2 | Identifier i1, Identifier i2 -> A.(i1.v = i2.v) | App hd1 args1, App hd2 args2 -> hd1 = hd2 && exprs_eq args1 args2 | Record t1 fields1, Record t2 fields2 -> A.(t1.v = t2.v) && fields_eq fields1 fields2 | _ -> fals...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 67, "start_col": 0, "start_line": 49 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
fs1: Prims.list (Ast.ident * Target.expr) -> fs2: Prims.list (Ast.ident * Target.expr) -> Prims.bool
Prims.Tot
[ "total" ]
[ "expr_eq", "exprs_eq", "fields_eq" ]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "Ast.ident", "Target.expr", "FStar.Pervasives.Native.Mktuple2", "Prims.op_AmpAmp", "Prims.op_Equality", "Ast.ident'", "Ast.__proj__Mkwith_meta_t__item__v", "Target.fields_eq", "Prims.bool" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec fields_eq fs1 fs2 =
match fs1, fs2 with | [], [] -> true | (i1, e1) :: fs1, (i2, e2) :: fs2 -> A.(i1.v = i2.v) && fields_eq fs1 fs2 | _ -> false
false
Target.fst
Target.print_attributes
val print_attributes (entrypoint: bool) (attrs: decl_attributes) : string
val print_attributes (entrypoint: bool) (attrs: decl_attributes) : string
let print_attributes (entrypoint:bool) (attrs:decl_attributes) : string = match attrs.comments with | [] -> if entrypoint || attrs.is_exported then "" else if attrs.should_inline then "inline_for_extraction noextract\n" else "[@ (CInline)]\n" | cs -> Printf.sprintf "[@ %s %s]\n%s"...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 69, "end_line": 594, "start_col": 0, "start_line": 579 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
entrypoint: Prims.bool -> attrs: Target.decl_attributes -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Target.decl_attributes", "Target.__proj__Mkdecl_attributes__item__comments", "Prims.op_BarBar", "Target.__proj__Mkdecl_attributes__item__is_exported", "Target.__proj__Mkdecl_attributes__item__should_inline", "Prims.string", "Prims.list", "FStar.Printf.sprintf", "Target.print_comment...
[]
false
false
false
true
false
let print_attributes (entrypoint: bool) (attrs: decl_attributes) : string =
match attrs.comments with | [] -> if entrypoint || attrs.is_exported then "" else if attrs.should_inline then "inline_for_extraction noextract\n" else "[@ (CInline)]\n" | cs -> Printf.sprintf "[@ %s %s]\n%s" (print_comments cs) (if not entrypoint && not attrs.is_exported && not attrs.should_inline then ...
false
Target.fst
Target.subst_expr
val subst_expr (s:subst) (e:expr) : expr
val subst_expr (s:subst) (e:expr) : expr
let rec subst_expr (s:subst) (e:expr) : expr = match fst e with | Constant _ -> e | Identifier i -> ( match lookup s i with | Some e' -> e' | None -> e ) | App hd args -> ( App hd (subst_exprs s args), snd e ) | Record tn fields -> ( Record tn (subst_fields s fields), snd e ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 47, "start_col": 0, "start_line": 25 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Target.subst -> e: Target.expr -> Target.expr
Prims.Tot
[ "total" ]
[ "subst_expr", "subst_exprs", "subst_fields" ]
[ "Target.subst", "Target.expr", "FStar.Pervasives.Native.fst", "Target.expr'", "Ast.range", "Ast.constant", "Ast.ident", "Target.lookup", "Target.op", "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "Target.App", "Target.subst_exprs", "FStar.Pervasives....
[ "mutual recursion" ]
false
false
false
true
false
let rec subst_expr (s: subst) (e: expr) : expr =
match fst e with | Constant _ -> e | Identifier i -> (match lookup s i with | Some e' -> e' | None -> e) | App hd args -> (App hd (subst_exprs s args), snd e) | Record tn fields -> (Record tn (subst_fields s fields), snd e)
false
Target.fst
Target.print_field_id_name
val print_field_id_name : i: Ast.ident -> FStar.All.ALL Prims.string
let print_field_id_name (i:A.ident) = let open A in match i.v.modul_name with | None -> failwith "Unexpected: module name missing from the field id" | Some m -> Printf.sprintf "%s_%s" (String.lowercase m) i.v.name
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 66, "end_line": 159, "start_col": 0, "start_line": 155 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Ast.ident -> FStar.All.ALL Prims.string
FStar.All.ALL
[]
[]
[ "Ast.ident", "Ast.__proj__Mkident'__item__modul_name", "Ast.__proj__Mkwith_meta_t__item__v", "Ast.ident'", "FStar.All.failwith", "Prims.string", "FStar.Printf.sprintf", "FStar.String.lowercase", "Ast.__proj__Mkident'__item__name" ]
[]
false
true
false
false
false
let print_field_id_name (i: A.ident) =
let open A in match i.v.modul_name with | None -> failwith "Unexpected: module name missing from the field id" | Some m -> Printf.sprintf "%s_%s" (String.lowercase m) i.v.name
false
Target.fst
Target.print_typedef_name
val print_typedef_name (mname: string) (tdn: typedef_name) : ML string
val print_typedef_name (mname: string) (tdn: typedef_name) : ML string
let print_typedef_name (mname:string) (tdn:typedef_name) : ML string = Printf.sprintf "%s %s" (print_ident tdn.td_name) (String.concat " " (List.map (fun (id, t) -> Printf.sprintf "(%s:%s)" ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 36, "end_line": 523, "start_col": 0, "start_line": 514 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> tdn: Target.typedef_name -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.typedef_name", "FStar.Printf.sprintf", "Target.print_ident", "Target.__proj__Mktypedef_name__item__td_name", "FStar.String.concat", "Prims.list", "FStar.List.map", "FStar.Pervasives.Native.tuple2", "Ast.ident", "Target.typ", "Target.print_typ", "Target.__proj__Mktyped...
[]
false
true
false
false
false
let print_typedef_name (mname: string) (tdn: typedef_name) : ML string =
Printf.sprintf "%s %s" (print_ident tdn.td_name) (String.concat " " (List.map (fun (id, t) -> Printf.sprintf "(%s:%s)" (print_ident id) (print_typ mname t)) tdn.td_params))
false
Target.fst
Target.expr_eq
val expr_eq (e1 e1:expr) : bool
val expr_eq (e1 e1:expr) : bool
let rec expr_eq e1 e2 = match fst e1, fst e2 with | Constant c1, Constant c2 -> c1=c2 | Identifier i1, Identifier i2 -> A.(i1.v = i2.v) | App hd1 args1, App hd2 args2 -> hd1 = hd2 && exprs_eq args1 args2 | Record t1 fields1, Record t2 fields2 -> A.(t1.v = t2.v) && fields_eq fields1 fields2 | _ -> fals...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 67, "start_col": 0, "start_line": 49 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e1: Target.expr -> e1: Target.expr -> Prims.bool
Prims.Tot
[ "total" ]
[ "expr_eq", "exprs_eq", "fields_eq" ]
[ "Target.expr", "FStar.Pervasives.Native.Mktuple2", "Target.expr'", "FStar.Pervasives.Native.fst", "Ast.range", "Ast.constant", "Prims.op_Equality", "Ast.ident", "Ast.ident'", "Ast.__proj__Mkwith_meta_t__item__v", "Target.op", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.op_AmpAmp...
[ "mutual recursion" ]
false
false
false
true
false
let rec expr_eq e1 e2 =
match fst e1, fst e2 with | Constant c1, Constant c2 -> c1 = c2 | Identifier i1, Identifier i2 -> let open A in i1.v = i2.v | App hd1 args1, App hd2 args2 -> hd1 = hd2 && exprs_eq args1 args2 | Record t1 fields1, Record t2 fields2 -> A.(t1.v = t2.v) && fields_eq fields1 fields2 | _ -> false
false
Target.fst
Target.uppercase
val uppercase (name: string) : string
val uppercase (name: string) : string
let uppercase (name:string) : string = String.uppercase name
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 60, "end_line": 724, "start_col": 0, "start_line": 724 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
name: Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.String.uppercase" ]
[]
false
false
false
true
false
let uppercase (name: string) : string =
String.uppercase name
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.valid_fldata_strong_gen_elim
val valid_fldata_strong_gen_elim (#k: parser_kind) (#t: Type0) (#p: parser k t) (s: serializer p) (sz: nat) (#rrel #rel: _) (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (valid (parse_fldata_strong s sz) h input pos)) (ensures ...
val valid_fldata_strong_gen_elim (#k: parser_kind) (#t: Type0) (#p: parser k t) (s: serializer p) (sz: nat) (#rrel #rel: _) (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (valid (parse_fldata_strong s sz) h input pos)) (ensures ...
let valid_fldata_strong_gen_elim (#k: parser_kind) (#t: Type0) (#p: parser k t) (s: serializer p) (sz: nat) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires ( valid (parse_fldata_strong s sz) h input pos )) (ensures ( U32.v pos + sz < 4294967296 /\ ( let ...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 38, "end_line": 191, "start_col": 0, "start_line": 164 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> sz: Prims.nat -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid (LowParse.Spec.FLData.parse_fldata_strong s sz) h input pos) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "LowParse.Slice.srel", "LowParse.Bytes.byte", "LowParse.Slice.slice", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "LowParse.Low.Base.Spec.contents_exact_eq", "Prims.unit", "LowP...
[]
true
false
true
false
false
let valid_fldata_strong_gen_elim (#k: parser_kind) (#t: Type0) (#p: parser k t) (s: serializer p) (sz: nat) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (valid (parse_fldata_strong s sz) h input pos)) (ensures ...
valid_facts (parse_fldata_strong s sz) h input pos; let pos' = pos `U32.add` (U32.uint_to_t sz) in let input' = { base = input.base; len = pos' } in valid_facts p h input' pos; valid_exact_equiv p h input pos pos'; contents_exact_eq p h input pos pos'
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.validate_fldata_gen
val validate_fldata_gen (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata p sz))
val validate_fldata_gen (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata p sz))
let validate_fldata_gen (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t { U32.v sz32 == sz } ) : Tot (validator (parse_fldata p sz)) = fun #rrel #rel input pos -> let h = HST.get () in [@inline_let] let _ = valid_facts (parse_fldata p sz) h input (uint64_to_uint32 p...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 90, "start_col": 0, "start_line": 65 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: LowParse.Low.Base.validator p -> sz: Prims.nat -> sz32: FStar.UInt32.t{FStar.UInt32.v sz32 == sz} -> LowParse.Low.Base.validator (LowParse.Spec.FLData.parse_fldata p sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Low.Base.validator", "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "LowParse.Slice.srel", "...
[]
false
false
false
false
false
let validate_fldata_gen (#k: parser_kind) (#t: Type) (#p: parser k t) (v: validator p) (sz: nat) (sz32: U32.t{U32.v sz32 == sz}) : Tot (validator (parse_fldata p sz)) =
fun #rrel #rel input pos -> let h = HST.get () in [@@ inline_let ]let _ = valid_facts (parse_fldata p sz) h input (uint64_to_uint32 pos) in if ((Cast.uint32_to_uint64 input.len) `U64.sub` pos) `U64.lt` (Cast.uint32_to_uint64 sz32) then validator_error_not_enough_data else [@@ inline_let ]let input' = ...
false
Target.fst
Target.external_api_include
val external_api_include (modul: string) (ds: list decl) : string
val external_api_include (modul: string) (ds: list decl) : string
let external_api_include (modul:string) (ds:list decl) : string = if has_external_api ds then Printf.sprintf "open %s.ExternalAPI\n\n" modul else ""
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 9, "end_line": 689, "start_col": 0, "start_line": 686 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
modul: Prims.string -> ds: Prims.list Target.decl -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Prims.list", "Target.decl", "Target.has_external_api", "FStar.Printf.sprintf", "Prims.bool" ]
[]
false
false
false
true
false
let external_api_include (modul: string) (ds: list decl) : string =
if has_external_api ds then Printf.sprintf "open %s.ExternalAPI\n\n" modul else ""
false
Target.fst
Target.wrapper_name
val wrapper_name (modul: string) (fn: string) : ML string
val wrapper_name (modul: string) (fn: string) : ML string
let wrapper_name (modul: string) (fn: string) : ML string = Printf.sprintf "%s_check_%s" modul fn |> pascal_case
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 776, "start_col": 0, "start_line": 769 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
modul: Prims.string -> fn: Prims.string -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.pascal_case", "FStar.Printf.sprintf" ]
[]
false
true
false
false
false
let wrapper_name (modul fn: string) : ML string =
Printf.sprintf "%s_check_%s" modul fn |> pascal_case
false
Target.fst
Target.get_output_typ_dep
val get_output_typ_dep (modul: string) (t: typ) : ML (option string)
val get_output_typ_dep (modul: string) (t: typ) : ML (option string)
let rec get_output_typ_dep (modul:string) (t:typ) : ML (option string) = match t with | T_app {v={modul_name=None}} _ _ -> None | T_app {v={modul_name=Some m}} _ _ -> if m = modul then None else Some m | T_pointer t -> get_output_typ_dep modul t | _ -> failwith "get_typ_deps: unexpected output ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 767, "start_col": 0, "start_line": 760 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
modul: Prims.string -> t: Target.typ -> FStar.All.ML (FStar.Pervasives.Native.option Prims.string)
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.typ", "Ast.range", "Ast.comments", "Ast.t_kind", "Prims.list", "FStar.Pervasives.either", "Target.expr", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option", "Prims.op_Equality", "Prims.bool", "FStar.Pervasives.Native.Some", "Target.get_output_typ_dep",...
[ "recursion" ]
false
true
false
false
false
let rec get_output_typ_dep (modul: string) (t: typ) : ML (option string) =
match t with | T_app { v = { modul_name = None } } _ _ -> None | T_app { v = { modul_name = Some m } } _ _ -> if m = modul then None else Some m | T_pointer t -> get_output_typ_dep modul t | _ -> failwith "get_typ_deps: unexpected output type"
false
Spec.K256.Lemmas.fst
Spec.K256.Lemmas.to_aff_point_negate_lemma
val to_aff_point_negate_lemma (p:proj_point) : Lemma (to_aff_point (point_negate p) == aff_point_negate (to_aff_point p))
val to_aff_point_negate_lemma (p:proj_point) : Lemma (to_aff_point (point_negate p) == aff_point_negate (to_aff_point p))
let to_aff_point_negate_lemma p = let px, py, pz = p in let qx, qy = to_aff_point (point_negate p) in assert (qx == px /% pz /\ qy == (- py) % prime /% pz); let ax, ay = aff_point_negate (to_aff_point p) in assert (ax == px /% pz /\ ay == (- py /% pz) % prime); let pz_inv = M.pow_mod #prime pz (prime - 2) i...
{ "file_name": "specs/lemmas/Spec.K256.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 74, "start_col": 0, "start_line": 58 }
module Spec.K256.Lemmas open FStar.Mul open Spec.K256.PointOps module Euclid = FStar.Math.Euclid module M = Lib.NatMod #set-options "--z3rlimit 50 --ifuel 0 --fuel 0" assume val prime_lemma: unit -> Lemma (Euclid.is_prime prime) let lemma_aff_is_point_at_inf p = prime_lemma (); let (px, py, pz) = p in M.lem...
{ "checked_file": "/", "dependencies": [ "Spec.K256.PointOps.fst.checked", "prims.fst.checked", "Lib.NatMod.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Math.Euclid.fsti.checked...
[ { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.Math.Euclid", "short_module": "Euclid" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "LM" }, { "abbrev": false, "full_module": "Sp...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Spec.K256.PointOps.proj_point -> FStar.Pervasives.Lemma (ensures Spec.K256.PointOps.to_aff_point (Spec.K256.PointOps.point_negate p) == Spec.K256.PointOps.aff_point_negate (Spec.K256.PointOps.to_aff_point p))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.felem", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Modulus", "FStar.Mul.op_Star", "Prims.op_Minus", "Spec.K256.PointOps.prime", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step"...
[]
false
false
true
false
false
let to_aff_point_negate_lemma p =
let px, py, pz = p in let qx, qy = to_aff_point (point_negate p) in assert (qx == px /% pz /\ qy == (- py) % prime /% pz); let ax, ay = aff_point_negate (to_aff_point p) in assert (ax == px /% pz /\ ay == (- py /% pz) % prime); let pz_inv = M.pow_mod #prime pz (prime - 2) in calc ( == ) { (((- py) % prime) * pz_inv) ...
false
Target.fst
Target.validator_name
val validator_name (modul: string) (fn: string) : ML string
val validator_name (modul: string) (fn: string) : ML string
let validator_name (modul: string) (fn: string) : ML string = Printf.sprintf "%s_validate_%s" modul fn |> pascal_case
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 785, "start_col": 0, "start_line": 778 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
modul: Prims.string -> fn: Prims.string -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.pascal_case", "FStar.Printf.sprintf" ]
[]
false
true
false
false
false
let validator_name (modul fn: string) : ML string =
Printf.sprintf "%s_validate_%s" modul fn |> pascal_case
false
Target.fst
Target.integer_type_of_arith_op
val integer_type_of_arith_op : o: Target.op{Target.arith_op o} -> Ast.integer_type
let integer_type_of_arith_op (o:op{arith_op o}) = match o with | Plus t | Minus t | Mul t | Division t | Remainder t | ShiftLeft t | ShiftRight t | BitwiseAnd t | BitwiseOr t | BitwiseXor t | BitwiseNot t -> t
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 21, "end_line": 213, "start_col": 0, "start_line": 201 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
o: Target.op{Target.arith_op o} -> Ast.integer_type
Prims.Tot
[ "total" ]
[]
[ "Target.op", "Prims.b2t", "Target.arith_op", "Ast.integer_type" ]
[]
false
false
false
false
false
let integer_type_of_arith_op (o: op{arith_op o}) =
match o with | Plus t | Minus t | Mul t | Division t | Remainder t | ShiftLeft t | ShiftRight t | BitwiseAnd t | BitwiseOr t | BitwiseXor t | BitwiseNot t -> t
false
Target.fst
Target.print_integer_type
val print_integer_type : _: Ast.integer_type -> Prims.string
let print_integer_type = let open A in function | UInt8 -> "uint8" | UInt16 -> "uint16" | UInt32 -> "uint32" | UInt64 -> "uint64"
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 23, "end_line": 167, "start_col": 0, "start_line": 161 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Ast.integer_type -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Ast.integer_type", "Prims.string" ]
[]
false
false
false
true
false
let print_integer_type =
let open A in function | UInt8 -> "uint8" | UInt16 -> "uint16" | UInt32 -> "uint32" | UInt64 -> "uint64"
false
Target.fst
Target.out_bt_name
val out_bt_name (t: typ) : ML string
val out_bt_name (t: typ) : ML string
let rec out_bt_name (t:typ) : ML string = match t with | T_app i _ _ -> A.ident_name i | T_pointer t -> out_bt_name t | _ -> failwith "Impossible, out_bt_name received a non output type!"
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 71, "end_line": 1037, "start_col": 0, "start_line": 1033 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Target.typ -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.typ", "Ast.ident", "Ast.t_kind", "Prims.list", "FStar.Pervasives.either", "Target.expr", "Ast.ident_name", "Prims.string", "Target.out_bt_name", "FStar.All.failwith" ]
[ "recursion" ]
false
true
false
false
false
let rec out_bt_name (t: typ) : ML string =
match t with | T_app i _ _ -> A.ident_name i | T_pointer t -> out_bt_name t | _ -> failwith "Impossible, out_bt_name received a non output type!"
false
Target.fst
Target.print_as_c_type
val print_as_c_type (t: typ) : ML string
val print_as_c_type (t: typ) : ML string
let rec print_as_c_type (t:typ) : ML string = let open Ast in match t with | T_pointer t -> Printf.sprintf "%s*" (print_as_c_type t) | T_app {v={name="Bool"}} _ [] -> "BOOLEAN" | T_app {v={name="UINT8"}} _ [] -> "uint8_t" | T_app {v={name="UINT16"}} _ [] ->...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 22, "end_line": 748, "start_col": 0, "start_line": 726 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Target.typ -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.typ", "FStar.Printf.sprintf", "Prims.string", "Target.print_as_c_type", "FStar.Pervasives.Native.option", "Ast.range", "Ast.comments", "Ast.t_kind", "Target.uppercase" ]
[ "recursion" ]
false
true
false
false
false
let rec print_as_c_type (t: typ) : ML string =
let open Ast in match t with | T_pointer t -> Printf.sprintf "%s*" (print_as_c_type t) | T_app { v = { name = "Bool" } } _ [] -> "BOOLEAN" | T_app { v = { name = "UINT8" } } _ [] -> "uint8_t" | T_app { v = { name = "UINT16" } } _ [] -> "uint16_t" | T_app { v = { name = "UINT32" } } _ [] -> "uint32_t" | T_app { v = { na...
false
Target.fst
Target.is_extern_type
val is_extern_type (t: typ) : bool
val is_extern_type (t: typ) : bool
let rec is_extern_type (t:typ) : bool = match t with | T_app _ A.KindExtern [] -> true | T_pointer t -> is_extern_type t | _ -> false
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 376, "start_col": 0, "start_line": 372 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Target.typ -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Target.typ", "Ast.ident", "Target.is_extern_type", "Prims.bool" ]
[ "recursion" ]
false
false
false
true
false
let rec is_extern_type (t: typ) : bool =
match t with | T_app _ A.KindExtern [] -> true | T_pointer t -> is_extern_type t | _ -> false
false
Target.fst
Target.print_bitfield_bit_order
val print_bitfield_bit_order : _: Ast.bitfield_bit_order -> Prims.string
let print_bitfield_bit_order = function | A.LSBFirst -> "" | A.MSBFirst -> "_msb_first"
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 30, "end_line": 271, "start_col": 0, "start_line": 269 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Ast.bitfield_bit_order -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Ast.bitfield_bit_order", "Prims.string" ]
[]
false
false
false
true
false
let print_bitfield_bit_order =
function | A.LSBFirst -> "" | A.MSBFirst -> "_msb_first"
false
Target.fst
Target.print_lam
val print_lam (#a: Type) (f: (a -> ML string)) (x: lam a) : ML string
val print_lam (#a: Type) (f: (a -> ML string)) (x: lam a) : ML string
let print_lam (#a:Type) (f:a -> ML string) (x:lam a) : ML string = match x with | Some x, y -> Printf.sprintf ("(fun %s -> %s)") (print_ident x) (f y) | None, y -> f y
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 18, "end_line": 361, "start_col": 0, "start_line": 355 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> FStar.All.ML Prims.string) -> x: Target.lam a -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.lam", "Ast.ident", "FStar.Printf.sprintf", "Target.print_ident" ]
[]
false
true
false
false
false
let print_lam (#a: Type) (f: (a -> ML string)) (x: lam a) : ML string =
match x with | Some x, y -> Printf.sprintf ("(fun %s -> %s)") (print_ident x) (f y) | None, y -> f y
false
Target.fst
Target.out_expr_bt_name
val out_expr_bt_name (oe: output_expr) : ML string
val out_expr_bt_name (oe: output_expr) : ML string
let out_expr_bt_name (oe:output_expr) : ML string = out_bt_name oe.oe_bt
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 72, "end_line": 1039, "start_col": 0, "start_line": 1039 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
oe: Target.output_expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.output_expr", "Target.out_bt_name", "Target.__proj__Mkoutput_expr__item__oe_bt", "Prims.string" ]
[]
false
true
false
false
false
let out_expr_bt_name (oe: output_expr) : ML string =
out_bt_name oe.oe_bt
false
Target.fst
Target.print_arith_op
val print_arith_op (o: op{arith_op o}) (r: option A.range) : ML string
val print_arith_op (o: op{arith_op o}) (r: option A.range) : ML string
let print_arith_op (o:op{arith_op o}) (r:option A.range) : ML string = let fn = match o with | Plus _ -> "add" | Minus _ -> "sub" | Mul _ -> "mul" | Division _ -> "div" | Remainder _ -> "rem" | ShiftLeft _ -> "shift_left" | ShiftRight _ -> "shift_right" ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 33, "end_line": 256, "start_col": 0, "start_line": 218 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
o: Target.op{Target.arith_op o} -> r: FStar.Pervasives.Native.option Ast.range -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.op", "Prims.b2t", "Target.arith_op", "FStar.Pervasives.Native.option", "Ast.range", "FStar.Printf.sprintf", "Target.print_range", "Ast.dummy_range", "Prims.string", "Target.integer_type_of_arith_op", "Prims.bool", "Target.print_arith_op_range", "Ast.integer_type" ]
[]
false
true
false
false
false
let print_arith_op (o: op{arith_op o}) (r: option A.range) : ML string =
let fn = match o with | Plus _ -> "add" | Minus _ -> "sub" | Mul _ -> "mul" | Division _ -> "div" | Remainder _ -> "rem" | ShiftLeft _ -> "shift_left" | ShiftRight _ -> "shift_right" | BitwiseAnd _ -> "logand" | BitwiseOr _ -> "logor" | BitwiseXor _ -> "logxor" | BitwiseNot _ -> "lognot" in if p...
false
LowStar.BufferView.fsti
LowStar.BufferView.as_buffer_t
val as_buffer_t : b: LowStar.BufferView.buffer dest -> Type0
let as_buffer_t (#dest:Type) (b:buffer dest) = B.mbuffer (Mkdtuple4?._1 b) (Mkdtuple4?._2 b) (Mkdtuple4?._3 b)
{ "file_name": "ulib/LowStar.BufferView.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 110, "end_line": 82, "start_col": 0, "start_line": 82 }
(* Copyright 2008-2018 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 agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "...
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: LowStar.BufferView.buffer dest -> Type0
Prims.Tot
[ "total" ]
[]
[ "LowStar.BufferView.buffer", "LowStar.Monotonic.Buffer.mbuffer", "FStar.Pervasives.__proj__Mkdtuple4__item___1", "LowStar.Monotonic.Buffer.srel", "LowStar.BufferView.buffer_view", "FStar.Pervasives.__proj__Mkdtuple4__item___2", "FStar.Pervasives.__proj__Mkdtuple4__item___3" ]
[]
false
false
false
true
true
let as_buffer_t (#dest: Type) (b: buffer dest) =
B.mbuffer (Mkdtuple4?._1 b) (Mkdtuple4?._2 b) (Mkdtuple4?._3 b)
false
LowStar.BufferView.fsti
LowStar.BufferView.inverses
val inverses : f: (_: a -> Prims.GTot b) -> g: (_: b -> Prims.GTot a) -> Prims.logical
let inverses #a #b (f: (a -> GTot b)) (g: (b -> GTot a)) = (forall x. g (f x) == x) /\ (forall y. f (g y) == y)
{ "file_name": "ulib/LowStar.BufferView.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 26, "end_line": 43, "start_col": 0, "start_line": 39 }
(* Copyright 2008-2018 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 agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "...
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> Prims.GTot b) -> g: (_: b -> Prims.GTot a) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Prims.l_and", "Prims.l_Forall", "Prims.eq2", "Prims.logical" ]
[]
false
false
false
false
true
let inverses #a #b (f: (a -> GTot b)) (g: (b -> GTot a)) =
(forall x. g (f x) == x) /\ (forall y. f (g y) == y)
false
Target.fst
Target.print_op_with_range
val print_op_with_range : ropt: FStar.Pervasives.Native.option Ast.range -> o: Target.op -> FStar.All.ALL Prims.string
let print_op_with_range ropt o = match o with | Eq -> "=" | Neq -> "<>" | And -> "&&" | Or -> "||" | Not -> "not" | Plus _ | Minus _ | Mul _ | Division _ | Remainder _ | ShiftLeft _ | ShiftRight _ | BitwiseAnd _ | BitwiseOr _ | BitwiseXor _ | BitwiseNot _ -> print_arit...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 303, "start_col": 0, "start_line": 273 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ropt: FStar.Pervasives.Native.option Ast.range -> o: Target.op -> FStar.All.ALL Prims.string
FStar.All.ALL
[]
[]
[ "FStar.Pervasives.Native.option", "Ast.range", "Target.op", "Prims.string", "Ast.integer_type", "Target.print_arith_op", "FStar.Printf.sprintf", "Target.namespace_of_integer_type", "Prims.int", "Ast.bitfield_bit_order", "Target.print_bitfield_bit_order", "Prims.op_Equality", "Prims.bool", ...
[]
false
true
false
false
false
let print_op_with_range ropt o =
match o with | Eq -> "=" | Neq -> "<>" | And -> "&&" | Or -> "||" | Not -> "not" | Plus _ | Minus _ | Mul _ | Division _ | Remainder _ | ShiftLeft _ | ShiftRight _ | BitwiseAnd _ | BitwiseOr _ | BitwiseXor _ | BitwiseNot _ -> print_arith_op o ropt | LT t -> Printf.sprintf "FStar.%s.lt" (namespace_of_integer_type t) | G...
false
Target.fst
Target.base_output_type
val base_output_type (t: typ) : ML A.ident
val base_output_type (t: typ) : ML A.ident
let rec base_output_type (t:typ) : ML A.ident = match t with | T_app id A.KindOutput [] -> id | T_pointer t -> base_output_type t | _ -> failwith "Target.base_output_type called with a non-output type"
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 73, "end_line": 1066, "start_col": 0, "start_line": 1062 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Target.typ -> FStar.All.ML Ast.ident
FStar.All.ML
[ "ml" ]
[]
[ "Target.typ", "Ast.ident", "Target.base_output_type", "FStar.All.failwith" ]
[ "recursion" ]
false
true
false
false
false
let rec base_output_type (t: typ) : ML A.ident =
match t with | T_app id A.KindOutput [] -> id | T_pointer t -> base_output_type t | _ -> failwith "Target.base_output_type called with a non-output type"
false
LowStar.BufferView.fsti
LowStar.BufferView.live
val live : h: FStar.Monotonic.HyperStack.mem -> vb: LowStar.BufferView.buffer b -> Type0
let live #b h (vb:buffer b) = live h (as_buffer vb)
{ "file_name": "ulib/LowStar.BufferView.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 126, "start_col": 0, "start_line": 126 }
(* Copyright 2008-2018 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 agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "...
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> vb: LowStar.BufferView.buffer b -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.BufferView.buffer", "LowStar.Monotonic.Buffer.live", "FStar.Pervasives.__proj__Mkdtuple4__item___1", "LowStar.Monotonic.Buffer.srel", "LowStar.BufferView.buffer_view", "FStar.Pervasives.__proj__Mkdtuple4__item___2", "FStar.Pervasives.__proj__Mkdtuple4__item__...
[]
false
false
false
true
true
let live #b h (vb: buffer b) =
live h (as_buffer vb)
false
LowStar.BufferView.fsti
LowStar.BufferView.buffer
val buffer (dest: Type u#a) : Type u#(max a 1)
val buffer (dest: Type u#a) : Type u#(max a 1)
let buffer (dest:Type u#a) : Type u#(max a 1) = (src:Type0 & rrel:B.srel src & rel:B.srel src & buffer_view src rrel rel dest)
{ "file_name": "ulib/LowStar.BufferView.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 126, "end_line": 80, "start_col": 0, "start_line": 80 }
(* Copyright 2008-2018 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 agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "...
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
dest: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.dtuple4", "LowStar.Monotonic.Buffer.srel", "LowStar.BufferView.buffer_view" ]
[]
false
false
false
true
true
let buffer (dest: Type u#a) : Type u#(max a 1) =
(src: Type0 & rrel: B.srel src & rel: B.srel src & buffer_view src rrel rel dest)
false
LowStar.BufferView.fsti
LowStar.BufferView.modifies
val modifies : vb: LowStar.BufferView.buffer b -> h: FStar.Monotonic.HyperStack.mem -> h': FStar.Monotonic.HyperStack.mem -> Type0
let modifies (#b: _) (vb:buffer b) (h h':HS.mem) = B.modifies (B.loc_buffer (as_buffer vb)) h h'
{ "file_name": "ulib/LowStar.BufferView.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 193, "start_col": 0, "start_line": 190 }
(* Copyright 2008-2018 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 agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "...
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": false, "full_module": "LowStar.Monotonic.Buffer", "short_module": null }, { "abbrev": false...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
vb: LowStar.BufferView.buffer b -> h: FStar.Monotonic.HyperStack.mem -> h': FStar.Monotonic.HyperStack.mem -> Type0
Prims.Tot
[ "total" ]
[]
[ "LowStar.BufferView.buffer", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_buffer", "FStar.Pervasives.__proj__Mkdtuple4__item___1", "LowStar.Monotonic.Buffer.srel", "LowStar.BufferView.buffer_view", "FStar.Pervasives.__proj__Mkdtuple4__item___2", ...
[]
false
false
false
true
true
let modifies (#b: _) (vb: buffer b) (h h': HS.mem) =
B.modifies (B.loc_buffer (as_buffer vb)) h h'
false
Target.fst
Target.print_out_expr_set
val print_out_expr_set (tbl: set) (oe: output_expr) : ML string
val print_out_expr_set (tbl: set) (oe: output_expr) : ML string
let print_out_expr_set (tbl:set) (oe:output_expr) : ML string = let fn_name = pascal_case (Printf.sprintf "set_%s" (out_fn_name oe)) in match H.try_find tbl fn_name with | Some _ -> "" | _ -> H.insert tbl fn_name (); let fn_arg1_t = print_as_c_type oe.oe_bt in let fn_arg1_name = base_id_of_ou...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 34, "end_line": 1158, "start_col": 0, "start_line": 1136 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tbl: Target.set -> oe: Target.output_expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.set", "Target.output_expr", "Prims.unit", "Prims.string", "FStar.Pervasives.Native.option", "FStar.Printf.sprintf", "Ast.ident_name", "Target.print_out_expr'", "Target.__proj__Mkoutput_expr__item__oe_expr", "Target.print_as_c_type", "Target.__proj__Mkoutput_expr__item__oe_t", "Ast.iden...
[]
false
true
false
false
false
let print_out_expr_set (tbl: set) (oe: output_expr) : ML string =
let fn_name = pascal_case (Printf.sprintf "set_%s" (out_fn_name oe)) in match H.try_find tbl fn_name with | Some _ -> "" | _ -> H.insert tbl fn_name (); let fn_arg1_t = print_as_c_type oe.oe_bt in let fn_arg1_name = base_id_of_output_expr oe in let fn_arg2_t = print_as_c_type oe.oe_t in let fn_arg2_name = "__...
false
Target.fst
Target.output_setter_name
val output_setter_name (lhs:output_expr) : ML string
val output_setter_name (lhs:output_expr) : ML string
let output_setter_name lhs = Printf.sprintf "set_%s" (out_fn_name lhs)
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 70, "end_line": 1196, "start_col": 0, "start_line": 1196 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lhs: Target.output_expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.output_expr", "FStar.Printf.sprintf", "Prims.string", "Target.out_fn_name" ]
[]
false
true
false
false
false
let output_setter_name lhs =
Printf.sprintf "set_%s" (out_fn_name lhs)
false
Target.fst
Target.print_out_expr_get
val print_out_expr_get (tbl: set) (oe: output_expr) : ML string
val print_out_expr_get (tbl: set) (oe: output_expr) : ML string
let print_out_expr_get(tbl:set) (oe:output_expr) : ML string = let fn_name = pascal_case (Printf.sprintf "get_%s" (out_fn_name oe)) in match H.try_find tbl fn_name with | Some _ -> "" | _ -> H.insert tbl fn_name (); let fn_arg1_t = print_as_c_type oe.oe_bt in let fn_arg1_name = base_id_of_out...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 34, "end_line": 1194, "start_col": 0, "start_line": 1178 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tbl: Target.set -> oe: Target.output_expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.set", "Target.output_expr", "Prims.unit", "Prims.string", "FStar.Pervasives.Native.option", "FStar.Printf.sprintf", "Ast.ident_name", "Target.print_out_expr'", "Target.__proj__Mkoutput_expr__item__oe_expr", "Target.print_as_c_type", "Target.__proj__Mkoutput_expr__item__oe_t", "Ast.iden...
[]
false
true
false
false
false
let print_out_expr_get (tbl: set) (oe: output_expr) : ML string =
let fn_name = pascal_case (Printf.sprintf "get_%s" (out_fn_name oe)) in match H.try_find tbl fn_name with | Some _ -> "" | _ -> H.insert tbl fn_name (); let fn_arg1_t = print_as_c_type oe.oe_bt in let fn_arg1_name = base_id_of_output_expr oe in let fn_res = print_as_c_type oe.oe_t in let fn_body = Printf.spri...
false
Target.fst
Target.output_getter_name
val output_getter_name (lhs:output_expr) : ML string
val output_getter_name (lhs:output_expr) : ML string
let output_getter_name lhs = Printf.sprintf "get_%s" (out_fn_name lhs)
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 70, "end_line": 1197, "start_col": 0, "start_line": 1197 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lhs: Target.output_expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.output_expr", "FStar.Printf.sprintf", "Prims.string", "Target.out_fn_name" ]
[]
false
true
false
false
false
let output_getter_name lhs =
Printf.sprintf "get_%s" (out_fn_name lhs)
false
LowParse.Low.FLData.fst
LowParse.Low.FLData.valid_fldata_strong_gen
val valid_fldata_strong_gen (#k: parser_kind) (#t: Type0) (#p: parser k t) (s: serializer p) (sz: nat) (#rrel #rel: _) (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (U32.v pos + sz < 4294967296 /\ valid_exact p h input pos (pos...
val valid_fldata_strong_gen (#k: parser_kind) (#t: Type0) (#p: parser k t) (s: serializer p) (sz: nat) (#rrel #rel: _) (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (U32.v pos + sz < 4294967296 /\ valid_exact p h input pos (pos...
let valid_fldata_strong_gen (#k: parser_kind) (#t: Type0) (#p: parser k t) (s: serializer p) (sz: nat) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires ( U32.v pos + sz < 4294967296 /\ valid_exact p h input pos (pos `U32.add` U32.uint_to_t sz) )) (ensures ( ...
{ "file_name": "src/lowparse/LowParse.Low.FLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 38, "end_line": 162, "start_col": 0, "start_line": 134 }
module LowParse.Low.FLData include LowParse.Low.Combinators include LowParse.Spec.FLData module B = LowStar.Buffer module U32 = FStar.UInt32 module HST = FStar.HyperStack.ST module HS = FStar.HyperStack module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_fldata_gen (#k: parser_kind) (#t: Type) (p: ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked",...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> sz: Prims.nat -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires FStar.UInt32.v pos + sz < 4294967296 /\ LowParse.Low.Base.Spec.valid_exact p ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.nat", "LowParse.Slice.srel", "LowParse.Bytes.byte", "LowParse.Slice.slice", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "LowParse.Low.Base.Spec.contents_exact_eq", "Prims.unit", "LowP...
[]
true
false
true
false
false
let valid_fldata_strong_gen (#k: parser_kind) (#t: Type0) (#p: parser k t) (s: serializer p) (sz: nat) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : Lemma (requires (U32.v pos + sz < 4294967296 /\ valid_exact p h input pos (po...
valid_facts (parse_fldata_strong s sz) h input pos; let pos' = pos `U32.add` (U32.uint_to_t sz) in let input' = { base = input.base; len = pos' } in valid_facts p h input' pos; valid_exact_equiv p h input pos pos'; contents_exact_eq p h input pos pos'
false
Target.fst
Target.print_out_expr_get_fstar
val print_out_expr_get_fstar (tbl: set) (mname: string) (oe: output_expr) : ML string
val print_out_expr_get_fstar (tbl: set) (mname: string) (oe: output_expr) : ML string
let print_out_expr_get_fstar (tbl:set) (mname:string) (oe:output_expr) : ML string = let fn_name = Printf.sprintf "get_%s" (out_fn_name oe) in match H.try_find tbl fn_name with | Some _ -> "" | _ -> H.insert tbl fn_name (); let fn_arg1_t = print_typ mname oe.oe_bt in let fn_res = print_typ mn...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 71, "end_line": 1172, "start_col": 0, "start_line": 1164 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tbl: Target.set -> mname: Prims.string -> oe: Target.output_expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Target.set", "Prims.string", "Target.output_expr", "Prims.unit", "FStar.Pervasives.Native.option", "FStar.Printf.sprintf", "Target.print_typ", "Target.__proj__Mkoutput_expr__item__oe_t", "Target.__proj__Mkoutput_expr__item__oe_bt", "Hashtable.insert", "Hashtable.try_find", "Target.out_fn_name...
[]
false
true
false
false
false
let print_out_expr_get_fstar (tbl: set) (mname: string) (oe: output_expr) : ML string =
let fn_name = Printf.sprintf "get_%s" (out_fn_name oe) in match H.try_find tbl fn_name with | Some _ -> "" | _ -> H.insert tbl fn_name (); let fn_arg1_t = print_typ mname oe.oe_bt in let fn_res = print_typ mname oe.oe_t in Printf.sprintf "\n\nval %s : %s -> %s\n\n" fn_name fn_arg1_t fn_res
false
Target.fst
Target.print_out_typ
val print_out_typ (ot: A.out_typ) : ML string
val print_out_typ (ot: A.out_typ) : ML string
let print_out_typ (ot:A.out_typ) : ML string = let open A in Printf.sprintf "\ntypedef %s %s {\n%s\n} %s;\n" (if ot.out_typ_is_union then "union" else "struct") (uppercase (A.ident_name ot.out_typ_names.typedef_name)) (print_output_types_fields ot.out_typ_fields) (uppercase (A.ident_name ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 62, "end_line": 1352, "start_col": 0, "start_line": 1345 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ot: Ast.out_typ -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Ast.out_typ", "Target.uppercase", "Ast.ident_name", "Ast.__proj__Mktypedef_names__item__typedef_abbrev", "Ast.__proj__Mkout_typ__item__out_typ_names", "Prims.string", "FStar.Printf.sprintf", "Ast.__proj__Mkout_typ__item__out_typ_is_union", "Prims.bool", "Ast.__proj__Mktypedef_names__item__typedef...
[]
false
true
false
false
false
let print_out_typ (ot: A.out_typ) : ML string =
let open A in Printf.sprintf "\ntypedef %s %s {\n%s\n} %s;\n" (if ot.out_typ_is_union then "union" else "struct") (uppercase (A.ident_name ot.out_typ_names.typedef_name)) (print_output_types_fields ot.out_typ_fields) (uppercase (A.ident_name ot.out_typ_names.typedef_abbrev))
false
Target.fst
Target.print_external_types_fstar_interpreter
val print_external_types_fstar_interpreter (modul:string) (ds:decls) : ML string
val print_external_types_fstar_interpreter (modul:string) (ds:decls) : ML string
let print_external_types_fstar_interpreter (modul:string) (ds:decls) : ML string = let tbl = H.create 10 in let s = String.concat "" (ds |> List.map (fun d -> match fst d with | Output_type ot -> let t = T_app ot.out_typ_names.typedef_abbrev A.KindOutput [] in Printf.sprintf "%s%s" ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 1217, "start_col": 0, "start_line": 1200 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
modul: Prims.string -> ds: Target.decls -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.decls", "FStar.Printf.sprintf", "FStar.String.concat", "Prims.list", "FStar.List.map", "FStar.Pervasives.Native.tuple2", "Target.decl'", "Target.decl_attributes", "FStar.Pervasives.Native.fst", "Ast.out_typ", "Target.print_output_type_val", "Target.T_pointer", "Targ...
[]
false
true
false
false
false
let print_external_types_fstar_interpreter (modul: string) (ds: decls) : ML string =
let tbl = H.create 10 in let s = String.concat "" (ds |> List.map (fun d -> match fst d with | Output_type ot -> let t = T_app ot.out_typ_names.typedef_abbrev A.KindOutput [] in Printf.sprintf "%s%s" (print_output_type_val tbl t) ...
false
Target.fst
Target.is_output_type
val is_output_type (t: typ) : bool
val is_output_type (t: typ) : bool
let rec is_output_type (t:typ) : bool = match t with | T_app _ A.KindOutput [] -> true | T_pointer t -> is_output_type t | _ -> false
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 370, "start_col": 0, "start_line": 366 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Target.typ -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Target.typ", "Ast.ident", "Target.is_output_type", "Prims.bool" ]
[ "recursion" ]
false
false
false
true
false
let rec is_output_type (t: typ) : bool =
match t with | T_app _ A.KindOutput [] -> true | T_pointer t -> is_output_type t | _ -> false
false
Target.fst
Target.output_base_var
val output_base_var (lhs:output_expr) : ML A.ident
val output_base_var (lhs:output_expr) : ML A.ident
let output_base_var lhs = base_id_of_output_expr lhs
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 1198, "start_col": 0, "start_line": 1198 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lhs: Target.output_expr -> FStar.All.ML Ast.ident
FStar.All.ML
[ "ml" ]
[]
[ "Target.output_expr", "Target.base_id_of_output_expr", "Ast.ident" ]
[]
false
true
false
false
false
let output_base_var lhs =
base_id_of_output_expr lhs
false
Target.fst
Target.is_type_abbreviation
val is_type_abbreviation (td: type_decl) : bool
val is_type_abbreviation (td: type_decl) : bool
let is_type_abbreviation (td:type_decl) : bool = match td.decl_typ with | TD_abbrev _ -> true | TD_struct _ -> false
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 24, "end_line": 683, "start_col": 0, "start_line": 680 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
td: Target.type_decl -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Target.type_decl", "Target.__proj__Mktype_decl__item__decl_typ", "Target.typ", "Prims.list", "Target.field", "Prims.bool" ]
[]
false
false
false
true
false
let is_type_abbreviation (td: type_decl) : bool =
match td.decl_typ with | TD_abbrev _ -> true | TD_struct _ -> false
false
Target.fst
Target.print_output_type
val print_output_type (qual: bool) (t: typ) : ML string
val print_output_type (qual: bool) (t: typ) : ML string
let print_output_type (qual:bool) (t:typ) : ML string = let rec aux (t:typ) : ML (option string & string) = match t with | T_app id _ _ -> id.v.modul_name, print_ident id | T_pointer t -> let m, i = aux t in m, Printf.sprintf "p_%s" i | _ -> failwith "Print: ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 8, "end_line": 399, "start_col": 0, "start_line": 383 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
qual: Prims.bool -> t: Target.typ -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.bool", "Target.typ", "FStar.Pervasives.Native.option", "Prims.string", "FStar.Printf.sprintf", "FStar.Pervasives.Native.tuple2", "Ast.ident", "Ast.t_kind", "Prims.list", "FStar.Pervasives.either", "Target.expr", "FStar.Pervasives.Native.Mktuple2", "Ast.__proj__Mkident'__item__modul_na...
[]
false
true
false
false
false
let print_output_type (qual: bool) (t: typ) : ML string =
let rec aux (t: typ) : ML (option string & string) = match t with | T_app id _ _ -> id.v.modul_name, print_ident id | T_pointer t -> let m, i = aux t in m, Printf.sprintf "p_%s" i | _ -> failwith "Print: not an output type" in let mopt, i = aux t in if qual then match mopt with | None -> i | Some ...
false
Target.fst
Target.print_external_api_fstar_interpreter
val print_external_api_fstar_interpreter (modul:string) (ds:decls) : ML string
val print_external_api_fstar_interpreter (modul:string) (ds:decls) : ML string
let print_external_api_fstar_interpreter (modul:string) (ds:decls) : ML string = let tbl = H.create 10 in let s = String.concat "" (ds |> List.map (fun d -> match fst d with // | Output_type ot -> // let t = T_app ot.out_typ_names.typedef_name A.KindOutput [] in // Printf.sprintf "%s%s" ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 1260, "start_col": 0, "start_line": 1219 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
modul: Prims.string -> ds: Target.decls -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.decls", "FStar.Printf.sprintf", "Prims.op_BarBar", "Target.has_output_types", "Target.has_extern_types", "Prims.bool", "FStar.String.concat", "Prims.list", "FStar.List.map", "FStar.Pervasives.Native.tuple2", "Target.decl'", "Target.decl_attributes", "FStar.Pervasive...
[]
false
true
false
false
false
let print_external_api_fstar_interpreter (modul: string) (ds: decls) : ML string =
let tbl = H.create 10 in let s = String.concat "" (ds |> List.map (fun d -> match fst d with | Output_type_expr oe is_get -> Printf.sprintf "%s" (if not is_get then print_out_expr_set_fstar tbl modul oe else print_out_...
false
Steel.GhostMonotonicHigherReference.fst
Steel.GhostMonotonicHigherReference.pts_to'
val pts_to' : r: Steel.GhostMonotonicHigherReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a -> Steel.Effect.Common.vprop
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v: a) = h_exists (pts_to_body r f v)
{ "file_name": "lib/steel/Steel.GhostMonotonicHigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 45, "start_col": 0, "start_line": 44 }
(* 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...
{ "checked_file": "/", "dependencies": [ "Steel.Preorder.fst.checked", "Steel.Memory.fsti.checked", "Steel.GhostPCMReference.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Real.fsti...
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": true, "full_module": "Steel.Effect.Atomic", "short_module": "A" }, { "abbrev": true, "full_module": "Steel.GhostPCMReference", "short_module": "PR" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.GhostMonotonicHigherReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Steel.GhostMonotonicHigherReference.ref", "Steel.FractionalPermission.perm", "Steel.Effect.Atomic.h_exists", "Steel.Preorder.history", "Steel.GhostMonotonicHigherReference.pts_to_body", "Steel.Effect.Common.vprop" ]
[]
false
false
false
false
false
let pts_to' (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: a) =
h_exists (pts_to_body r f v)
false
Steel.GhostMonotonicHigherReference.fst
Steel.GhostMonotonicHigherReference.pts_to_body
val pts_to_body : r: Steel.GhostMonotonicHigherReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a -> h: Steel.Preorder.history a p -> Steel.Effect.Common.vprop
let pts_to_body #a #p (r:ref a p) (f:perm) (v:a) (h:history a p) = PR.pts_to r h `star` pure (history_val h v f)
{ "file_name": "lib/steel/Steel.GhostMonotonicHigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 42, "start_col": 0, "start_line": 40 }
(* 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...
{ "checked_file": "/", "dependencies": [ "Steel.Preorder.fst.checked", "Steel.Memory.fsti.checked", "Steel.GhostPCMReference.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Real.fsti...
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": true, "full_module": "Steel.Effect.Atomic", "short_module": "A" }, { "abbrev": true, "full_module": "Steel.GhostPCMReference", "short_module": "PR" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.GhostMonotonicHigherReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a -> h: Steel.Preorder.history a p -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Steel.GhostMonotonicHigherReference.ref", "Steel.FractionalPermission.perm", "Steel.Preorder.history", "Steel.Effect.Common.star", "Steel.GhostPCMReference.pts_to", "Steel.Preorder.pcm_history", "Steel.Effect.Common.pure", "Steel.Preorder.history_val", "FStar.Ghost.hide...
[]
false
false
false
false
false
let pts_to_body #a #p (r: ref a p) (f: perm) (v: a) (h: history a p) =
(PR.pts_to r h) `star` (pure (history_val h v f))
false
Target.fst
Target.print_definition
val print_definition (mname:string) (d:decl { Definition? (fst d)} ) : ML string
val print_definition (mname:string) (d:decl { Definition? (fst d)} ) : ML string
let print_definition (mname:string) (d:decl { Definition? (fst d)} ) : ML string = match fst d with | Definition (x, [], T_app ({Ast.v={Ast.name="field_id"}}) _ _, (Constant c, _)) -> Printf.sprintf "[@(CMacro)%s]\nlet %s = %s <: Tot field_id by (FStar.Tactics.trivial())\n\n" (print_comments (snd d).co...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 638, "start_col": 0, "start_line": 613 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> d: Target.decl{Definition? (FStar.Pervasives.Native.fst d)} -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.decl", "Prims.b2t", "Target.uu___is_Definition", "FStar.Pervasives.Native.fst", "Target.decl'", "Target.decl_attributes", "Ast.ident", "FStar.Pervasives.Native.option", "Ast.range", "Ast.comments", "Ast.t_kind", "Prims.list", "FStar.Pervasives.either", "Target.typ...
[]
false
true
false
false
false
let print_definition (mname: string) (d: decl{Definition? (fst d)}) : ML string =
match fst d with | Definition (x, [], T_app { Ast.v = { Ast.name = "field_id" } } _ _, (Constant c, _)) -> Printf.sprintf "[@(CMacro)%s]\nlet %s = %s <: Tot field_id by (FStar.Tactics.trivial())\n\n" (print_comments (snd d).comments) (print_field_id_name x) (A.print_constant c) | Definition (x, [], t, (Co...
false
Target.fst
Target.print_typ
val print_typ (mname:string) (t:typ) : ML string
val print_typ (mname:string) (t:typ) : ML string
let rec print_typ (mname:string) (t:typ) : ML string = //(decreases t) = if is_output_type t then print_output_type true t else match t with | T_false -> "False" | T_app hd _ args -> //output types are already handled at the beginning of print_typ Printf.sprintf "(%s %s)" (print_maybe_qua...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 59, "end_line": 435, "start_col": 0, "start_line": 401 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> t: Target.typ -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[ "print_typ", "print_indexes" ]
[ "Prims.string", "Target.typ", "Target.is_output_type", "Target.print_output_type", "Prims.bool", "Ast.ident", "Ast.t_kind", "Prims.list", "FStar.Pervasives.either", "Target.expr", "FStar.Printf.sprintf", "Target.print_maybe_qualified_ident", "FStar.String.concat", "Target.print_indexes", ...
[ "mutual recursion" ]
false
true
false
false
false
let rec print_typ (mname: string) (t: typ) : ML string =
if is_output_type t then print_output_type true t else match t with | T_false -> "False" | T_app hd _ args -> Printf.sprintf "(%s %s)" (print_maybe_qualified_ident mname hd) (String.concat " " (print_indexes mname args)) | T_dep_pair t1 (x, t2) -> Printf.sprintf "(%s:%s & %s)" (print_ident x...
false
Steel.GhostMonotonicHigherReference.fst
Steel.GhostMonotonicHigherReference.ref
val ref (a:Type u#1) (p:Preorder.preorder a) : Type u#0
val ref (a:Type u#1) (p:Preorder.preorder a) : Type u#0
let ref a p = PR.ref (history a p) pcm_history
{ "file_name": "lib/steel/Steel.GhostMonotonicHigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 37, "start_col": 0, "start_line": 37 }
(* 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...
{ "checked_file": "/", "dependencies": [ "Steel.Preorder.fst.checked", "Steel.Memory.fsti.checked", "Steel.GhostPCMReference.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Real.fsti...
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": true, "full_module": "Steel.Effect.Atomic", "short_module": "A" }, { "abbrev": true, "full_module": "Steel.GhostPCMReference", "short_module": "PR" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> p: FStar.Preorder.preorder a -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Steel.GhostPCMReference.ref", "Steel.Preorder.history", "Steel.Preorder.pcm_history" ]
[]
false
false
false
true
true
let ref a p =
PR.ref (history a p) pcm_history
false
Target.fst
Target.print_typedef_body
val print_typedef_body (mname: string) (b: typedef_body) : ML string
val print_typedef_body (mname: string) (b: typedef_body) : ML string
let print_typedef_body (mname:string) (b:typedef_body) : ML string = match b with | TD_abbrev t -> print_typ mname t | TD_struct fields -> let print_field (sf:field) : ML string = Printf.sprintf "%s : %s%s" (print_ident sf.sf_ident) (print_typ mname sf.sf_typ) (if...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 36, "end_line": 542, "start_col": 0, "start_line": 531 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> b: Target.typedef_body -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.typedef_body", "Target.typ", "Target.print_typ", "Prims.list", "Target.field", "FStar.Printf.sprintf", "FStar.String.concat", "FStar.List.map", "Target.__proj__Mkstruct_field__item__sf_dependence", "Prims.bool", "Target.print_ident", "Target.__proj__Mkstruct_field__it...
[]
false
true
false
false
false
let print_typedef_body (mname: string) (b: typedef_body) : ML string =
match b with | TD_abbrev t -> print_typ mname t | TD_struct fields -> let print_field (sf: field) : ML string = Printf.sprintf "%s : %s%s" (print_ident sf.sf_ident) (print_typ mname sf.sf_typ) (if sf.sf_dependence then " (*dep*)" else "") in let fields = String.concat ";\n" (List.map print_f...
false
Steel.GhostMonotonicHigherReference.fst
Steel.GhostMonotonicHigherReference.pts_to_sl
val pts_to_sl (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:a) : slprop u#1
val pts_to_sl (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:a) : slprop u#1
let pts_to_sl r f v = hp_of (pts_to' r f v)
{ "file_name": "lib/steel/Steel.GhostMonotonicHigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 47, "start_col": 0, "start_line": 47 }
(* 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...
{ "checked_file": "/", "dependencies": [ "Steel.Preorder.fst.checked", "Steel.Memory.fsti.checked", "Steel.GhostPCMReference.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Real.fsti...
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": true, "full_module": "Steel.Effect.Atomic", "short_module": "A" }, { "abbrev": true, "full_module": "Steel.GhostPCMReference", "short_module": "PR" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.GhostMonotonicHigherReference.ref a p -> f: Steel.FractionalPermission.perm -> v: a -> Steel.Memory.slprop
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Steel.GhostMonotonicHigherReference.ref", "Steel.FractionalPermission.perm", "Steel.Effect.Common.hp_of", "Steel.GhostMonotonicHigherReference.pts_to'", "Steel.Memory.slprop" ]
[]
false
false
false
false
false
let pts_to_sl r f v =
hp_of (pts_to' r f v)
false
Target.fst
Target.print_output_types_defs
val print_output_types_defs (modul:string) (ds:decls) : ML string
val print_output_types_defs (modul:string) (ds:decls) : ML string
let print_output_types_defs (modul:string) (ds:decls) : ML string = let defs = String.concat "\n\n" (List.map (fun (d, _) -> match d with | Output_type ot -> print_out_typ ot | _ -> "") ds) in Printf.sprintf "#ifndef __%s_OutputTypesDefs_H\n\ #define __%s_OutputTypesDefs_H\n...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 9, "end_line": 1378, "start_col": 0, "start_line": 1354 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
modul: Prims.string -> ds: Target.decls -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.decls", "FStar.Printf.sprintf", "Options.make_includes", "FStar.String.concat", "Prims.list", "FStar.List.map", "FStar.Pervasives.Native.tuple2", "Target.decl'", "Target.decl_attributes", "Ast.out_typ", "Target.print_out_typ" ]
[]
false
true
false
false
false
let print_output_types_defs (modul: string) (ds: decls) : ML string =
let defs = String.concat "\n\n" (List.map (fun (d, _) -> match d with | Output_type ot -> print_out_typ ot | _ -> "") ds) in Printf.sprintf "#ifndef __%s_OutputTypesDefs_H\n#define __%s_OutputTypesDefs_H\n\n#if defined(__cplusplus)\nextern \"C\" {\n#endif\n\n\n%s%s\n\n\...
false
Target.fst
Target.print_kind
val print_kind (mname:string) (k:parser_kind) : Tot string
val print_kind (mname:string) (k:parser_kind) : Tot string
let rec print_kind (mname:string) (k:parser_kind) : Tot string = match k.pk_kind with | PK_base hd -> Printf.sprintf "%skind_%s" (maybe_mname_prefix mname hd) (print_ident hd) | PK_list -> "kind_nlist" | PK_t_at_most -> "kind_t_at_most" | PK_t_exact -> "kind_t_exact" ...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 23, "end_line": 465, "start_col": 0, "start_line": 437 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> k: Target.parser_kind -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Target.parser_kind", "Target.__proj__Mkparser_kind__item__pk_kind", "Ast.ident", "FStar.Printf.sprintf", "Target.maybe_mname_prefix", "Target.print_ident", "Target.print_kind" ]
[ "recursion" ]
false
false
false
true
false
let rec print_kind (mname: string) (k: parser_kind) : Tot string =
match k.pk_kind with | PK_base hd -> Printf.sprintf "%skind_%s" (maybe_mname_prefix mname hd) (print_ident hd) | PK_list -> "kind_nlist" | PK_t_at_most -> "kind_t_at_most" | PK_t_exact -> "kind_t_exact" | PK_return -> "ret_kind" | PK_impos -> "impos_kind" | PK_and_then k1 k2 -> Printf.sprintf "(and_then_kind %s %s)" ...
false
Target.fst
Target.maybe_print_type_equality
val maybe_print_type_equality (mname: string) (td: type_decl) : ML string
val maybe_print_type_equality (mname: string) (td: type_decl) : ML string
let maybe_print_type_equality (mname:string) (td:type_decl) : ML string = if td.decl_name.td_entrypoint then let equate_types_list = Options.get_equate_types_list () in (match (List.tryFind (fun (_, m) -> m = mname) equate_types_list) with | Some (a, _) -> let typname = A.ident_name td.dec...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 9, "end_line": 611, "start_col": 0, "start_line": 601 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> td: Target.type_decl -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.type_decl", "Target.__proj__Mktypedef_name__item__td_entrypoint", "Target.__proj__Mktype_decl__item__decl_name", "FStar.Printf.sprintf", "Ast.ident_name", "Target.__proj__Mktypedef_name__item__td_name", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "FS...
[]
false
true
false
false
false
let maybe_print_type_equality (mname: string) (td: type_decl) : ML string =
if td.decl_name.td_entrypoint then let equate_types_list = Options.get_equate_types_list () in (match (List.tryFind (fun (_, m) -> m = mname) equate_types_list) with | Some (a, _) -> let typname = A.ident_name td.decl_name.td_name in Printf.sprintf "\n\nlet _ = assert (%s.Types.%s == %s) by (FStar.T...
false
Target.fst
Target.print_indexes
val print_indexes (mname: string) (is: list index) : ML (list string)
val print_indexes (mname: string) (is: list index) : ML (list string)
let rec print_typ (mname:string) (t:typ) : ML string = //(decreases t) = if is_output_type t then print_output_type true t else match t with | T_false -> "False" | T_app hd _ args -> //output types are already handled at the beginning of print_typ Printf.sprintf "(%s %s)" (print_maybe_qua...
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 59, "end_line": 435, "start_col": 0, "start_line": 401 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> is: Prims.list Target.index -> FStar.All.ML (Prims.list Prims.string)
FStar.All.ML
[ "ml" ]
[ "print_typ", "print_indexes" ]
[ "Prims.string", "Prims.list", "Target.index", "Prims.Nil", "Target.typ", "Prims.Cons", "Target.print_indexes", "Target.print_typ", "Target.expr", "Target.print_expr" ]
[ "mutual recursion" ]
false
true
false
false
false
let rec print_indexes (mname: string) (is: list index) : ML (list string) =
match is with | [] -> [] | Inl t :: is -> print_typ mname t :: print_indexes mname is | Inr e :: is -> print_expr mname e :: print_indexes mname is
false
Target.fst
Target.print_assumption
val print_assumption (mname:string) (d:decl { Assumption? (fst d) } ) : ML string
val print_assumption (mname:string) (d:decl { Assumption? (fst d) } ) : ML string
let print_assumption (mname:string) (d:decl { Assumption? (fst d) } ) : ML string = match fst d with | Assumption (x, t) -> Printf.sprintf "%sassume\nval %s : %s\n\n" (if (snd d).is_if_def then "[@@ CIfDef ]\n" else "") (print_ident x) (print_typ mname t)
{ "file_name": "src/3d/Target.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 25, "end_line": 646, "start_col": 0, "start_line": 640 }
(* 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...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "HashingOptions.fst.checked", "FStar.String.fsti.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Li...
[ { "abbrev": false, "full_module": "Binding", "short_module": null }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Binding", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mname: Prims.string -> d: Target.decl{Assumption? (FStar.Pervasives.Native.fst d)} -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Target.decl", "Prims.b2t", "Target.uu___is_Assumption", "FStar.Pervasives.Native.fst", "Target.decl'", "Target.decl_attributes", "Ast.ident", "Target.typ", "FStar.Printf.sprintf", "Target.__proj__Mkdecl_attributes__item__is_if_def", "FStar.Pervasives.Native.snd", "Prims.bool...
[]
false
true
false
false
false
let print_assumption (mname: string) (d: decl{Assumption? (fst d)}) : ML string =
match fst d with | Assumption (x, t) -> Printf.sprintf "%sassume\nval %s : %s\n\n" (if (snd d).is_if_def then "[@@ CIfDef ]\n" else "") (print_ident x) (print_typ mname t)
false