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
Vale.Transformers.Locations.fsti
Vale.Transformers.Locations.filter_state
val filter_state : s: Vale.X64.Machine_Semantics_s.machine_state -> flags: Vale.X64.Machine_Semantics_s.flags_t -> ok: Prims.bool -> trace: Prims.list Vale.X64.Machine_s.observation -> Vale.X64.Machine_Semantics_s.machine_state
let filter_state (s:machine_state) (flags:flags_t) (ok:bool) (trace:list observation) = { s with ms_flags = FunctionalExtensionality.on_dom flag (fun f -> if f = fCarry then s.ms_flags fCarry else if f = fOverflow then s.ms_flags fOverflow else ...
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.Locations.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 115, "start_col": 0, "start_line": 104 }
module Vale.Transformers.Locations open Vale.X64.Bytes_Code_s open Vale.X64.Instruction_s open Vale.X64.Instructions_s open Vale.X64.Machine_Semantics_s open Vale.X64.Machine_s open Vale.X64.Print_s open Vale.Def.PossiblyMonad module L = FStar.List.Tot (** An [location] is a portion of the [machine_state] that may ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMon...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Def.PossiblyMonad", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Print_s", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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: Vale.X64.Machine_Semantics_s.machine_state -> flags: Vale.X64.Machine_Semantics_s.flags_t -> ok: Prims.bool -> trace: Prims.list Vale.X64.Machine_s.observation -> Vale.X64.Machine_Semantics_s.machine_state
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Vale.X64.Machine_Semantics_s.flags_t", "Prims.bool", "Prims.list", "Vale.X64.Machine_s.observation", "Vale.X64.Machine_Semantics_s.Mkmachine_state", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_regs", "FStar.FunctionalExtensionality.on_...
[]
false
false
false
true
false
let filter_state (s: machine_state) (flags: flags_t) (ok: bool) (trace: list observation) =
{ s with ms_flags = FunctionalExtensionality.on_dom flag (fun f -> if f = fCarry then s.ms_flags fCarry else if f = fOverflow then s.ms_flags fOverflow else flags f); ms_ok = ok; ms_trace = trace }
false
FStar.InteractiveHelpers.PostProcess.fst
FStar.InteractiveHelpers.PostProcess.find_equality_from_post
val find_equality_from_post : bool -> genv -> term -> bv -> typ -> term -> effect_info -> list term_view -> list term_view -> Tac (genv & option term)
val find_equality_from_post : bool -> genv -> term -> bv -> typ -> term -> effect_info -> list term_view -> list term_view -> Tac (genv & option term)
let find_equality_from_post dbg ge0 tm let_bv let_bvty ret_value einfo parents children = print_dbg dbg "[> find_equality_from_post"; let tinfo = get_type_info_from_type let_bvty in (* Compute the post-condition *) let ge1, _, post_prop = pre_post_to_propositions dbg ge0 einfo.ei_type ret_value (Some (mk_bi...
{ "file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 487, "start_col": 0, "start_line": 468 }
module FStar.InteractiveHelpers.PostProcess open FStar.List open FStar.Tactics open FStar.Mul open FStar.InteractiveHelpers.Base open FStar.InteractiveHelpers.ExploreTerm open FStar.InteractiveHelpers.Propositions open FStar.InteractiveHelpers.Effectful open FStar.InteractiveHelpers.Output /// The high-level post-pro...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.List.Tot.fst.checked", "FStar.List.fst.checked", "FStar.InteractiveHelpers.Propositions.f...
[ { "abbrev": false, "full_module": "FStar.InteractiveHelpers.Output", "short_module": null }, { "abbrev": false, "full_module": "FStar.InteractiveHelpers.Effectful", "short_module": null }, { "abbrev": false, "full_module": "FStar.InteractiveHelpers.Propositions", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "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
dbg: Prims.bool -> ge0: FStar.InteractiveHelpers.Base.genv -> tm: FStar.Stubs.Reflection.Types.term -> let_bv: FStar.Stubs.Reflection.Types.bv -> let_bvty: FStar.Stubs.Reflection.Types.typ -> ret_value: FStar.Stubs.Reflection.Types.term -> einfo: FStar.InteractiveHelpers.Effectful.effect_in...
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.bool", "FStar.InteractiveHelpers.Base.genv", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.Types.bv", "FStar.Stubs.Reflection.Types.typ", "FStar.InteractiveHelpers.Effectful.effect_info", "Prims.list", "FStar.Stubs.Reflection.V1.Data.term_view", "FStar.Pervasives.Native.option"...
[]
false
true
false
false
false
let find_equality_from_post dbg ge0 tm let_bv let_bvty ret_value einfo parents children =
print_dbg dbg "[> find_equality_from_post"; let tinfo = get_type_info_from_type let_bvty in let ge1, _, post_prop = pre_post_to_propositions dbg ge0 einfo.ei_type ret_value (Some (mk_binder let_bv let_bvty)) tinfo einfo.ei_pre einfo.ei_post parents children in print_dbg dbg ("Computed post: " ^ option_to_string t...
false
Vale.Transformers.Locations.fsti
Vale.Transformers.Locations.lemma_disjoint_locations_symmetric
val lemma_disjoint_locations_symmetric (l1 l2: _) : Lemma (ensures ((!!(disjoint_locations l1 l2) = !!(disjoint_locations l2 l1)))) (decreases %[L.length l1 + L.length l2])
val lemma_disjoint_locations_symmetric (l1 l2: _) : Lemma (ensures ((!!(disjoint_locations l1 l2) = !!(disjoint_locations l2 l1)))) (decreases %[L.length l1 + L.length l2])
let rec lemma_disjoint_locations_symmetric l1 l2 : Lemma (ensures ( (!!(disjoint_locations l1 l2) = !!(disjoint_locations l2 l1)))) (decreases %[L.length l1 + L.length l2]) = match l1, l2 with | [], [] -> () | [], x :: xs | x :: xs, [] -> lemma_disjoint_locations_symmetric xs [] | x :: xs,...
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.Locations.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 57, "start_col": 0, "start_line": 45 }
module Vale.Transformers.Locations open Vale.X64.Bytes_Code_s open Vale.X64.Instruction_s open Vale.X64.Instructions_s open Vale.X64.Machine_Semantics_s open Vale.X64.Machine_s open Vale.X64.Print_s open Vale.Def.PossiblyMonad module L = FStar.List.Tot (** An [location] is a portion of the [machine_state] that may ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMon...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Def.PossiblyMonad", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Print_s", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
l1: Vale.Transformers.Locations.locations -> l2: Vale.Transformers.Locations.locations -> FStar.Pervasives.Lemma (ensures !!(Vale.Transformers.Locations.disjoint_locations l1 l2) = !!(Vale.Transformers.Locations.disjoint_locations l2 l1)) (decreases FStar.List.Tot.Base.length l1 + FStar.Li...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Vale.Transformers.Locations.locations", "FStar.Pervasives.Native.Mktuple2", "Prims.list", "Vale.Transformers.Locations.location", "Vale.Transformers.Locations.lemma_disjoint_locations_symmetric", "Prims.Nil", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.b2t", "Prims.op_Equality", "Pri...
[ "recursion" ]
false
false
true
false
false
let rec lemma_disjoint_locations_symmetric l1 l2 : Lemma (ensures ((!!(disjoint_locations l1 l2) = !!(disjoint_locations l2 l1)))) (decreases %[L.length l1 + L.length l2]) =
match l1, l2 with | [], [] -> () | [], x :: xs | x :: xs, [] -> lemma_disjoint_locations_symmetric xs [] | x :: xs, y :: ys -> lemma_disjoint_locations_symmetric l1 ys; lemma_disjoint_locations_symmetric xs l2; lemma_disjoint_locations_symmetric xs ys
false
Vale.Transformers.Locations.fsti
Vale.Transformers.Locations.raise_location_val_eqt
val raise_location_val_eqt (#l: location_eq) (v: location_val_eqt l) : location_val_t l
val raise_location_val_eqt (#l: location_eq) (v: location_val_eqt l) : location_val_t l
let raise_location_val_eqt (#l:location_eq) (v:location_val_eqt l) : location_val_t l = coerce (FStar.Universe.raise_val v)
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.Locations.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 78, "start_col": 0, "start_line": 77 }
module Vale.Transformers.Locations open Vale.X64.Bytes_Code_s open Vale.X64.Instruction_s open Vale.X64.Instructions_s open Vale.X64.Machine_Semantics_s open Vale.X64.Machine_s open Vale.X64.Print_s open Vale.Def.PossiblyMonad module L = FStar.List.Tot (** An [location] is a portion of the [machine_state] that may ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Def.PossiblyMon...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Def.PossiblyMonad", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Print_s", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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: Vale.Transformers.Locations.location_val_eqt l -> Vale.Transformers.Locations.location_val_t l
Prims.Tot
[ "total" ]
[]
[ "Vale.Transformers.Locations.location_eq", "Vale.Transformers.Locations.location_val_eqt", "Vale.X64.Instruction_s.coerce", "Vale.Transformers.Locations.location_val_t", "FStar.Universe.raise_t", "FStar.Universe.raise_val" ]
[]
false
false
false
false
false
let raise_location_val_eqt (#l: location_eq) (v: location_val_eqt l) : location_val_t l =
coerce (FStar.Universe.raise_val v)
false
FStar.InteractiveHelpers.PostProcess.fst
FStar.InteractiveHelpers.PostProcess.unfold_in_assert_or_assume
val unfold_in_assert_or_assume : bool -> exploration_result term -> Tac unit
val unfold_in_assert_or_assume : bool -> exploration_result term -> Tac unit
let unfold_in_assert_or_assume dbg ares = print_dbg dbg ("[> unfold_in_assert_or_assume:\n" ^ term_to_string ares.res); (* Find the focused term inside the assert, and on which side of the * equality if the assert is an equality *) let find_focused_in_term t = find_focused_term dbg false ares.ge ares.paren...
{ "file_name": "ulib/experimental/FStar.InteractiveHelpers.PostProcess.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 735, "start_col": 0, "start_line": 600 }
module FStar.InteractiveHelpers.PostProcess open FStar.List open FStar.Tactics open FStar.Mul open FStar.InteractiveHelpers.Base open FStar.InteractiveHelpers.ExploreTerm open FStar.InteractiveHelpers.Propositions open FStar.InteractiveHelpers.Effectful open FStar.InteractiveHelpers.Output /// The high-level post-pro...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.List.Tot.fst.checked", "FStar.List.fst.checked", "FStar.InteractiveHelpers.Propositions.f...
[ { "abbrev": false, "full_module": "FStar.InteractiveHelpers.Output", "short_module": null }, { "abbrev": false, "full_module": "FStar.InteractiveHelpers.Effectful", "short_module": null }, { "abbrev": false, "full_module": "FStar.InteractiveHelpers.Propositions", "short_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "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
dbg: Prims.bool -> ares: FStar.InteractiveHelpers.PostProcess.exploration_result FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.bool", "FStar.InteractiveHelpers.PostProcess.exploration_result", "FStar.Stubs.Reflection.Types.term", "FStar.InteractiveHelpers.Base.genv", "FStar.Pervasives.Native.option", "FStar.InteractiveHelpers.Propositions.assertions", "FStar.InteractiveHelpers.Output.printout_success", "Prims.unit", ...
[]
false
true
false
false
false
let unfold_in_assert_or_assume dbg ares =
print_dbg dbg ("[> unfold_in_assert_or_assume:\n" ^ term_to_string ares.res); let find_focused_in_term t = find_focused_term dbg false ares.ge ares.parents ares.tgt_comp t in let find_in_whole_term () : Tac _ = match find_focused_in_term ares.res with | Some res -> ares.res, res, (fun x -> x <: Tac term), true | ...
false
Spec.Cipher.Expansion.fsti
Spec.Cipher.Expansion.xkey
val xkey : a: Spec.Agile.Cipher.cipher_alg -> Type0
let xkey a = Lib.ByteSequence.lbytes (xkey_length a)
{ "file_name": "specs/Spec.Cipher.Expansion.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 36, "start_col": 0, "start_line": 36 }
module Spec.Cipher.Expansion open Spec.Agile.Cipher /// This module gathers key expansion details shared between the CTR and AEAD /// constructions. /// /// From the perspective of Spec.Agile.CTR (and EverCrypt.CTR) and Spec.Agile.AEAD /// (and EverCrypt.AEAD), none of the following appear in the interface: /// /// -...
{ "checked_file": "/", "dependencies": [ "Spec.Agile.Cipher.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Spec.Cipher.Expansion.fsti" }
[ { "abbrev": false, "full_module": "Spec.Agile.Cipher", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Cipher", "short_module": null }, { "abbrev": false, "full_module": "Spec.Cipher", "short_module": null }, { "abbrev": false, "full_modu...
{ "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: Spec.Agile.Cipher.cipher_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Agile.Cipher.cipher_alg", "Lib.ByteSequence.lbytes", "Spec.Cipher.Expansion.xkey_length" ]
[]
false
false
false
true
true
let xkey a =
Lib.ByteSequence.lbytes (xkey_length a)
false
Spec.Cipher.Expansion.fsti
Spec.Cipher.Expansion.concrete_xkey
val concrete_xkey : i: Spec.Cipher.Expansion.impl -> Type0
let concrete_xkey (i: impl) = Lib.ByteSequence.lbytes (concrete_xkey_length i)
{ "file_name": "specs/Spec.Cipher.Expansion.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 41, "start_col": 0, "start_line": 41 }
module Spec.Cipher.Expansion open Spec.Agile.Cipher /// This module gathers key expansion details shared between the CTR and AEAD /// constructions. /// /// From the perspective of Spec.Agile.CTR (and EverCrypt.CTR) and Spec.Agile.AEAD /// (and EverCrypt.AEAD), none of the following appear in the interface: /// /// -...
{ "checked_file": "/", "dependencies": [ "Spec.Agile.Cipher.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Spec.Cipher.Expansion.fsti" }
[ { "abbrev": false, "full_module": "Spec.Agile.Cipher", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Cipher", "short_module": null }, { "abbrev": false, "full_module": "Spec.Cipher", "short_module": null }, { "abbrev": false, "full_modu...
{ "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: Spec.Cipher.Expansion.impl -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Cipher.Expansion.impl", "Lib.ByteSequence.lbytes", "Spec.Cipher.Expansion.concrete_xkey_length" ]
[]
false
false
false
true
true
let concrete_xkey (i: impl) =
Lib.ByteSequence.lbytes (concrete_xkey_length i)
false
Spec.Cipher.Expansion.fsti
Spec.Cipher.Expansion.cipher_alg_of_impl
val cipher_alg_of_impl (i: impl) : cipher_alg
val cipher_alg_of_impl (i: impl) : cipher_alg
let cipher_alg_of_impl (i: impl): cipher_alg = match i with | Hacl_CHACHA20 -> CHACHA20 | Vale_AES128 -> AES128 | Vale_AES256 -> AES256
{ "file_name": "specs/Spec.Cipher.Expansion.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 31, "start_col": 0, "start_line": 27 }
module Spec.Cipher.Expansion open Spec.Agile.Cipher /// This module gathers key expansion details shared between the CTR and AEAD /// constructions. /// /// From the perspective of Spec.Agile.CTR (and EverCrypt.CTR) and Spec.Agile.AEAD /// (and EverCrypt.AEAD), none of the following appear in the interface: /// /// -...
{ "checked_file": "/", "dependencies": [ "Spec.Agile.Cipher.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Spec.Cipher.Expansion.fsti" }
[ { "abbrev": false, "full_module": "Spec.Agile.Cipher", "short_module": null }, { "abbrev": false, "full_module": "Spec.Cipher", "short_module": null }, { "abbrev": false, "full_module": "Spec.Cipher", "short_module": null }, { "abbrev": false, "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
i: Spec.Cipher.Expansion.impl -> Spec.Agile.Cipher.cipher_alg
Prims.Tot
[ "total" ]
[]
[ "Spec.Cipher.Expansion.impl", "Spec.Agile.Cipher.CHACHA20", "Spec.Agile.Cipher.AES128", "Spec.Agile.Cipher.AES256", "Spec.Agile.Cipher.cipher_alg" ]
[]
false
false
false
true
false
let cipher_alg_of_impl (i: impl) : cipher_alg =
match i with | Hacl_CHACHA20 -> CHACHA20 | Vale_AES128 -> AES128 | Vale_AES256 -> AES256
false
Hacl.Impl.Chacha20Poly1305.PolyCore.fst
Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded_st
val poly1305_padded_st : w: Hacl.Impl.Poly1305.Fields.field_spec -> Type0
let poly1305_padded_st (w:field_spec) = ctx:Poly.poly1305_ctx w -> len:size_t -> text:lbuffer uint8 len -> Stack unit (requires fun h -> live h ctx /\ live h text /\ disjoint ctx text /\ Poly.state_inv_t h ctx) (ensures fun h0 _ h1 -> modifies (loc ctx) h0 h1 /\ Poly.state_inv_t h1 ctx /\ ...
{ "file_name": "code/chacha20poly1305/Hacl.Impl.Chacha20Poly1305.PolyCore.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 92, "end_line": 33, "start_col": 0, "start_line": 20 }
module Hacl.Impl.Chacha20Poly1305.PolyCore open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Fields module ST = FStar.HyperStack.ST module Spec = Spec.Chacha20Poly1305 module Poly = Hacl.Impl.Poly1305 #set-options "--z3rlimit 50 --max_fuel 0 -...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Poly1305.fsti.checked", "FStar.UInt32.fsti.chec...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305", "short_module": "Poly" }, { "abbrev": true, "full_module": "Spec.Chacha20Poly1305", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "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
w: Hacl.Impl.Poly1305.Fields.field_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.poly1305_ctx", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Hacl.Impl.Poly1305.Fields.limb", "Lib.Buffer.disjoi...
[]
false
false
false
true
true
let poly1305_padded_st (w: field_spec) =
ctx: Poly.poly1305_ctx w -> len: size_t -> text: lbuffer uint8 len -> Stack unit (requires fun h -> live h ctx /\ live h text /\ disjoint ctx text /\ Poly.state_inv_t h ctx) (ensures fun h0 _ h1 -> modifies (loc ctx) h0 h1 /\ Poly.state_inv_t h1 ctx /\ Poly.as_get_r h0 ctx == P...
false
LowParse.Spec.VLData.fst
LowParse.Spec.VLData.parse_vldata_gen
val parse_vldata_gen (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_vldata_gen_kind sz k) t)
val parse_vldata_gen (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_vldata_gen_kind sz k) t)
let parse_vldata_gen (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_vldata_gen_kind sz k) t) = parse_fldata_and_then_cases_injective sz f p; parse_vldata_gen_kind_correct sz k; and_then #_ #(parse_filter_refine #(bounded_...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 33, "end_line": 26, "start_col": 0, "start_line": 11 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "...
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 64, "max_ifuel": 64, "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_...
false
sz: LowParse.Spec.BoundedInt.integer_size -> f: (_: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool) -> p: LowParse.Spec.Base.parser k t -> LowParse.Spec.Base.parser (LowParse.Spec.VLData.parse_vldata_gen_kind sz k) t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Combinators.and_then", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", ...
[]
false
false
false
false
false
let parse_vldata_gen (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_vldata_gen_kind sz k) t) =
parse_fldata_and_then_cases_injective sz f p; parse_vldata_gen_kind_correct sz k; and_then #_ #(parse_filter_refine #(bounded_integer sz) f) (parse_filter #_ #(bounded_integer sz) (parse_bounded_integer sz) f) #_ #t (parse_vldata_payload sz f p)
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.obs_args
val obs_args : args: Prims.list Vale.X64.Instruction_s.instr_operand -> oprs: Vale.X64.Instruction_s.instr_operands_t_args args -> s: Vale.X64.Machine_Semantics_s.machine_state -> Prims.list Vale.X64.Machine_s.observation
let obs_args = S.obs_args
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 15, "start_col": 7, "start_line": 15 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
args: Prims.list Vale.X64.Instruction_s.instr_operand -> oprs: Vale.X64.Instruction_s.instr_operands_t_args args -> s: Vale.X64.Machine_Semantics_s.machine_state -> Prims.list Vale.X64.Machine_s.observation
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.obs_args" ]
[]
false
false
false
false
false
let obs_args =
S.obs_args
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.obs_inouts
val obs_inouts : inouts: Prims.list Vale.X64.Instruction_s.instr_out -> args: Prims.list Vale.X64.Instruction_s.instr_operand -> oprs: Vale.X64.Instruction_s.instr_operands_t inouts args -> s: Vale.X64.Machine_Semantics_s.machine_state -> Prims.list Vale.X64.Machine_s.observation
let obs_inouts = S.obs_inouts
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 16, "start_col": 7, "start_line": 16 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
inouts: Prims.list Vale.X64.Instruction_s.instr_out -> args: Prims.list Vale.X64.Instruction_s.instr_operand -> oprs: Vale.X64.Instruction_s.instr_operands_t inouts args -> s: Vale.X64.Machine_Semantics_s.machine_state -> Prims.list Vale.X64.Machine_s.observation
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.obs_inouts" ]
[]
false
false
false
false
false
let obs_inouts =
S.obs_inouts
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.machine_eval_code
val machine_eval_code : c: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> s: Vale.X64.Machine_Semantics_s.machine_state -> Prims.Tot (FStar.Pervasives.Native.option Vale.X64.Machine_Semantics_s.machine_state)
let machine_eval_code = S.machine_eval_code
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 17, "start_col": 7, "start_line": 17 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
c: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> s: Vale.X64.Machine_Semantics_s.machine_state -> Prims.Tot (FStar.Pervasives.Native.option Vale.X64.Machine_Semantics_s.machine_state)
Prims.Tot
[ "total", "" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_eval_code" ]
[]
false
false
false
true
false
let machine_eval_code =
S.machine_eval_code
false
LowParse.Spec.VLData.fst
LowParse.Spec.VLData.parse_vldata_gen_eq_def
val parse_vldata_gen_eq_def (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (and_then_cases_injective (parse_vldata_payload sz f p) /\ parse_vldata_gen_kind sz k == and_then_kind (parse_filter_kind (parse_bounded_integer_kind sz)) (parse_vldat...
val parse_vldata_gen_eq_def (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (and_then_cases_injective (parse_vldata_payload sz f p) /\ parse_vldata_gen_kind sz k == and_then_kind (parse_filter_kind (parse_bounded_integer_kind sz)) (parse_vldat...
let parse_vldata_gen_eq_def (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (and_then_cases_injective (parse_vldata_payload sz f p) /\ parse_vldata_gen_kind sz k == and_then_kind (parse_filter_kind (parse_bounded_integer_kind sz)) (parse_vldat...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 36, "end_line": 46, "start_col": 0, "start_line": 28 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "...
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 64, "max_ifuel": 64, "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_...
false
sz: LowParse.Spec.BoundedInt.integer_size -> f: (_: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool) -> p: LowParse.Spec.Base.parser k t -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.and_then_cases_injective (LowParse.Spec.VLData.parse_vldata_payload sz ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.VLData.parse_vldata_gen_kind_correct", "Prims.unit", "LowParse.Spec.VLData.parse_fldata_and_then_cases_injective", "Prims.l...
[]
true
false
true
false
false
let parse_vldata_gen_eq_def (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (and_then_cases_injective (parse_vldata_payload sz f p) /\ parse_vldata_gen_kind sz k == and_then_kind (parse_filter_kind (parse_bo...
parse_fldata_and_then_cases_injective sz f p; parse_vldata_gen_kind_correct sz k
false
LowParse.Low.Combinators.fst
LowParse.Low.Combinators.gaccessor_synth_inv
val gaccessor_synth_inv (#k: parser_kind) (#t1: Type) (p1: parser k t1) (#t2: Type) (f: t1 -> GTot t2) (g: t2 -> GTot t1) (u: squash (synth_inverse f g /\ synth_injective f)) : Tot (gaccessor p1 (parse_synth p1 f) (clens_synth_inv g f))
val gaccessor_synth_inv (#k: parser_kind) (#t1: Type) (p1: parser k t1) (#t2: Type) (f: t1 -> GTot t2) (g: t2 -> GTot t1) (u: squash (synth_inverse f g /\ synth_injective f)) : Tot (gaccessor p1 (parse_synth p1 f) (clens_synth_inv g f))
let gaccessor_synth_inv (#k: parser_kind) (#t1: Type) (p1: parser k t1) (#t2: Type) (f: t1 -> GTot t2) (g: t2 -> GTot t1) (u: squash (synth_inverse f g /\ synth_injective f)) : Tot (gaccessor p1 (parse_synth p1 f) (clens_synth_inv g f)) = gaccessor_prop_equiv p1 (parse_synth p1 f) (clens_synth_inv g f) (g...
{ "file_name": "src/lowparse/LowParse.Low.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 31, "end_line": 51, "start_col": 0, "start_line": 41 }
module LowParse.Low.Combinators include LowParse.Low.Base include LowParse.Spec.Combinators module B = LowStar.Monotonic.Buffer module B0 = LowStar.Buffer module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module U64 = FStar.UInt64 module Cast = FStar.Int.Cast #set-options "--z3rl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives....
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_modu...
{ "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
p1: LowParse.Spec.Base.parser k t1 -> f: (_: t1 -> Prims.GTot t2) -> g: (_: t2 -> Prims.GTot t1) -> u584: Prims.squash (LowParse.Spec.Combinators.synth_inverse f g /\ LowParse.Spec.Combinators.synth_injective f) -> LowParse.Low.Base.Spec.gaccessor p1 (LowParse.Spec.Combinators.p...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.squash", "Prims.l_and", "LowParse.Spec.Combinators.synth_inverse", "LowParse.Spec.Combinators.synth_injective", "LowParse.Low.Combinators.gaccessor_synth_inv'", "Prims.unit", "LowParse.Low.Base.Spec.gaccessor_prop_equiv", "LowPa...
[]
false
false
false
false
false
let gaccessor_synth_inv (#k: parser_kind) (#t1: Type) (p1: parser k t1) (#t2: Type) (f: (t1 -> GTot t2)) (g: (t2 -> GTot t1)) (u: squash (synth_inverse f g /\ synth_injective f)) : Tot (gaccessor p1 (parse_synth p1 f) (clens_synth_inv g f)) =
gaccessor_prop_equiv p1 (parse_synth p1 f) (clens_synth_inv g f) (gaccessor_synth_inv' p1 f g u); gaccessor_synth_inv' p1 f g u
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.valid_addr32
val valid_addr32 (ptr: int) (mem: S.machine_heap) : bool
val valid_addr32 (ptr: int) (mem: S.machine_heap) : bool
let valid_addr32 (ptr:int) (mem:S.machine_heap) : bool = S.valid_addr (ptr + 0) mem && S.valid_addr (ptr + 1) mem && S.valid_addr (ptr + 2) mem && S.valid_addr (ptr + 3) mem
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 270, "start_col": 0, "start_line": 266 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> mem: Vale.Arch.MachineHeap_s.machine_heap -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Vale.Arch.MachineHeap_s.machine_heap", "Prims.op_AmpAmp", "Vale.Arch.MachineHeap_s.valid_addr", "Prims.op_Addition", "Prims.bool" ]
[]
false
false
false
true
false
let valid_addr32 (ptr: int) (mem: S.machine_heap) : bool =
S.valid_addr (ptr + 0) mem && S.valid_addr (ptr + 1) mem && S.valid_addr (ptr + 2) mem && S.valid_addr (ptr + 3) mem
false
LowParse.Low.Combinators.fst
LowParse.Low.Combinators.gaccessor_synth
val gaccessor_synth (#k: parser_kind) (#t1: Type) (p1: parser k t1) (#t2: Type) (f: t1 -> GTot t2) (g: t2 -> GTot t1) (u: squash (synth_inverse f g /\ synth_injective f)) : Tot (gaccessor (parse_synth p1 f) p1 (clens_synth g f))
val gaccessor_synth (#k: parser_kind) (#t1: Type) (p1: parser k t1) (#t2: Type) (f: t1 -> GTot t2) (g: t2 -> GTot t1) (u: squash (synth_inverse f g /\ synth_injective f)) : Tot (gaccessor (parse_synth p1 f) p1 (clens_synth g f))
let gaccessor_synth (#k: parser_kind) (#t1: Type) (p1: parser k t1) (#t2: Type) (f: t1 -> GTot t2) (g: t2 -> GTot t1) (u: squash (synth_inverse f g /\ synth_injective f)) : Tot (gaccessor (parse_synth p1 f) p1 (clens_synth g f)) = synth_injective_synth_inverse_synth_inverse_recip f g (); gaccessor_prop_...
{ "file_name": "src/lowparse/LowParse.Low.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 27, "end_line": 26, "start_col": 0, "start_line": 15 }
module LowParse.Low.Combinators include LowParse.Low.Base include LowParse.Spec.Combinators module B = LowStar.Monotonic.Buffer module B0 = LowStar.Buffer module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module U64 = FStar.UInt64 module Cast = FStar.Int.Cast #set-options "--z3rl...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives....
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_modu...
{ "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
p1: LowParse.Spec.Base.parser k t1 -> f: (_: t1 -> Prims.GTot t2) -> g: (_: t2 -> Prims.GTot t1) -> u492: Prims.squash (LowParse.Spec.Combinators.synth_inverse f g /\ LowParse.Spec.Combinators.synth_injective f) -> LowParse.Low.Base.Spec.gaccessor (LowParse.Spec.Combinators.parse_synt...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.squash", "Prims.l_and", "LowParse.Spec.Combinators.synth_inverse", "LowParse.Spec.Combinators.synth_injective", "LowParse.Low.Combinators.gaccessor_synth'", "Prims.unit", "LowParse.Low.Base.Spec.gaccessor_prop_equiv", "LowParse....
[]
false
false
false
false
false
let gaccessor_synth (#k: parser_kind) (#t1: Type) (p1: parser k t1) (#t2: Type) (f: (t1 -> GTot t2)) (g: (t2 -> GTot t1)) (u: squash (synth_inverse f g /\ synth_injective f)) : Tot (gaccessor (parse_synth p1 f) p1 (clens_synth g f)) =
synth_injective_synth_inverse_synth_inverse_recip f g (); gaccessor_prop_equiv (parse_synth p1 f) p1 (clens_synth g f) (gaccessor_synth' p1 f g u); gaccessor_synth' p1 f g u
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.reveal_machine_eval_code_ins
val reveal_machine_eval_code_ins (i: S.ins) (s: S.machine_state) : Lemma (requires True) (ensures S.machine_eval_code_ins i s == S.machine_eval_code_ins_def i s) [SMTPat (S.machine_eval_code_ins i s)]
val reveal_machine_eval_code_ins (i: S.ins) (s: S.machine_state) : Lemma (requires True) (ensures S.machine_eval_code_ins i s == S.machine_eval_code_ins_def i s) [SMTPat (S.machine_eval_code_ins i s)]
let reveal_machine_eval_code_ins (i:S.ins) (s:S.machine_state) : Lemma (requires True) (ensures S.machine_eval_code_ins i s == S.machine_eval_code_ins_def i s) [SMTPat (S.machine_eval_code_ins i s)] = reveal_opaque (`%S.machine_eval_code_ins) S.machine_eval_code_ins
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 67, "end_line": 24, "start_col": 0, "start_line": 19 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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: Vale.X64.Machine_Semantics_s.ins -> s: Vale.X64.Machine_Semantics_s.machine_state -> FStar.Pervasives.Lemma (ensures Vale.X64.Machine_Semantics_s.machine_eval_code_ins i s == Vale.X64.Machine_Semantics_s.machine_eval_code_ins_def i s) [SMTPat (Vale.X64.Machine_Semantics_s.machine_eval_c...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Machine_Semantics_s.machine_state", "FStar.Pervasives.reveal_opaque", "FStar.Pervasives.Native.option", "Vale.X64.Machine_Semantics_s.machine_eval_code_ins", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "Vale.X64.Machine_Semantics_s.machi...
[]
true
false
true
false
false
let reveal_machine_eval_code_ins (i: S.ins) (s: S.machine_state) : Lemma (requires True) (ensures S.machine_eval_code_ins i s == S.machine_eval_code_ins_def i s) [SMTPat (S.machine_eval_code_ins i s)] =
reveal_opaque (`%S.machine_eval_code_ins) S.machine_eval_code_ins
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_consumes_fixed_time_outs_implicit
val check_if_consumes_fixed_time_outs_implicit (i: instr_operand_implicit) (ts: analysis_taints) (t_out: taint) : bool
val check_if_consumes_fixed_time_outs_implicit (i: instr_operand_implicit) (ts: analysis_taints) (t_out: taint) : bool
let check_if_consumes_fixed_time_outs_implicit (i:instr_operand_implicit) (ts:analysis_taints) (t_out:taint) : bool = match i with | IOp64One o -> operand_does_not_use_secrets o ts && operand_taint_allowed o t_out | IOpXmmOne o -> operand_does_not_use_secrets o ts && operand_taint_allowed o t_out | IOpF...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 74, "start_col": 0, "start_line": 66 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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: Vale.X64.Instruction_s.instr_operand_implicit -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> t_out: Vale.Arch.HeapTypes_s.taint -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Instruction_s.instr_operand_implicit", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Machine_s.operand64", "Prims.op_AmpAmp", "Vale.X64.Leakage_Helpers.operand_does_not_use_secrets", "Vale.X64.Machine_s.nat64", "Vale.X64.Machine_s.reg_64", "Vale.X64.L...
[]
false
false
false
true
false
let check_if_consumes_fixed_time_outs_implicit (i: instr_operand_implicit) (ts: analysis_taints) (t_out: taint) : bool =
match i with | IOp64One o -> operand_does_not_use_secrets o ts && operand_taint_allowed o t_out | IOpXmmOne o -> operand_does_not_use_secrets o ts && operand_taint_allowed o t_out | IOpFlagsCf -> true | IOpFlagsOf -> true
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_consumes_fixed_time_outs_explicit
val check_if_consumes_fixed_time_outs_explicit (i: instr_operand_explicit) (o: instr_operand_t i) (ts: analysis_taints) (t_out: taint) : bool
val check_if_consumes_fixed_time_outs_explicit (i: instr_operand_explicit) (o: instr_operand_t i) (ts: analysis_taints) (t_out: taint) : bool
let check_if_consumes_fixed_time_outs_explicit (i:instr_operand_explicit) (o:instr_operand_t i) (ts:analysis_taints) (t_out:taint) : bool = match i with | IOp64 -> operand_does_not_use_secrets #nat64 #reg_64 o ts && operand_taint_allowed #nat64 #reg_64 o t_out | IOpXmm -> operand_does_not_use_secrets ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 114, "end_line": 64, "start_col": 0, "start_line": 57 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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: Vale.X64.Instruction_s.instr_operand_explicit -> o: Vale.X64.Instruction_s.instr_operand_t i -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> t_out: Vale.Arch.HeapTypes_s.taint -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Instruction_s.instr_operand_explicit", "Vale.X64.Instruction_s.instr_operand_t", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.Arch.HeapTypes_s.taint", "Prims.op_AmpAmp", "Vale.X64.Leakage_Helpers.operand_does_not_use_secrets", "Vale.X64.Machine_s.nat64", "Vale.X64.Machine_s.reg_64", "...
[]
false
false
false
false
false
let check_if_consumes_fixed_time_outs_explicit (i: instr_operand_explicit) (o: instr_operand_t i) (ts: analysis_taints) (t_out: taint) : bool =
match i with | IOp64 -> operand_does_not_use_secrets #nat64 #reg_64 o ts && operand_taint_allowed #nat64 #reg_64 o t_out | IOpXmm -> operand_does_not_use_secrets #quad32 #reg_xmm o ts && operand_taint_allowed #quad32 #reg_xmm o t_out
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.instr_set_taint_explicit
val instr_set_taint_explicit (i: instr_operand_explicit) (o: instr_operand_t i) (ts: analysis_taints) (t: taint) : analysis_taints
val instr_set_taint_explicit (i: instr_operand_explicit) (o: instr_operand_t i) (ts: analysis_taints) (t: taint) : analysis_taints
let instr_set_taint_explicit (i:instr_operand_explicit) (o:instr_operand_t i) (ts:analysis_taints) (t:taint) : analysis_taints = match i with | IOp64 -> set_taint 0 (o <: operand64) ts t | IOpXmm -> set_taint 1 (o <: operand128) ts t
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 203, "start_col": 0, "start_line": 198 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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: Vale.X64.Instruction_s.instr_operand_explicit -> o: Vale.X64.Instruction_s.instr_operand_t i -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> t: Vale.Arch.HeapTypes_s.taint -> Vale.X64.Leakage_Helpers.analysis_taints
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Instruction_s.instr_operand_explicit", "Vale.X64.Instruction_s.instr_operand_t", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Leakage_Helpers.set_taint", "Vale.X64.Machine_s.operand64", "Vale.X64.Machine_s.operand128" ]
[]
false
false
false
false
false
let instr_set_taint_explicit (i: instr_operand_explicit) (o: instr_operand_t i) (ts: analysis_taints) (t: taint) : analysis_taints =
match i with | IOp64 -> set_taint 0 (o <: operand64) ts t | IOpXmm -> set_taint 1 (o <: operand128) ts t
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.instr_set_taint_implicit
val instr_set_taint_implicit (i: instr_operand_implicit) (ts: analysis_taints) (t: taint) : analysis_taints
val instr_set_taint_implicit (i: instr_operand_implicit) (ts: analysis_taints) (t: taint) : analysis_taints
let instr_set_taint_implicit (i:instr_operand_implicit) (ts:analysis_taints) (t:taint) : analysis_taints = match i with | IOp64One o -> set_taint 0 o ts t | IOpXmmOne o -> set_taint 1 o ts t | IOpFlagsCf -> set_taint_cf_and_flags ts t | IOpFlagsOf -> set_taint_of_and_flags ts t
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 211, "start_col": 0, "start_line": 206 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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: Vale.X64.Instruction_s.instr_operand_implicit -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> t: Vale.Arch.HeapTypes_s.taint -> Vale.X64.Leakage_Helpers.analysis_taints
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Instruction_s.instr_operand_implicit", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Machine_s.operand64", "Vale.X64.Leakage_Helpers.set_taint", "Vale.X64.Machine_s.operand128", "Vale.X64.Leakage_Helpers.set_taint_cf_and_flags", "Vale.X64.Leakage_Helper...
[]
false
false
false
true
false
let instr_set_taint_implicit (i: instr_operand_implicit) (ts: analysis_taints) (t: taint) : analysis_taints =
match i with | IOp64One o -> set_taint 0 o ts t | IOpXmmOne o -> set_taint 1 o ts t | IOpFlagsCf -> set_taint_cf_and_flags ts t | IOpFlagsOf -> set_taint_of_and_flags ts t
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_consumes_fixed_time_args
val check_if_consumes_fixed_time_args (args: list instr_operand) (oprs: instr_operands_t_args args) (ts: analysis_taints) : Pure bool (requires True) (ensures fun b -> b ==> (forall (s1: S.machine_state) (s2: S.machine_state). {:pattern (constT...
val check_if_consumes_fixed_time_args (args: list instr_operand) (oprs: instr_operands_t_args args) (ts: analysis_taints) : Pure bool (requires True) (ensures fun b -> b ==> (forall (s1: S.machine_state) (s2: S.machine_state). {:pattern (constT...
let rec check_if_consumes_fixed_time_args (args:list instr_operand) (oprs:instr_operands_t_args args) (ts:analysis_taints) : Pure bool (requires True) (ensures fun b -> b ==> (forall (s1 s2:S.machine_state).{:pattern (constTimeInvariant ts.lts s1 s2)} constTimeInvariant ts.lts s1 s2 ==> obs_args arg...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 55, "start_col": 0, "start_line": 26 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
args: Prims.list Vale.X64.Instruction_s.instr_operand -> oprs: Vale.X64.Instruction_s.instr_operands_t_args args -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure Prims.bool
Prims.Pure
[]
[]
[ "Prims.list", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.instr_operands_t_args", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Instruction_s.instr_operand_explicit", "Vale.X64.Instruction_s.instr_operand_t", "Prims.op_AmpAmp", "Prims.bool", "Vale.X64.Leakage_Ins.check_if...
[ "recursion" ]
false
false
false
false
false
let rec check_if_consumes_fixed_time_args (args: list instr_operand) (oprs: instr_operands_t_args args) (ts: analysis_taints) : Pure bool (requires True) (ensures fun b -> b ==> (forall (s1: S.machine_state) (s2: S.machine_state). {:pattern (co...
allow_inversion maddr; allow_inversion tmaddr; match args with | [] -> true | IOpEx i :: args -> let (o: instr_operand_t i), (oprs: instr_operands_t_args args) = coerce oprs in let b' = match i with | IOp64 -> operand_does_not_use_secrets #nat64 #reg_64 o ts | IOpXmm -> operand_does_not_use_secrets #qua...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.valid_addr128
val valid_addr128 (ptr: int) (mem: S.machine_heap) : bool
val valid_addr128 (ptr: int) (mem: S.machine_heap) : bool
let valid_addr128 (ptr:int) (mem:S.machine_heap) : bool = valid_addr32 (ptr + 0) mem && valid_addr32 (ptr + 4) mem && valid_addr32 (ptr + 8) mem && valid_addr32 (ptr + 12) mem
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 342, "start_col": 0, "start_line": 338 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> mem: Vale.Arch.MachineHeap_s.machine_heap -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Vale.Arch.MachineHeap_s.machine_heap", "Prims.op_AmpAmp", "Vale.X64.Leakage_Ins.valid_addr32", "Prims.op_Addition", "Prims.bool" ]
[]
false
false
false
true
false
let valid_addr128 (ptr: int) (mem: S.machine_heap) : bool =
valid_addr32 (ptr + 0) mem && valid_addr32 (ptr + 4) mem && valid_addr32 (ptr + 8) mem && valid_addr32 (ptr + 12) mem
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.instr_set_taints
val instr_set_taints (outs: list instr_out) (args: list instr_operand) (oprs: instr_operands_t outs args) (ts: analysis_taints) (t: taint) : analysis_taints
val instr_set_taints (outs: list instr_out) (args: list instr_operand) (oprs: instr_operands_t outs args) (ts: analysis_taints) (t: taint) : analysis_taints
let rec instr_set_taints (outs:list instr_out) (args:list instr_operand) (oprs:instr_operands_t outs args) (ts:analysis_taints) (t:taint) : analysis_taints = match outs with | [] -> ts | (_, i)::outs -> ( match i with | IOpEx i -> let oprs:instr_operand_t i & instr_operands_t out...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 226, "start_col": 0, "start_line": 213 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
outs: Prims.list Vale.X64.Instruction_s.instr_out -> args: Prims.list Vale.X64.Instruction_s.instr_operand -> oprs: Vale.X64.Instruction_s.instr_operands_t outs args -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> t: Vale.Arch.HeapTypes_s.taint -> Vale.X64.Leakage_Helpers.analysis_taints
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Instruction_s.instr_operand_inout", "Vale.X64.Instruction_s.instr_operand_explicit",...
[ "recursion" ]
false
false
false
false
false
let rec instr_set_taints (outs: list instr_out) (args: list instr_operand) (oprs: instr_operands_t outs args) (ts: analysis_taints) (t: taint) : analysis_taints =
match outs with | [] -> ts | (_, i) :: outs -> (match i with | IOpEx i -> let oprs:instr_operand_t i & instr_operands_t outs args = coerce oprs in instr_set_taints outs args (snd oprs) (instr_set_taint_explicit i (fst oprs) ts t) t | IOpIm i -> instr_set_taints outs args (coerce oprs) (instr_set_t...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.update_heap32_val
val update_heap32_val (ptr: int) (v: Vale.Def.Types_s.nat32) (i: int) : Vale.Def.Types_s.nat8
val update_heap32_val (ptr: int) (v: Vale.Def.Types_s.nat32) (i: int) : Vale.Def.Types_s.nat8
let update_heap32_val (ptr:int) (v:Vale.Def.Types_s.nat32) (i:int) : Vale.Def.Types_s.nat8 = let open Vale.Def.Words_s in let open Vale.Def.Words.Four_s in let v = nat_to_four 8 v in match (i - ptr) with | 0 -> v.lo0 | 1 -> v.lo1 | 2 -> v.hi2 | 3 -> v.hi3 | _ -> 0
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 264, "start_col": 0, "start_line": 255 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.Def.Types_s.nat32 -> i: Prims.int -> Vale.Def.Types_s.nat8
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Vale.Def.Types_s.nat32", "Prims.op_Subtraction", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.natN", "Prims.pow2", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Ty...
[]
false
false
false
true
false
let update_heap32_val (ptr: int) (v: Vale.Def.Types_s.nat32) (i: int) : Vale.Def.Types_s.nat8 =
let open Vale.Def.Words_s in let open Vale.Def.Words.Four_s in let v = nat_to_four 8 v in match (i - ptr) with | 0 -> v.lo0 | 1 -> v.lo1 | 2 -> v.hi2 | 3 -> v.hi3 | _ -> 0
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.update_heap64_val
val update_heap64_val (ptr: int) (v: nat64) (i: int) : Vale.Def.Types_s.nat8
val update_heap64_val (ptr: int) (v: nat64) (i: int) : Vale.Def.Types_s.nat8
let update_heap64_val (ptr:int) (v:nat64) (i:int) : Vale.Def.Types_s.nat8 = let open Vale.Def.Words_s in let open Vale.Def.Words.Two_s in let open Vale.Def.Words.Four_s in let v = nat_to_two 32 v in let lo = nat_to_four 8 v.lo in let hi = nat_to_four 8 v.hi in match (i - ptr) with | 0 -> lo.lo0 | 1 ->...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 306, "start_col": 0, "start_line": 290 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.X64.Machine_s.nat64 -> i: Prims.int -> Vale.Def.Types_s.nat8
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Vale.X64.Machine_s.nat64", "Prims.op_Subtraction", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.natN", "Prims.pow2", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def....
[]
false
false
false
true
false
let update_heap64_val (ptr: int) (v: nat64) (i: int) : Vale.Def.Types_s.nat8 =
let open Vale.Def.Words_s in let open Vale.Def.Words.Two_s in let open Vale.Def.Words.Four_s in let v = nat_to_two 32 v in let lo = nat_to_four 8 v.lo in let hi = nat_to_four 8 v.hi in match (i - ptr) with | 0 -> lo.lo0 | 1 -> lo.lo1 | 2 -> lo.hi2 | 3 -> lo.hi3 | 4 -> hi.lo0 | 5 -> hi.lo1 | 6 -> hi.hi2 | 7 -> hi.hi3 | ...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.update_heap128_val
val update_heap128_val (ptr: int) (v: Vale.Def.Types_s.quad32) (i: int) : Vale.Def.Types_s.nat8
val update_heap128_val (ptr: int) (v: Vale.Def.Types_s.quad32) (i: int) : Vale.Def.Types_s.nat8
let update_heap128_val (ptr:int) (v:Vale.Def.Types_s.quad32) (i:int) : Vale.Def.Types_s.nat8 = let open Vale.Def.Words_s in let j = i - ptr in if 0 <= j && j < 4 then update_heap32_val (ptr + 0 ) v.lo0 i else if 4 <= j && j < 8 then update_heap32_val (ptr + 4 ) v.lo1 i else if 8 <= j && j < 12 then updat...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 336, "start_col": 0, "start_line": 329 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.Def.Types_s.quad32 -> i: Prims.int -> Vale.Def.Types_s.nat8
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Vale.Def.Types_s.quad32", "Prims.op_AmpAmp", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Vale.X64.Leakage_Ins.update_heap32_val", "Prims.op_Addition", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Types_s.nat32", "Prims.bool", "Vale.Def.Words_s.__proj__Mkfour__item_...
[]
false
false
false
true
false
let update_heap128_val (ptr: int) (v: Vale.Def.Types_s.quad32) (i: int) : Vale.Def.Types_s.nat8 =
let open Vale.Def.Words_s in let j = i - ptr in if 0 <= j && j < 4 then update_heap32_val (ptr + 0) v.lo0 i else if 4 <= j && j < 8 then update_heap32_val (ptr + 4) v.lo1 i else if 8 <= j && j < 12 then update_heap32_val (ptr + 8) v.hi2 i else if 12 <= j && j < 16 then update_heap32_val (ptr + 12) v.h...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_update_heap32_domain
val lemma_update_heap32_domain (ptr: int) (v: Vale.Def.Types_s.nat32) (mem: S.machine_heap) : Lemma (requires valid_addr32 ptr mem) (ensures Map.domain (S.update_heap32 ptr v mem) == Map.domain mem) [SMTPat (Map.domain (S.update_heap32 ptr v mem))]
val lemma_update_heap32_domain (ptr: int) (v: Vale.Def.Types_s.nat32) (mem: S.machine_heap) : Lemma (requires valid_addr32 ptr mem) (ensures Map.domain (S.update_heap32 ptr v mem) == Map.domain mem) [SMTPat (Map.domain (S.update_heap32 ptr v mem))]
let lemma_update_heap32_domain (ptr:int) (v:Vale.Def.Types_s.nat32) (mem:S.machine_heap) : Lemma (requires valid_addr32 ptr mem) (ensures Map.domain (S.update_heap32 ptr v mem) == Map.domain mem) [SMTPat (Map.domain (S.update_heap32 ptr v mem))] = S.update_heap32_reveal (); assert (Set.equal (Map.domain (S....
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 287, "start_col": 0, "start_line": 281 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.Def.Types_s.nat32 -> mem: Vale.Arch.MachineHeap_s.machine_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Leakage_Ins.valid_addr32 ptr mem) (ensures FStar.Map.domain (Vale.Arch.MachineHeap_s.update_heap32 ptr v mem) == FStar.Map.domain mem) [SMTPat (FStar.Map.domain (Va...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Def.Types_s.nat32", "Vale.Arch.MachineHeap_s.machine_heap", "Prims._assert", "FStar.Set.equal", "FStar.Map.domain", "Vale.Def.Types_s.nat8", "Vale.Arch.MachineHeap_s.update_heap32", "Prims.unit", "Vale.Arch.MachineHeap_s.update_heap32_reveal", "Prims.b2t", "Vale.X64.Leakage_...
[]
true
false
true
false
false
let lemma_update_heap32_domain (ptr: int) (v: Vale.Def.Types_s.nat32) (mem: S.machine_heap) : Lemma (requires valid_addr32 ptr mem) (ensures Map.domain (S.update_heap32 ptr v mem) == Map.domain mem) [SMTPat (Map.domain (S.update_heap32 ptr v mem))] =
S.update_heap32_reveal (); assert (Set.equal (Map.domain (S.update_heap32 ptr v mem)) (Map.domain mem))
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_update_heap32_val
val lemma_update_heap32_val (ptr: int) (v: Vale.Def.Types_s.nat32) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap32 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 4 then update_heap32_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap32 ptr v mem).[ i ])]
val lemma_update_heap32_val (ptr: int) (v: Vale.Def.Types_s.nat32) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap32 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 4 then update_heap32_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap32 ptr v mem).[ i ])]
let lemma_update_heap32_val (ptr:int) (v:Vale.Def.Types_s.nat32) (mem:S.machine_heap) (i:int) : Lemma (requires True) (ensures (S.update_heap32 ptr v mem).[i] == (if ptr <= i && i < ptr + 4 then update_heap32_val ptr v i else mem.[i])) [SMTPat ((S.update_heap32 ptr v mem).[i])] = S.update_heap32_reveal ()...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 279, "start_col": 0, "start_line": 272 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.Def.Types_s.nat32 -> mem: Vale.Arch.MachineHeap_s.machine_heap -> i: Prims.int -> FStar.Pervasives.Lemma (ensures (Vale.Arch.MachineHeap_s.update_heap32 ptr v mem).[ i ] == (match ptr <= i && i < ptr + 4 with | true -> Vale.X64.Leakage_Ins.upd...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Def.Types_s.nat32", "Vale.Arch.MachineHeap_s.machine_heap", "FStar.Pervasives.reveal_opaque", "Vale.Def.Types_s.nat8", "Vale.X64.Leakage_Ins.update_heap32_val", "Prims.unit", "Vale.Arch.MachineHeap_s.update_heap32_reveal", "Prims.l_True", "Prims.squash", "Prims.eq2", "Vale.X...
[]
true
false
true
false
false
let lemma_update_heap32_val (ptr: int) (v: Vale.Def.Types_s.nat32) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap32 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 4 then update_heap32_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap32 ptr v mem).[ i ])]...
S.update_heap32_reveal (); reveal_opaque (`%update_heap32_val) update_heap32_val
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_instr_write_outputs_ok
val lemma_instr_write_outputs_ok (outs: list instr_out) (args: list instr_operand) (vs: instr_ret_t outs) (oprs: instr_operands_t outs args) (s_orig s: S.machine_state) : Lemma (requires (S.instr_write_outputs outs args vs oprs s_orig s).S.ms_ok) (ensures s.S.ms_ok)
val lemma_instr_write_outputs_ok (outs: list instr_out) (args: list instr_operand) (vs: instr_ret_t outs) (oprs: instr_operands_t outs args) (s_orig s: S.machine_state) : Lemma (requires (S.instr_write_outputs outs args vs oprs s_orig s).S.ms_ok) (ensures s.S.ms_ok)
let rec lemma_instr_write_outputs_ok (outs:list instr_out) (args:list instr_operand) (vs:instr_ret_t outs) (oprs:instr_operands_t outs args) (s_orig s:S.machine_state) : Lemma (requires (S.instr_write_outputs outs args vs oprs s_orig s).S.ms_ok) (ensures s.S.ms_ok) = match outs with | [] -> () ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 252, "start_col": 0, "start_line": 228 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
outs: Prims.list Vale.X64.Instruction_s.instr_out -> args: Prims.list Vale.X64.Instruction_s.instr_operand -> vs: Vale.X64.Instruction_s.instr_ret_t outs -> oprs: Vale.X64.Instruction_s.instr_operands_t outs args -> s_orig: Vale.X64.Machine_Semantics_s.machine_state -> s: Vale.X64.Machine_Seman...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.instr_ret_t", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Machine_Semantics_s.machine_state", "Vale.X64.Instruction_s.instr_operand_inout", "Vale.X64.Instruction_s.instr_val_t", ...
[ "recursion" ]
false
false
true
false
false
let rec lemma_instr_write_outputs_ok (outs: list instr_out) (args: list instr_operand) (vs: instr_ret_t outs) (oprs: instr_operands_t outs args) (s_orig s: S.machine_state) : Lemma (requires (S.instr_write_outputs outs args vs oprs s_orig s).S.ms_ok) (ensures s.S.ms_ok) =
match outs with | [] -> () | (_, i) :: outs -> (let (v: instr_val_t i), (vs: instr_ret_t outs) = match outs with | [] -> (vs, ()) | _ :: _ -> let vs = coerce vs in (fst vs, snd vs) in match i with | IOpEx i -> let oprs:instr_operand_t i & instr_operands_t outs args ...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_update_heap64_val
val lemma_update_heap64_val (ptr: int) (v: nat64) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap64 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 8 then update_heap64_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap64 ptr v mem).[ i ])]
val lemma_update_heap64_val (ptr: int) (v: nat64) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap64 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 8 then update_heap64_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap64 ptr v mem).[ i ])]
let lemma_update_heap64_val (ptr:int) (v:nat64) (mem:S.machine_heap) (i:int) : Lemma (requires True) (ensures (S.update_heap64 ptr v mem).[i] == (if ptr <= i && i < ptr + 8 then update_heap64_val ptr v i else mem.[i]) ) [SMTPat ((S.update_heap64 ptr v mem).[i])] = S.update_heap64_reveal (); reveal...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 317, "start_col": 0, "start_line": 308 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.X64.Machine_s.nat64 -> mem: Vale.Arch.MachineHeap_s.machine_heap -> i: Prims.int -> FStar.Pervasives.Lemma (ensures (Vale.Arch.MachineHeap_s.update_heap64 ptr v mem).[ i ] == (match ptr <= i && i < ptr + 8 with | true -> Vale.X64.Leakage_Ins.u...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.X64.Machine_s.nat64", "Vale.Arch.MachineHeap_s.machine_heap", "FStar.Pervasives.reveal_opaque", "Vale.Def.Types_s.nat8", "Vale.X64.Leakage_Ins.update_heap64_val", "Prims.unit", "Vale.Arch.MachineHeap_s.update_heap64_reveal", "Prims.l_True", "Prims.squash", "Prims.eq2", "Vale...
[]
true
false
true
false
false
let lemma_update_heap64_val (ptr: int) (v: nat64) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap64 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 8 then update_heap64_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap64 ptr v mem).[ i ])] =
S.update_heap64_reveal (); reveal_opaque (`%update_heap64_val) update_heap64_val
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_consumes_fixed_time_outs
val check_if_consumes_fixed_time_outs (outs: list instr_out) (args: list instr_operand) (oprs: instr_operands_t outs args) (ts: analysis_taints) (t_out: taint) : Pure bool (requires True) (ensures fun b -> b ==> (forall (s1: S.machine_state) (s2:...
val check_if_consumes_fixed_time_outs (outs: list instr_out) (args: list instr_operand) (oprs: instr_operands_t outs args) (ts: analysis_taints) (t_out: taint) : Pure bool (requires True) (ensures fun b -> b ==> (forall (s1: S.machine_state) (s2:...
let rec check_if_consumes_fixed_time_outs (outs:list instr_out) (args:list instr_operand) (oprs:instr_operands_t outs args) (ts:analysis_taints) (t_out:taint) : Pure bool (requires True) (ensures fun b -> b ==> (forall (s1 s2:S.machine_state).{:pattern (constTimeInvariant ts.lts s1 s2)} constTim...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 98, "start_col": 0, "start_line": 76 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
outs: Prims.list Vale.X64.Instruction_s.instr_out -> args: Prims.list Vale.X64.Instruction_s.instr_operand -> oprs: Vale.X64.Instruction_s.instr_operands_t outs args -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> t_out: Vale.Arch.HeapTypes_s.taint -> Prims.Pure Prims.bool
Prims.Pure
[]
[]
[ "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Leakage_Ins.check_if_consumes_fixed_time_args", "Vale.X64.Instruction_s.instr_operan...
[ "recursion" ]
false
false
false
false
false
let rec check_if_consumes_fixed_time_outs (outs: list instr_out) (args: list instr_operand) (oprs: instr_operands_t outs args) (ts: analysis_taints) (t_out: taint) : Pure bool (requires True) (ensures fun b -> b ==> (forall (s1: S.machine_state) ...
allow_inversion maddr; allow_inversion tmaddr; allow_inversion operand64; allow_inversion operand128; match outs with | [] -> check_if_consumes_fixed_time_args args oprs ts | (_, IOpEx i) :: outs -> let (o: instr_operand_t i), (oprs: instr_operands_t outs args) = coerce oprs in let b' = check_if_consumes_fixed_time...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_update_heap128_val
val lemma_update_heap128_val (ptr: int) (v: Vale.Def.Types_s.quad32) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap128 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 16 then update_heap128_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap128 ptr v mem).[...
val lemma_update_heap128_val (ptr: int) (v: Vale.Def.Types_s.quad32) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap128 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 16 then update_heap128_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap128 ptr v mem).[...
let lemma_update_heap128_val (ptr:int) (v:Vale.Def.Types_s.quad32) (mem:S.machine_heap) (i:int) : Lemma (requires True) (ensures (S.update_heap128 ptr v mem).[i] == (if ptr <= i && i < ptr + 16 then update_heap128_val ptr v i else mem.[i]) ) [SMTPat ((S.update_heap128 ptr v mem).[i])] = S.update_hea...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 353, "start_col": 0, "start_line": 344 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.Def.Types_s.quad32 -> mem: Vale.Arch.MachineHeap_s.machine_heap -> i: Prims.int -> FStar.Pervasives.Lemma (ensures (Vale.Arch.MachineHeap_s.update_heap128 ptr v mem).[ i ] == (match ptr <= i && i < ptr + 16 with | true -> Vale.X64.Leakage_Ins....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Def.Types_s.quad32", "Vale.Arch.MachineHeap_s.machine_heap", "FStar.Pervasives.reveal_opaque", "Vale.Def.Types_s.nat8", "Vale.X64.Leakage_Ins.update_heap128_val", "Prims.unit", "Vale.Arch.MachineHeap_s.update_heap128_reveal", "Prims.l_True", "Prims.squash", "Prims.eq2", "Val...
[]
true
false
true
false
false
let lemma_update_heap128_val (ptr: int) (v: Vale.Def.Types_s.quad32) (mem: S.machine_heap) (i: int) : Lemma (requires True) (ensures (S.update_heap128 ptr v mem).[ i ] == (if ptr <= i && i < ptr + 16 then update_heap128_val ptr v i else mem.[ i ])) [SMTPat ((S.update_heap128 ptr v mem).[...
S.update_heap128_reveal (); reveal_opaque (`%update_heap128_val) update_heap128_val
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_preserve_valid128
val lemma_preserve_valid128 (m m': S.machine_heap) : Lemma (requires Set.equal (Map.domain m) (Map.domain m')) (ensures (forall (i: int). {:pattern (S.valid_addr128 i m')} S.valid_addr128 i m ==> S.valid_addr128 i m'))
val lemma_preserve_valid128 (m m': S.machine_heap) : Lemma (requires Set.equal (Map.domain m) (Map.domain m')) (ensures (forall (i: int). {:pattern (S.valid_addr128 i m')} S.valid_addr128 i m ==> S.valid_addr128 i m'))
let lemma_preserve_valid128 (m m':S.machine_heap) : Lemma (requires Set.equal (Map.domain m) (Map.domain m')) (ensures (forall (i:int).{:pattern (S.valid_addr128 i m')} S.valid_addr128 i m ==> S.valid_addr128 i m')) = reveal_opaque (`%S.valid_addr128) S.valid_addr128
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 375, "start_col": 0, "start_line": 370 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
m: Vale.Arch.MachineHeap_s.machine_heap -> m': Vale.Arch.MachineHeap_s.machine_heap -> FStar.Pervasives.Lemma (requires FStar.Set.equal (FStar.Map.domain m) (FStar.Map.domain m')) (ensures forall (i: Prims.int). {:pattern Vale.Arch.MachineHeap_s.valid_addr128 i m'} Vale.Arch.MachineHeap_s.vali...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.MachineHeap_s.machine_heap", "FStar.Pervasives.reveal_opaque", "Prims.int", "Prims.bool", "Vale.Arch.MachineHeap_s.valid_addr128", "Prims.unit", "FStar.Set.equal", "FStar.Map.domain", "Vale.Def.Types_s.nat8", "Prims.squash", "Prims.l_Forall", "Prims.l_imp", "Prims.b2t", "Prims.N...
[]
true
false
true
false
false
let lemma_preserve_valid128 (m m': S.machine_heap) : Lemma (requires Set.equal (Map.domain m) (Map.domain m')) (ensures (forall (i: int). {:pattern (S.valid_addr128 i m')} S.valid_addr128 i m ==> S.valid_addr128 i m')) =
reveal_opaque (`%S.valid_addr128) S.valid_addr128
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_preserve_valid64
val lemma_preserve_valid64 (m m': S.machine_heap) : Lemma (requires Set.equal (Map.domain m) (Map.domain m')) (ensures (forall (i: int). {:pattern (S.valid_addr64 i m')} S.valid_addr64 i m ==> S.valid_addr64 i m'))
val lemma_preserve_valid64 (m m': S.machine_heap) : Lemma (requires Set.equal (Map.domain m) (Map.domain m')) (ensures (forall (i: int). {:pattern (S.valid_addr64 i m')} S.valid_addr64 i m ==> S.valid_addr64 i m'))
let lemma_preserve_valid64 (m m':S.machine_heap) : Lemma (requires Set.equal (Map.domain m) (Map.domain m')) (ensures (forall (i:int).{:pattern (S.valid_addr64 i m')} S.valid_addr64 i m ==> S.valid_addr64 i m')) = reveal_opaque (`%S.valid_addr64) S.valid_addr64
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 368, "start_col": 0, "start_line": 363 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
m: Vale.Arch.MachineHeap_s.machine_heap -> m': Vale.Arch.MachineHeap_s.machine_heap -> FStar.Pervasives.Lemma (requires FStar.Set.equal (FStar.Map.domain m) (FStar.Map.domain m')) (ensures forall (i: Prims.int). {:pattern Vale.Arch.MachineHeap_s.valid_addr64 i m'} Vale.Arch.MachineHeap_s.valid...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.MachineHeap_s.machine_heap", "FStar.Pervasives.reveal_opaque", "Prims.int", "Prims.bool", "Vale.Arch.MachineHeap_s.valid_addr64", "Prims.unit", "FStar.Set.equal", "FStar.Map.domain", "Vale.Def.Types_s.nat8", "Prims.squash", "Prims.l_Forall", "Prims.l_imp", "Prims.b2t", "Prims.Ni...
[]
true
false
true
false
false
let lemma_preserve_valid64 (m m': S.machine_heap) : Lemma (requires Set.equal (Map.domain m) (Map.domain m')) (ensures (forall (i: int). {:pattern (S.valid_addr64 i m')} S.valid_addr64 i m ==> S.valid_addr64 i m')) =
reveal_opaque (`%S.valid_addr64) S.valid_addr64
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_update_heap64_domain
val lemma_update_heap64_domain (ptr: int) (v: nat64) (mem: S.machine_heap) : Lemma (requires S.valid_addr64 ptr mem) (ensures Map.domain (S.update_heap64 ptr v mem) == Map.domain mem) [SMTPat (Map.domain (S.update_heap64 ptr v mem))]
val lemma_update_heap64_domain (ptr: int) (v: nat64) (mem: S.machine_heap) : Lemma (requires S.valid_addr64 ptr mem) (ensures Map.domain (S.update_heap64 ptr v mem) == Map.domain mem) [SMTPat (Map.domain (S.update_heap64 ptr v mem))]
let lemma_update_heap64_domain (ptr:int) (v:nat64) (mem:S.machine_heap) : Lemma (requires S.valid_addr64 ptr mem) (ensures Map.domain (S.update_heap64 ptr v mem) == Map.domain mem) [SMTPat (Map.domain (S.update_heap64 ptr v mem))] = reveal_opaque (`%S.valid_addr64) S.valid_addr64; S.update_heap64_reveal ();...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 326, "start_col": 0, "start_line": 319 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.X64.Machine_s.nat64 -> mem: Vale.Arch.MachineHeap_s.machine_heap -> FStar.Pervasives.Lemma (requires Vale.Arch.MachineHeap_s.valid_addr64 ptr mem) (ensures FStar.Map.domain (Vale.Arch.MachineHeap_s.update_heap64 ptr v mem) == FStar.Map.domain mem) [SMTPat (FStar.Map.domai...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.X64.Machine_s.nat64", "Vale.Arch.MachineHeap_s.machine_heap", "Prims._assert", "FStar.Set.equal", "FStar.Map.domain", "Vale.Def.Types_s.nat8", "Vale.Arch.MachineHeap_s.update_heap64", "Prims.unit", "Vale.Arch.MachineHeap_s.update_heap64_reveal", "FStar.Pervasives.reveal_opaque...
[]
true
false
true
false
false
let lemma_update_heap64_domain (ptr: int) (v: nat64) (mem: S.machine_heap) : Lemma (requires S.valid_addr64 ptr mem) (ensures Map.domain (S.update_heap64 ptr v mem) == Map.domain mem) [SMTPat (Map.domain (S.update_heap64 ptr v mem))] =
reveal_opaque (`%S.valid_addr64) S.valid_addr64; S.update_heap64_reveal (); assert (Set.equal (Map.domain (S.update_heap64 ptr v mem)) (Map.domain mem))
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_args_taint
val lemma_args_taint (outs: list instr_out) (args: list instr_operand) (f: instr_args_t outs args) (oprs: instr_operands_t_args args) (ts: analysis_taints) (s1 s2: S.machine_state) : Lemma (requires constTimeInvariant ts.lts s1 s2 /\ Some? (S.instr_apply_eval_args o...
val lemma_args_taint (outs: list instr_out) (args: list instr_operand) (f: instr_args_t outs args) (oprs: instr_operands_t_args args) (ts: analysis_taints) (s1 s2: S.machine_state) : Lemma (requires constTimeInvariant ts.lts s1 s2 /\ Some? (S.instr_apply_eval_args o...
let rec lemma_args_taint (outs:list instr_out) (args:list instr_operand) (f:instr_args_t outs args) (oprs:instr_operands_t_args args) (ts:analysis_taints) (s1 s2:S.machine_state) : Lemma (requires constTimeInvariant ts.lts s1 s2 /\ Some? (S.instr_apply_eval_args outs args f oprs s1) /\ ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 144, "start_col": 0, "start_line": 102 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
outs: Prims.list Vale.X64.Instruction_s.instr_out -> args: Prims.list Vale.X64.Instruction_s.instr_operand -> f: Vale.X64.Instruction_s.instr_args_t outs args -> oprs: Vale.X64.Instruction_s.instr_operands_t_args args -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> s1: Vale.X64.Machine_Seman...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.instr_args_t", "Vale.X64.Instruction_s.instr_operands_t_args", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_Semantics_s.machine_state", "FStar.Pervasives.Native.option", ...
[ "recursion" ]
false
false
true
false
false
let rec lemma_args_taint (outs: list instr_out) (args: list instr_operand) (f: instr_args_t outs args) (oprs: instr_operands_t_args args) (ts: analysis_taints) (s1 s2: S.machine_state) : Lemma (requires constTimeInvariant ts.lts s1 s2 /\ Some? (S.instr_apply_eval_ar...
allow_inversion maddr; allow_inversion tmaddr; allow_inversion operand64; allow_inversion operand128; match args with | [] -> () | i :: args -> let v1, v2, oprs:option (instr_val_t i) & option (instr_val_t i) & instr_operands_t_args args = match i with | IOpEx i -> let o, (oprs: instr_operands_t_args ar...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_update_heap128_domain
val lemma_update_heap128_domain (ptr: int) (v: Vale.Def.Types_s.quad32) (mem: S.machine_heap) : Lemma (requires valid_addr128 ptr mem) (ensures Map.domain (S.update_heap128 ptr v mem) == Map.domain mem) [SMTPat (S.update_heap128 ptr v mem)]
val lemma_update_heap128_domain (ptr: int) (v: Vale.Def.Types_s.quad32) (mem: S.machine_heap) : Lemma (requires valid_addr128 ptr mem) (ensures Map.domain (S.update_heap128 ptr v mem) == Map.domain mem) [SMTPat (S.update_heap128 ptr v mem)]
let lemma_update_heap128_domain (ptr:int) (v:Vale.Def.Types_s.quad32) (mem:S.machine_heap) : Lemma (requires valid_addr128 ptr mem) (ensures Map.domain (S.update_heap128 ptr v mem) == Map.domain mem) [SMTPat (S.update_heap128 ptr v mem)] = S.update_heap128_reveal (); assert (Set.equal (Map.domain (S.update_...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 79, "end_line": 361, "start_col": 0, "start_line": 355 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ptr: Prims.int -> v: Vale.Def.Types_s.quad32 -> mem: Vale.Arch.MachineHeap_s.machine_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Leakage_Ins.valid_addr128 ptr mem) (ensures FStar.Map.domain (Vale.Arch.MachineHeap_s.update_heap128 ptr v mem) == FStar.Map.domain mem) [SMTPat (Vale.Arch.Machine...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Def.Types_s.quad32", "Vale.Arch.MachineHeap_s.machine_heap", "Prims._assert", "FStar.Set.equal", "FStar.Map.domain", "Vale.Def.Types_s.nat8", "Vale.Arch.MachineHeap_s.update_heap128", "Prims.unit", "Vale.Arch.MachineHeap_s.update_heap128_reveal", "Prims.b2t", "Vale.X64.Leaka...
[]
true
false
true
false
false
let lemma_update_heap128_domain (ptr: int) (v: Vale.Def.Types_s.quad32) (mem: S.machine_heap) : Lemma (requires valid_addr128 ptr mem) (ensures Map.domain (S.update_heap128 ptr v mem) == Map.domain mem) [SMTPat (S.update_heap128 ptr v mem)] =
S.update_heap128_reveal (); assert (Set.equal (Map.domain (S.update_heap128 ptr v mem)) (Map.domain mem))
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.collect_arr
val collect_arr : typ -> Tac (list typ * comp)
val collect_arr : typ -> Tac (list typ * comp)
let collect_arr t = let (bs, c) = collect_arr' [] (C_Total t) in let ts = List.Tot.Base.map (fun (b:binder) -> b.sort) bs in (List.Tot.Base.rev ts, c)
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 33, "start_col": 0, "start_line": 30 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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: FStar.Stubs.Reflection.Types.typ -> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Reflection.Types.typ * FStar.Tactics.NamedView.comp)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.typ", "Prims.list", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.comp", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.List.Tot.Base.map", "FStar.Tactics.NamedView.__proj__Mkbinder__item__sort", "FStar.Pervasives.Native.tuple2", "F...
[]
false
true
false
false
false
let collect_arr t =
let bs, c = collect_arr' [] (C_Total t) in let ts = List.Tot.Base.map (fun (b: binder) -> b.sort) bs in (List.Tot.Base.rev ts, c)
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.collect_arr_bs
val collect_arr_bs : typ -> Tac (list binder * comp)
val collect_arr_bs : typ -> Tac (list binder * comp)
let collect_arr_bs t = let (bs, c) = collect_arr' [] (C_Total t) in (List.Tot.Base.rev bs, c)
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 27, "start_col": 0, "start_line": 25 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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: FStar.Stubs.Reflection.Types.typ -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binder * FStar.Tactics.NamedView.comp)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.typ", "Prims.list", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.comp", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.V2.SyntaxHelpers.collect_arr'", "Prims.Nil", "FStar.Stubs.Reflection.V...
[]
false
true
false
false
false
let collect_arr_bs t =
let bs, c = collect_arr' [] (C_Total t) in (List.Tot.Base.rev bs, c)
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.collect_arr'
val collect_arr' (bs: list binder) (c: comp) : Tac (list binder * comp)
val collect_arr' (bs: list binder) (c: comp) : Tac (list binder * comp)
let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp) = begin match c with | C_Total t -> begin match inspect t with | Tv_Arrow b c -> collect_arr' (b::bs) c | _ -> (bs, c) end | _ -> (bs, c) end
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 22, "start_col": 0, "start_line": 12 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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
bs: Prims.list FStar.Tactics.NamedView.binder -> c: FStar.Tactics.NamedView.comp -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binder * FStar.Tactics.NamedView.comp)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.comp", "FStar.Stubs.Reflection.Types.typ", "FStar.Tactics.V2.SyntaxHelpers.collect_arr'", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.NamedView.named_term_view", "FStar.Pervasives.Native.Mktuple2", "FStar.T...
[ "recursion" ]
false
true
false
false
false
let rec collect_arr' (bs: list binder) (c: comp) : Tac (list binder * comp) =
match c with | C_Total t -> (match inspect t with | Tv_Arrow b c -> collect_arr' (b :: bs) c | _ -> (bs, c)) | _ -> (bs, c)
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.collect_abs'
val collect_abs' (bs: list binder) (t: term) : Tac (list binder * term) (decreases t)
val collect_abs' (bs: list binder) (t: term) : Tac (list binder * term) (decreases t)
let rec collect_abs' (bs : list binder) (t : term) : Tac (list binder * term) (decreases t) = match inspect t with | Tv_Abs b t' -> collect_abs' (b::bs) t' | _ -> (bs, t)
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 40, "start_col": 0, "start_line": 36 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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
bs: Prims.list FStar.Tactics.NamedView.binder -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binder * FStar.Tactics.NamedView.term)
FStar.Tactics.Effect.Tac
[ "" ]
[]
[ "Prims.list", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.term", "FStar.Tactics.V2.SyntaxHelpers.collect_abs'", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.NamedView.named_term_view", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.inspect" ]
[ "recursion" ]
false
true
false
false
false
let rec collect_abs' (bs: list binder) (t: term) : Tac (list binder * term) (decreases t) =
match inspect t with | Tv_Abs b t' -> collect_abs' (b :: bs) t' | _ -> (bs, t)
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_xor_consumes_fixed_time
val check_if_xor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotateXor64? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts)
val check_if_xor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotateXor64? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts)
let check_if_xor_consumes_fixed_time (ins:S.ins) (ts:analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotateXor64? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts) = let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs (S.AnnotateXor64 eq) = ins in...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 537, "start_col": 0, "start_line": 522 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints)
Prims.Pure
[]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.flag_havoc", "Vale.X64.Instruction_s.instr_t", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instru...
[]
false
false
false
false
false
let check_if_xor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotateXor64? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts) =
let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs (S.AnnotateXor64 eq) = ins in let oprs:normal (instr_operands_t [inOut op64; out opFlagsCf; out opFlagsOf] [op64]) = coerce_to_normal #(instr_operands_t [inOut op64; out opFlagsCf; out opFlagsOf] [op64]) oprs in let o1, (o2, ()) = oprs in if o1 = o2 th...
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.collect_abs
val collect_abs : term -> Tac (list binder * term)
val collect_abs : term -> Tac (list binder * term)
let collect_abs t = let (bs, t') = collect_abs' [] t in (List.Tot.Base.rev bs, t')
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 45, "start_col": 0, "start_line": 43 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binder * FStar.Tactics.NamedView.term)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "Prims.list", "FStar.Tactics.NamedView.binder", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.V2.SyntaxHelpers.collect_abs'", "Prims.Nil" ]
[]
false
true
false
false
false
let collect_abs t =
let bs, t' = collect_abs' [] t in (List.Tot.Base.rev bs, t')
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.fail
val fail : m: Prims.string -> FStar.Tactics.Effect.Tac a
let fail (#a:Type) (m:string) = raise #a (TacticFailure m)
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 49, "start_col": 0, "start_line": 49 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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
m: Prims.string -> FStar.Tactics.Effect.Tac a
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.string", "FStar.Tactics.Effect.raise", "FStar.Stubs.Tactics.Common.TacticFailure" ]
[]
false
true
false
false
false
let fail (#a: Type) (m: string) =
raise #a (TacticFailure m)
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_alloc_consumes_fixed_time
val check_if_alloc_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Alloc? ins) (ensures ins_consumes_fixed_time ins ts)
val check_if_alloc_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Alloc? ins) (ensures ins_consumes_fixed_time ins ts)
let check_if_alloc_consumes_fixed_time (ins:S.ins) (ts:analysis_taints) : Pure (bool & analysis_taints) (requires BC.Alloc? ins) (ensures ins_consumes_fixed_time ins ts) = (true, ts)
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 12, "end_line": 577, "start_col": 0, "start_line": 573 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints)
Prims.Pure
[]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "FStar.Pervasives.Native.Mktuple2", "Prims.bool", "FStar.Pervasives.Native.tuple2", "Prims.b2t", "Vale.X64.Bytes_Code_s.uu___is_Alloc", "Vale.X64.Machine_Semantics_s.instr_annotation", "Vale.X64.Leakage_Helpers.ins_consu...
[]
false
false
false
false
false
let check_if_alloc_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Alloc? ins) (ensures ins_consumes_fixed_time ins ts) =
(true, ts)
false
Hacl.Impl.Curve25519.AddAndDouble.fst
Hacl.Impl.Curve25519.AddAndDouble.point_add_and_double1
val point_add_and_double1: #s:field_spec -> nq:point s -> nq_p1:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 nq_p1 /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq nq_p1 /\ disjoint nq tmp1 /\ disjoint nq tmp2...
val point_add_and_double1: #s:field_spec -> nq:point s -> nq_p1:point s -> tmp1:lbuffer (limb s) (4ul *! nlimb s) -> tmp2:felem_wide2 s -> Stack unit (requires fun h0 -> live h0 nq /\ live h0 nq_p1 /\ live h0 tmp1 /\ live h0 tmp2 /\ disjoint nq nq_p1 /\ disjoint nq tmp1 /\ disjoint nq tmp2...
let point_add_and_double1 #s nq nq_p1 tmp1 tmp2 = let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a : felem s = sub tmp1 0ul (nlimb s) in let b : felem s = sub tmp1 (nlimb s) (nlimb s) in let d : fel...
{ "file_name": "code/curve25519/Hacl.Impl.Curve25519.AddAndDouble.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 143, "start_col": 0, "start_line": 112 }
module Hacl.Impl.Curve25519.AddAndDouble open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Curve25519.Fields module ST = FStar.HyperStack.ST module F51 = Hacl.Impl.Curve25519.Field51 module F64 = Hacl.Impl.Curve25519.Field64 module ...
{ "checked_file": "/", "dependencies": [ "Spec.Curve25519.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Curve25519.AddAndDouble.fst.checked", "Hacl.Impl.Curve25519.Fie...
[ { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.AddAndDouble", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "P" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field64", "short_module": "F64" }, { "abb...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "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
nq: Hacl.Impl.Curve25519.AddAndDouble.point s -> nq_p1: Hacl.Impl.Curve25519.AddAndDouble.point s -> tmp1: Lib.Buffer.lbuffer (Hacl.Impl.Curve25519.Fields.Core.limb s) (4ul *! Hacl.Impl.Curve25519.Fields.Core.nlimb s) -> tmp2: Hacl.Impl.Curve25519.Fields.Core.felem_wide2 s -> FStar.Hype...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Curve25519.Fields.Core.field_spec", "Hacl.Impl.Curve25519.AddAndDouble.point", "Lib.Buffer.lbuffer", "Hacl.Impl.Curve25519.Fields.Core.limb", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Curve25519.Fields.Core.nlimb", "Hacl....
[]
false
true
false
false
false
let point_add_and_double1 #s nq nq_p1 tmp1 tmp2 =
let x2 = sub nq 0ul (nlimb s) in let z2 = sub nq (nlimb s) (nlimb s) in let x3 = sub nq_p1 0ul (nlimb s) in let z3 = sub nq_p1 (nlimb s) (nlimb s) in let a:felem s = sub tmp1 0ul (nlimb s) in let b:felem s = sub tmp1 (nlimb s) (nlimb s) in let d:felem s = sub tmp1 (2ul *! nlimb s) (nlimb s) in let c:felem s = sub tmp1 ...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.coerce_to_normal
val coerce_to_normal (#a: Type0) (x: a) : y: (normal a){x == y}
val coerce_to_normal (#a: Type0) (x: a) : y: (normal a){x == y}
let coerce_to_normal (#a:Type0) (x:a) : y:(normal a){x == y} = x
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 520, "start_col": 0, "start_line": 520 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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: a -> y: Vale.X64.Instruction_s.normal a {x == y}
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Instruction_s.normal", "Prims.eq2" ]
[]
false
false
false
false
false
let coerce_to_normal (#a: Type0) (x: a) : y: (normal a){x == y} =
x
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_pxor_consumes_fixed_time
val check_if_pxor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotatePxor? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts)
val check_if_pxor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotatePxor? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts)
let check_if_pxor_consumes_fixed_time (ins:S.ins) (ts:analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotatePxor? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts) = let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs (S.AnnotatePxor eq) = ins in ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 554, "start_col": 0, "start_line": 539 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints)
Prims.Pure
[]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.flag_havoc", "Vale.X64.Instruction_s.instr_t", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instru...
[]
false
false
false
false
false
let check_if_pxor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotatePxor? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts) =
let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs (S.AnnotatePxor eq) = ins in let oprs:normal (instr_operands_t [inOut opXmm] [opXmm]) = coerce_to_normal #(instr_operands_t [inOut opXmm] [opXmm]) oprs in let o1, (o2, ()) = oprs in if o1 = o2 then let t = Public in let b = check_if_consumes_fixed_...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_vpxor_consumes_fixed_time
val check_if_vpxor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotateVPxor? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts)
val check_if_vpxor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotateVPxor? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts)
let check_if_vpxor_consumes_fixed_time (ins:S.ins) (ts:analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotateVPxor? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts) = let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs (S.AnnotateVPxor eq) = ins ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 571, "start_col": 0, "start_line": 556 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints)
Prims.Pure
[]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.flag_havoc", "Vale.X64.Instruction_s.instr_t", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instru...
[]
false
false
false
false
false
let check_if_vpxor_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins /\ S.AnnotateVPxor? (BC.Instr?.annotation ins)) (ensures ins_consumes_fixed_time ins ts) =
let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs (S.AnnotateVPxor eq) = ins in let oprs:normal (instr_operands_t [out opXmm] [opXmm; opXmm]) = coerce_to_normal #(instr_operands_t [out opXmm] [opXmm; opXmm]) oprs in let _, (o2, (o3, ())) = oprs in if o2 = o3 then let t = Public in let b = check_if...
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.collect_app
val collect_app : t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Tactics.NamedView.term * Prims.list FStar.Stubs.Reflection.V2.Data.argv)
let collect_app = collect_app' []
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 88, "start_col": 0, "start_line": 88 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Tactics.NamedView.term * Prims.list FStar.Stubs.Reflection.V2.Data.argv)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.V2.SyntaxHelpers.collect_app'", "Prims.Nil", "FStar.Stubs.Reflection.V2.Data.argv" ]
[]
false
true
false
false
false
let collect_app =
collect_app' []
false
Steel.Channel.Simplex.fsti
Steel.Channel.Simplex.prot
val prot:Type u#1
val prot:Type u#1
let prot : Type u#1 = protocol unit
{ "file_name": "lib/steel/Steel.Channel.Simplex.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 31, "start_col": 0, "start_line": 31 }
(* 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.Memory.fsti.checked", "Steel.Effect.fsti.checked", "Steel.Channel.Protocol.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.Channel.Simplex.fsti" }
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Memory", "short_module": null }, { "abbrev": false, "full_module": "Steel.Channel.Protocol", "short_module": null }, { "abbrev": false, "full_mod...
{ "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
Type
Prims.Tot
[ "total" ]
[]
[ "Steel.Channel.Protocol.protocol", "Prims.unit" ]
[]
false
false
false
true
true
let prot:Type u#1 =
protocol unit
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.collect_app'
val collect_app' (args: list argv) (t: term) : Tac (term * list argv)
val collect_app' (args: list argv) (t: term) : Tac (term * list argv)
let rec collect_app' (args : list argv) (t : term) : Tac (term * list argv) = match inspect_unascribe t with | Tv_App l r -> collect_app' (r::args) l | _ -> (t, args)
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 86, "start_col": 0, "start_line": 81 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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
args: Prims.list FStar.Stubs.Reflection.V2.Data.argv -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Tactics.NamedView.term * Prims.list FStar.Stubs.Reflection.V2.Data.argv)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.V2.Data.argv", "FStar.Tactics.NamedView.term", "FStar.Tactics.V2.SyntaxHelpers.collect_app'", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.NamedView.named_term_view", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.term_view", "P...
[ "recursion" ]
false
true
false
false
false
let rec collect_app' (args: list argv) (t: term) : Tac (term * list argv) =
match inspect_unascribe t with | Tv_App l r -> collect_app' (r :: args) l | _ -> (t, args)
false
GenericSort.fst
GenericSort.sorted
val sorted: list 'a -> key:('a -> Tot int) -> Tot bool
val sorted: list 'a -> key:('a -> Tot int) -> Tot bool
let rec sorted l key = match l with | [] | [_] -> true | x::y::xs -> (key x <= key y) && (sorted (y::xs) key)
{ "file_name": "examples/algorithms/GenericSort.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 31, "start_col": 0, "start_line": 29 }
(* 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", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "GenericSort.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_modul...
{ "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
l: Prims.list 'a -> key: (_: 'a -> Prims.int) -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Prims.int", "Prims.op_AmpAmp", "Prims.op_LessThanOrEqual", "GenericSort.sorted", "Prims.Cons", "Prims.bool" ]
[ "recursion" ]
false
false
false
true
false
let rec sorted l key =
match l with | [] | [_] -> true | x :: y :: xs -> (key x <= key y) && (sorted (y :: xs) key)
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_inouts_taint
val lemma_inouts_taint (outs inouts: list instr_out) (args: list instr_operand) (f: instr_inouts_t outs inouts args) (oprs: instr_operands_t inouts args) (ts: analysis_taints) (s1 s2: S.machine_state) : Lemma (requires constTimeInvariant ts.lts s1 s2 /\ Some...
val lemma_inouts_taint (outs inouts: list instr_out) (args: list instr_operand) (f: instr_inouts_t outs inouts args) (oprs: instr_operands_t inouts args) (ts: analysis_taints) (s1 s2: S.machine_state) : Lemma (requires constTimeInvariant ts.lts s1 s2 /\ Some...
let rec lemma_inouts_taint (outs inouts:list instr_out) (args:list instr_operand) (f:instr_inouts_t outs inouts args) (oprs:instr_operands_t inouts args) (ts:analysis_taints) (s1 s2:S.machine_state) : Lemma (requires constTimeInvariant ts.lts s1 s2 /\ Some? (S.instr_apply_eval_inouts outs ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 196, "start_col": 0, "start_line": 147 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
outs: Prims.list Vale.X64.Instruction_s.instr_out -> inouts: Prims.list Vale.X64.Instruction_s.instr_out -> args: Prims.list Vale.X64.Instruction_s.instr_operand -> f: Vale.X64.Instruction_s.instr_inouts_t outs inouts args -> oprs: Vale.X64.Instruction_s.instr_operands_t inouts args -> ts: Vale...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.instr_inouts_t", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Vale.X64.Leakage_Ins.lemma_args_taint...
[ "recursion" ]
false
false
true
false
false
let rec lemma_inouts_taint (outs inouts: list instr_out) (args: list instr_operand) (f: instr_inouts_t outs inouts args) (oprs: instr_operands_t inouts args) (ts: analysis_taints) (s1 s2: S.machine_state) : Lemma (requires constTimeInvariant ts.lts s1 s2 /\ ...
allow_inversion maddr; allow_inversion tmaddr; allow_inversion operand64; allow_inversion operand128; match inouts with | [] -> lemma_args_taint outs args f oprs ts s1 s2 | (Out, i) :: inouts -> let oprs = match i with | IOpEx i -> snd #(instr_operand_t i) (coerce oprs) | IOpIm i -> coerce oprs in lem...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_ins_consumes_fixed_time
val check_if_ins_consumes_fixed_time (ins:Vale.X64.Machine_Semantics_s.ins) (ts:analysis_taints) : (res:(bool & analysis_taints){ins_consumes_fixed_time ins ts res})
val check_if_ins_consumes_fixed_time (ins:Vale.X64.Machine_Semantics_s.ins) (ts:analysis_taints) : (res:(bool & analysis_taints){ins_consumes_fixed_time ins ts res})
let check_if_ins_consumes_fixed_time ins ts = match ins with | BC.Instr _ _ (S.AnnotateXor64 _) -> check_if_xor_consumes_fixed_time ins ts | BC.Instr _ _ (S.AnnotatePxor _) -> check_if_pxor_consumes_fixed_time ins ts | BC.Instr _ _ (S.AnnotateVPxor _) -> check_if_vpxor_consumes_fixed_time ins ts | BC.Instr _ ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 612, "start_col": 0, "start_line": 603 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": false, "full_module": "Vale.X64.Instruction_s", "short_module": null }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 4, "initial_ifuel": 3, "max_fuel": 4, "max_ifuel": 3, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> res: (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints) {Vale.X64.Leakage_Helpers.ins_consumes_fixed_time ins ts res}
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Instruction_s.instr_t_record", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instruction_s.__proj__InstrTypeRecord__item__outs", "Vale.X64.Instruction_s.__proj__InstrTypeRecord__item__args", "Vale.X64.Machin...
[]
false
false
false
false
false
let check_if_ins_consumes_fixed_time ins ts =
match ins with | BC.Instr _ _ (S.AnnotateXor64 _) -> check_if_xor_consumes_fixed_time ins ts | BC.Instr _ _ (S.AnnotatePxor _) -> check_if_pxor_consumes_fixed_time ins ts | BC.Instr _ _ (S.AnnotateVPxor _) -> check_if_vpxor_consumes_fixed_time ins ts | BC.Instr _ _ _ -> check_if_instr_consumes_fixed_time ins ts | BC.Pu...
false
GenericSort.fst
GenericSort.sorted_smaller
val sorted_smaller: #a:eqtype -> x:a -> y:a -> l:list a -> key:(a -> Tot int) -> Lemma (requires (sorted (x::l) key /\ mem y l)) (ensures (key x <= key y)) [SMTPat (sorted (x::l) key); ...
val sorted_smaller: #a:eqtype -> x:a -> y:a -> l:list a -> key:(a -> Tot int) -> Lemma (requires (sorted (x::l) key /\ mem y l)) (ensures (key x <= key y)) [SMTPat (sorted (x::l) key); ...
let rec sorted_smaller #a x y l key = match l with | [] -> () | z::zs -> if key z = key y then () else sorted_smaller x y zs key
{ "file_name": "examples/algorithms/GenericSort.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 70, "end_line": 53, "start_col": 0, "start_line": 51 }
(* 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", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "GenericSort.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_modul...
{ "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: a -> y: a -> l: Prims.list a -> key: (_: a -> Prims.int) -> FStar.Pervasives.Lemma (requires GenericSort.sorted (x :: l) key /\ FStar.List.Tot.Base.mem y l) (ensures key x <= key y) [SMTPat (GenericSort.sorted (x :: l) key); SMTPat (FStar.List.Tot.Base.mem y l)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "Prims.list", "Prims.int", "Prims.op_Equality", "Prims.bool", "GenericSort.sorted_smaller", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec sorted_smaller #a x y l key =
match l with | [] -> () | z :: zs -> if key z = key y then () else sorted_smaller x y zs key
false
GenericSort.fst
GenericSort.test_sorted2
val test_sorted2: unit -> key:('a -> Tot int) -> Tot (m:list 'a{sorted m key})
val test_sorted2: unit -> key:('a -> Tot int) -> Tot (m:list 'a{sorted m key})
let test_sorted2 () key = Nil
{ "file_name": "examples/algorithms/GenericSort.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 38, "start_col": 0, "start_line": 38 }
(* 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", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "GenericSort.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_modul...
{ "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 -> key: (_: 'a -> Prims.int) -> m: Prims.list 'a {GenericSort.sorted m key}
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.int", "Prims.Nil", "Prims.list", "Prims.b2t", "GenericSort.sorted" ]
[]
false
false
false
false
false
let test_sorted2 () key =
Nil
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_dealloc_consumes_fixed_time
val check_if_dealloc_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Dealloc? ins) (ensures ins_consumes_fixed_time ins ts)
val check_if_dealloc_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Dealloc? ins) (ensures ins_consumes_fixed_time ins ts)
let check_if_dealloc_consumes_fixed_time (ins:S.ins) (ts:analysis_taints) : Pure (bool & analysis_taints) (requires BC.Dealloc? ins) (ensures ins_consumes_fixed_time ins ts) = (true, ts)
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 12, "end_line": 583, "start_col": 0, "start_line": 579 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints)
Prims.Pure
[]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "FStar.Pervasives.Native.Mktuple2", "Prims.bool", "FStar.Pervasives.Native.tuple2", "Prims.b2t", "Vale.X64.Bytes_Code_s.uu___is_Dealloc", "Vale.X64.Machine_Semantics_s.instr_annotation", "Vale.X64.Leakage_Helpers.ins_con...
[]
false
false
false
false
false
let check_if_dealloc_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Dealloc? ins) (ensures ins_consumes_fixed_time ins ts) =
(true, ts)
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_instr_consumes_fixed_time
val check_if_instr_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins) (ensures ins_consumes_fixed_time ins ts)
val check_if_instr_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins) (ensures ins_consumes_fixed_time ins ts)
let check_if_instr_consumes_fixed_time (ins:S.ins) (ts:analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins) (ensures ins_consumes_fixed_time ins ts) = let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs _ = ins in let t = inouts_taint outs args oprs ts in let b = check_if_...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 518, "start_col": 0, "start_line": 506 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints)
Prims.Pure
[]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.flag_havoc", "Vale.X64.Instruction_s.instr_t", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instru...
[]
false
false
false
false
false
let check_if_instr_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Instr? ins) (ensures ins_consumes_fixed_time ins ts) =
let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs _ = ins in let t = inouts_taint outs args oprs ts in let b = check_if_consumes_fixed_time_outs outs args oprs ts t in let AnalysisTaints (LeakageTaints rs flags cf ovf) rts = ts in let flags = match havoc_flags with | HavocFlags -> Secret | Preserv...
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.mk_tot_arr
val mk_tot_arr (bs: list binder) (cod: term) : Tac term
val mk_tot_arr (bs: list binder) (cod: term) : Tac term
let rec mk_tot_arr (bs: list binder) (cod : term) : Tac term = match bs with | [] -> cod | (b::bs) -> pack (Tv_Arrow b (C_Total (mk_tot_arr bs cod)))
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 53, "end_line": 62, "start_col": 0, "start_line": 58 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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
bs: Prims.list FStar.Tactics.NamedView.binder -> cod: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.term", "FStar.Tactics.NamedView.pack", "FStar.Tactics.NamedView.named_term_view", "FStar.Tactics.NamedView.Tv_Arrow", "FStar.Tactics.NamedView.comp", "FStar.Stubs.Reflection.V2.Data.C_Total", "FStar.Stubs.Reflection.Types.typ",...
[ "recursion" ]
false
true
false
false
false
let rec mk_tot_arr (bs: list binder) (cod: term) : Tac term =
match bs with | [] -> cod | b :: bs -> pack (Tv_Arrow b (C_Total (mk_tot_arr bs cod)))
false
GenericSort.fst
GenericSort.sorted_tl
val sorted_tl: #a:eqtype -> l:list a{Cons? l} -> k:(a -> Tot int) -> Lemma (requires (sorted l k)) (ensures (sorted (Cons?.tl l) k))
val sorted_tl: #a:eqtype -> l:list a{Cons? l} -> k:(a -> Tot int) -> Lemma (requires (sorted l k)) (ensures (sorted (Cons?.tl l) k))
let rec sorted_tl #a l k = match l with | [_] -> () | a::b::xs -> sorted_tl (b::xs) k
{ "file_name": "examples/algorithms/GenericSort.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 61, "start_col": 0, "start_line": 58 }
(* 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", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "GenericSort.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_modul...
{ "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
l: Prims.list a {Cons? l} -> k: (_: a -> Prims.int) -> FStar.Pervasives.Lemma (requires GenericSort.sorted l k) (ensures GenericSort.sorted (Cons?.tl l) k)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "Prims.list", "Prims.b2t", "Prims.uu___is_Cons", "Prims.int", "GenericSort.sorted_tl", "Prims.Cons", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec sorted_tl #a l k =
match l with | [_] -> () | a :: b :: xs -> sorted_tl (b :: xs) k
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.mk_arr
val mk_arr (bs: list binder) (cod: comp) : Tac term
val mk_arr (bs: list binder) (cod: comp) : Tac term
let rec mk_arr (bs: list binder) (cod : comp) : Tac term = match bs with | [] -> fail "mk_arr, empty binders" | [b] -> pack (Tv_Arrow b cod) | (b::bs) -> pack (Tv_Arrow b (C_Total (mk_arr bs cod)))
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 49, "end_line": 56, "start_col": 0, "start_line": 51 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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
bs: Prims.list FStar.Tactics.NamedView.binder -> cod: FStar.Tactics.NamedView.comp -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.comp", "FStar.Tactics.V2.SyntaxHelpers.fail", "FStar.Tactics.NamedView.term", "FStar.Tactics.NamedView.pack", "FStar.Tactics.NamedView.Tv_Arrow", "FStar.Tactics.NamedView.named_term_view", "FStar.Stubs.Reflection.V2.Data.C_Tota...
[ "recursion" ]
false
true
false
false
false
let rec mk_arr (bs: list binder) (cod: comp) : Tac term =
match bs with | [] -> fail "mk_arr, empty binders" | [b] -> pack (Tv_Arrow b cod) | b :: bs -> pack (Tv_Arrow b (C_Total (mk_arr bs cod)))
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.inspect_unascribe
val inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv})
val inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv})
let rec inspect_unascribe (t:term) : Tac (tv:term_view{notAscription tv}) = match inspect t with | Tv_AscribedT t _ _ _ | Tv_AscribedC t _ _ _ -> inspect_unascribe t | tv -> tv
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 78, "start_col": 0, "start_line": 73 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (tv: FStar.Tactics.NamedView.term_view{FStar.Tactics.NamedView.notAscription tv})
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.option", "Prims.bool", "FStar.Tactics.V2.SyntaxHelpers.inspect_unascribe", "FStar.Tactics.NamedView.term_view", "Prims.b2t", "FStar.Tactics.NamedView.notAscription", "FStar.Tactics.NamedView.comp", "FStar.Tactics.NamedView.named_term_view", ...
[ "recursion" ]
false
true
false
false
false
let rec inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv}) =
match inspect t with | Tv_AscribedT t _ _ _ | Tv_AscribedC t _ _ _ -> inspect_unascribe t | tv -> tv
false
FStar.Tactics.V2.SyntaxHelpers.fst
FStar.Tactics.V2.SyntaxHelpers.lookup_lb
val lookup_lb (lbs: list letbinding) (nm: name) : Tac letbinding
val lookup_lb (lbs: list letbinding) (nm: name) : Tac letbinding
let lookup_lb (lbs:list letbinding) (nm:name) : Tac letbinding = let o = FStar.List.Tot.Base.find (fun lb -> (inspect_fv lb.lb_fv) = nm) lbs in match o with | Some lb -> lb | None -> fail "lookup_letbinding: Name not in let group"
{ "file_name": "ulib/FStar.Tactics.V2.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 59, "end_line": 71, "start_col": 0, "start_line": 64 }
module FStar.Tactics.V2.SyntaxHelpers open FStar.Reflection.V2 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V2.Builtins open FStar.Tactics.NamedView (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : co...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native...
[ { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { ...
{ "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
lbs: Prims.list FStar.Tactics.NamedView.letbinding -> nm: FStar.Stubs.Reflection.Types.name -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.letbinding
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Tactics.NamedView.letbinding", "FStar.Stubs.Reflection.Types.name", "Prims.b2t", "Prims.op_Equality", "FStar.Stubs.Reflection.V2.Builtins.inspect_fv", "FStar.Tactics.NamedView.__proj__Mkletbinding__item__lb_fv", "FStar.Tactics.V2.SyntaxHelpers.fail", "FStar.Pervasives.Native.opt...
[]
false
true
false
false
false
let lookup_lb (lbs: list letbinding) (nm: name) : Tac letbinding =
let o = FStar.List.Tot.Base.find (fun lb -> (inspect_fv lb.lb_fv) = nm) lbs in match o with | Some lb -> lb | None -> fail "lookup_letbinding: Name not in let group"
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_push_consumes_fixed_time
val check_if_push_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Push? ins) (ensures ins_consumes_fixed_time ins ts)
val check_if_push_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Push? ins) (ensures ins_consumes_fixed_time ins ts)
let check_if_push_consumes_fixed_time (ins:S.ins) (ts:analysis_taints) : Pure (bool & analysis_taints) (requires BC.Push? ins) (ensures ins_consumes_fixed_time ins ts) = let BC.Push src t_stk = ins in let t_out = operand_taint 0 src ts in (Public? (Vale.Lib.MapTree.sel ts.rts reg_Rsp) && operand_does_not_us...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 130, "end_line": 593, "start_col": 0, "start_line": 587 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 4, "initial_ifuel": 3, "max_fuel": 4, "max_ifuel": 3, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints)
Prims.Pure
[]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_s.operand64", "Vale.Arch.HeapTypes_s.taint", "FStar.Pervasives.Native.Mktuple2", "Prims.bool", "Prims.op_AmpAmp", "Vale.Arch.HeapTypes_s.uu___is_Public", "Vale.Lib.MapTree.sel", "Vale.X64.Machine_s.re...
[]
false
false
false
false
false
let check_if_push_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Push? ins) (ensures ins_consumes_fixed_time ins ts) =
let BC.Push src t_stk = ins in let t_out = operand_taint 0 src ts in (Public? (Vale.Lib.MapTree.sel ts.rts reg_Rsp) && operand_does_not_use_secrets src ts && (t_out = Public || t_stk = Secret), ts)
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.check_if_pop_consumes_fixed_time
val check_if_pop_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Pop? ins) (ensures ins_consumes_fixed_time ins ts)
val check_if_pop_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Pop? ins) (ensures ins_consumes_fixed_time ins ts)
let check_if_pop_consumes_fixed_time (ins:S.ins) (ts:analysis_taints) : Pure (bool & analysis_taints) (requires BC.Pop? ins) (ensures ins_consumes_fixed_time ins ts) = let BC.Pop dst t_stk = ins in let allowed = operand_taint_allowed dst t_stk in (Public? (Vale.Lib.MapTree.sel ts.rts reg_Rsp) && operand_doe...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 125, "end_line": 601, "start_col": 0, "start_line": 595 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 4, "initial_ifuel": 3, "max_fuel": 4, "max_ifuel": 3, "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
ins: Vale.X64.Machine_Semantics_s.ins -> ts: Vale.X64.Leakage_Helpers.analysis_taints -> Prims.Pure (Prims.bool * Vale.X64.Leakage_Helpers.analysis_taints)
Prims.Pure
[]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_s.operand64", "Vale.Arch.HeapTypes_s.taint", "FStar.Pervasives.Native.Mktuple2", "Prims.bool", "Prims.op_AmpAmp", "Vale.Arch.HeapTypes_s.uu___is_Public", "Vale.Lib.MapTree.sel", "Vale.X64.Machine_s.re...
[]
false
false
false
false
false
let check_if_pop_consumes_fixed_time (ins: S.ins) (ts: analysis_taints) : Pure (bool & analysis_taints) (requires BC.Pop? ins) (ensures ins_consumes_fixed_time ins ts) =
let BC.Pop dst t_stk = ins in let allowed = operand_taint_allowed dst t_stk in (Public? (Vale.Lib.MapTree.sel ts.rts reg_Rsp) && operand_does_not_use_secrets dst ts && allowed, set_taint 0 dst ts t_stk)
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_instr_set_taints
val lemma_instr_set_taints (outs: list instr_out) (args: list instr_operand) (vs1 vs2: instr_ret_t outs) (oprs: instr_operands_t outs args) (ts_orig ts: analysis_taints) (t_out: taint) (s1_orig s1 s2_orig s2: S.machine_state) : Lemma (requires (let s1_state' =...
val lemma_instr_set_taints (outs: list instr_out) (args: list instr_operand) (vs1 vs2: instr_ret_t outs) (oprs: instr_operands_t outs args) (ts_orig ts: analysis_taints) (t_out: taint) (s1_orig s1 s2_orig s2: S.machine_state) : Lemma (requires (let s1_state' =...
let rec lemma_instr_set_taints (outs:list instr_out) (args:list instr_operand) (vs1 vs2:instr_ret_t outs) (oprs:instr_operands_t outs args) (ts_orig ts:analysis_taints) (t_out:taint) (s1_orig s1 s2_orig s2:S.machine_state) : Lemma (requires ( let s1_state' = S.instr_write_outputs outs args v...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 504, "start_col": 0, "start_line": 448 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "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
outs: Prims.list Vale.X64.Instruction_s.instr_out -> args: Prims.list Vale.X64.Instruction_s.instr_operand -> vs1: Vale.X64.Instruction_s.instr_ret_t outs -> vs2: Vale.X64.Instruction_s.instr_ret_t outs -> oprs: Vale.X64.Instruction_s.instr_operands_t outs args -> ts_orig: Vale.X64.Leakage_Help...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.instr_ret_t", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Machine_Semantics_s.machine_state", "Vale.X6...
[ "recursion" ]
false
false
true
false
false
let rec lemma_instr_set_taints (outs: list instr_out) (args: list instr_operand) (vs1 vs2: instr_ret_t outs) (oprs: instr_operands_t outs args) (ts_orig ts: analysis_taints) (t_out: taint) (s1_orig s1 s2_orig s2: S.machine_state) : Lemma (requires (let s1_stat...
match outs with | [] -> () | (_, i) :: outs -> (let (v1: instr_val_t i), (vs1: instr_ret_t outs) = match outs with | [] -> (vs1, ()) | _ :: _ -> let vs1 = coerce vs1 in (fst vs1, snd vs1) in let (v2: instr_val_t i), (vs2: instr_ret_t outs) = match outs with | [] -...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_ins_leakage_free
val lemma_ins_leakage_free (ts:analysis_taints) (ins:Vale.X64.Machine_Semantics_s.ins) : Lemma (let (b, ts') = check_if_ins_consumes_fixed_time ins ts in (b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts))
val lemma_ins_leakage_free (ts:analysis_taints) (ins:Vale.X64.Machine_Semantics_s.ins) : Lemma (let (b, ts') = check_if_ins_consumes_fixed_time ins ts in (b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts))
let lemma_ins_leakage_free ts ins = let (b, ts') = check_if_ins_consumes_fixed_time ins ts in match ins with | BC.Instr _ _ (S.AnnotateXor64 _) -> lemma_xor_leakage_free ts ins | BC.Instr _ _ (S.AnnotatePxor _) -> lemma_pxor_leakage_free ts ins | BC.Instr _ _ (S.AnnotateVPxor _) -> lemma_vpxor_leakage_free ts...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 842, "start_col": 0, "start_line": 832 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Bytes_Code_s", "short_module": "BC" }, { "abbrev": false, "full_module": "Vale.X64.Instruction_s", "short_module": null }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "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
ts: Vale.X64.Leakage_Helpers.analysis_taints -> ins: Vale.X64.Machine_Semantics_s.ins -> FStar.Pervasives.Lemma (ensures (let _ = Vale.X64.Leakage_Ins.check_if_ins_consumes_fixed_time ins ts in (let FStar.Pervasives.Native.Mktuple2 #_ #_ b ts' = _ in b ==> Vale.X64.Leakage_s.isCo...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_Semantics_s.ins", "Prims.bool", "Vale.X64.Instruction_s.instr_t_record", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instruction_s.__proj__InstrTypeRecord__item__outs", "Vale.X64.Instruction_s.__proj__InstrTypeRecord__item__args", ...
[]
false
false
true
false
false
let lemma_ins_leakage_free ts ins =
let b, ts' = check_if_ins_consumes_fixed_time ins ts in match ins with | BC.Instr _ _ (S.AnnotateXor64 _) -> lemma_xor_leakage_free ts ins | BC.Instr _ _ (S.AnnotatePxor _) -> lemma_pxor_leakage_free ts ins | BC.Instr _ _ (S.AnnotateVPxor _) -> lemma_vpxor_leakage_free ts ins | BC.Instr _ _ _ -> lemma_instr_leakage_fre...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_dealloc_leakage_free
val lemma_dealloc_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Dealloc? ins) (ensures (let b, ts' = check_if_dealloc_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts))
val lemma_dealloc_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Dealloc? ins) (ensures (let b, ts' = check_if_dealloc_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts))
let lemma_dealloc_leakage_free (ts:analysis_taints) (ins:S.ins) : Lemma (requires BC.Dealloc? ins) (ensures ( let (b, ts') = check_if_dealloc_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts )) = let (b, ts') = check_if_dealloc_consumes_...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 702, "start_col": 0, "start_line": 670 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "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
ts: Vale.X64.Leakage_Helpers.analysis_taints -> ins: Vale.X64.Machine_Semantics_s.ins -> FStar.Pervasives.Lemma (requires Dealloc? ins) (ensures (let _ = Vale.X64.Leakage_Ins.check_if_dealloc_consumes_fixed_time ins ts in (let FStar.Pervasives.Native.Mktuple2 #_ #_ b ts' = _ in b =...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_Semantics_s.ins", "Prims.bool", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.nat", "Prims.unit", "Vale.X64.Leakage_s.is_explicit_leakage_free_lhs", "Vale.X64.Leakage_Helpers.__proj__AnalysisTaints__item__lts", "Prims.squash", "V...
[]
false
false
true
false
false
let lemma_dealloc_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Dealloc? ins) (ensures (let b, ts' = check_if_dealloc_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts)) =
let b, ts' = check_if_dealloc_consumes_fixed_time ins ts in if b then (let code = Ins ins in let lem (s1 s2: S.machine_state) (fuel: nat) : Lemma (requires is_explicit_leakage_free_lhs code fuel ts.lts ts'.lts s1 s2) (ensures is_explicit_leakage_free_rhs code fuel ts.lts ts'.lts s1 s2) ...
false
Hacl.Spec.K256.Field52.Lemmas3.fst
Hacl.Spec.K256.Field52.Lemmas3.fmul5_lemma
val fmul5_lemma: a:felem5 -> b:felem5 -> Lemma (requires felem_fits5 a (64,64,64,64,64) /\ felem_fits5 b (64,64,64,64,64)) (ensures (let res = fmul5 a b in as_nat5 res % S.prime == as_nat5 a * as_nat5 b % S.prime /\ felem_fits5 res (1,1,1,1,2)))
val fmul5_lemma: a:felem5 -> b:felem5 -> Lemma (requires felem_fits5 a (64,64,64,64,64) /\ felem_fits5 b (64,64,64,64,64)) (ensures (let res = fmul5 a b in as_nat5 res % S.prime == as_nat5 a * as_nat5 b % S.prime /\ felem_fits5 res (1,1,1,1,2)))
let fmul5_lemma a b = let (a0,a1,a2,a3,a4) = a in let (b0,b1,b2,b3,b4) = b in let r = u64 0x1000003D10 in let d0 = mul64_wide a0 b3 +. mul64_wide a1 b2 +. mul64_wide a2 b1 +. mul64_wide a3 b0 in lemma_four_mul64_wide a0 a1 a2 a3 b0 b1 b2 b3; assert (v d0 = v a0 * v b3 + v a1 * v b2 + ...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 80, "end_line": 209, "start_col": 0, "start_line": 24 }
module Hacl.Spec.K256.Field52.Lemmas3 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module L4 = Hacl.Spec.K256.Field52.Lemmas4 open Hacl.Spec.K256.Field52.Lemmas5 #set-options "--z3rlimit 150 --fuel 0 --ifuel 0" val fmul5_lemma: a:f...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas5.fst.checked", "Hacl.Spec.K256.Field52.Lemmas4.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52.fst.ch...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Lemmas5", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas4", "short_module": "L4" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }, {...
{ "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
a: Hacl.Spec.K256.Field52.Definitions.felem5 -> b: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 a (64, 64, 64, 64, 64) /\ Hacl.Spec.K256.Field52.Definitions.felem_fits5 b (64, 64, 64, 64, 64)) (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.Lemmas4.lemma_fmul_simplify", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.U128", "Prims.unit", "Prims._assert", "Hacl.Spec.K256.Field52.Definitions.felem_fits5", "FStar.Pervasi...
[]
false
false
true
false
false
let fmul5_lemma a b =
let a0, a1, a2, a3, a4 = a in let b0, b1, b2, b3, b4 = b in let r = u64 0x1000003D10 in let d0 = mul64_wide a0 b3 +. mul64_wide a1 b2 +. mul64_wide a2 b1 +. mul64_wide a3 b0 in lemma_four_mul64_wide a0 a1 a2 a3 b0 b1 b2 b3; assert (v d0 = v a0 * v b3 + v a1 * v b2 + v a2 * v b1 + v a3 * v b0); assert (v d0 <= 16384 * (...
false
Hacl.Impl.Chacha20Poly1305.PolyCore.fst
Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded
val poly1305_padded: #w:field_spec -> poly1305_padded_st w
val poly1305_padded: #w:field_spec -> poly1305_padded_st w
let poly1305_padded #w ctx len text = let h0 = ST.get () in push_frame (); let h1 = ST.get () in Poly.reveal_ctx_inv ctx h0 h1; let n = len /. 16ul in let r = len %. 16ul in let blocks = sub text 0ul (n *! 16ul) in let rem = sub text (n *! 16ul) r in // the extra part of the input data Poly.poly1305_u...
{ "file_name": "code/chacha20poly1305/Hacl.Impl.Chacha20Poly1305.PolyCore.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 59, "start_col": 0, "start_line": 39 }
module Hacl.Impl.Chacha20Poly1305.PolyCore open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Fields module ST = FStar.HyperStack.ST module Spec = Spec.Chacha20Poly1305 module Poly = Hacl.Impl.Poly1305 #set-options "--z3rlimit 50 --max_fuel 0 -...
{ "checked_file": "/", "dependencies": [ "Spec.Chacha20Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Poly1305.fsti.checked", "FStar.UInt32.fsti.chec...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305", "short_module": "Poly" }, { "abbrev": true, "full_module": "Spec.Chacha20Poly1305", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "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
Hacl.Impl.Chacha20Poly1305.PolyCore.poly1305_padded_st w
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.poly1305_ctx", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.Impl.Poly1305.reveal_ctx_inv", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "FStar.HyperStack.ST.pop_frame", "Lib.IntT...
[]
false
false
false
false
false
let poly1305_padded #w ctx len text =
let h0 = ST.get () in push_frame (); let h1 = ST.get () in Poly.reveal_ctx_inv ctx h0 h1; let n = len /. 16ul in let r = len %. 16ul in let blocks = sub text 0ul (n *! 16ul) in let rem = sub text (n *! 16ul) r in Poly.poly1305_update #w ctx (n *! 16ul) blocks; let h2 = ST.get () in let tmp = create 16ul (u8 0) in updat...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_instr_leakage_free
val lemma_instr_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Instr? ins) (ensures (let b, ts' = check_if_instr_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts))
val lemma_instr_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Instr? ins) (ensures (let b, ts' = check_if_instr_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts))
let lemma_instr_leakage_free (ts:analysis_taints) (ins:S.ins) : Lemma (requires BC.Instr? ins) (ensures ( let (b, ts') = check_if_instr_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts )) = let (b, ts') = check_if_instr_consumes_fixed_ti...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 668, "start_col": 0, "start_line": 615 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "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
ts: Vale.X64.Leakage_Helpers.analysis_taints -> ins: Vale.X64.Machine_Semantics_s.ins -> FStar.Pervasives.Lemma (requires Instr? ins) (ensures (let _ = Vale.X64.Leakage_Ins.check_if_instr_consumes_fixed_time ins ts in (let FStar.Pervasives.Native.Mktuple2 #_ #_ b ts' = _ in b ==> ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_Semantics_s.ins", "Prims.bool", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.nat", "Prims.unit", "Vale.X64.Leakage_s.is_explicit_leakage_free_lhs", "Vale.X64.Leakage_Helpers.__proj__AnalysisTaints__item__lts", "Prims.squash", "V...
[]
false
false
true
false
false
let lemma_instr_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Instr? ins) (ensures (let b, ts' = check_if_instr_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts)) =
let b, ts' = check_if_instr_consumes_fixed_time ins ts in if b then (let code = Ins ins in let lem (s1 s2: S.machine_state) (fuel: nat) : Lemma (requires is_explicit_leakage_free_lhs code fuel ts.lts ts'.lts s1 s2) (ensures is_explicit_leakage_free_rhs code fuel ts.lts ts'.lts s1 s2) [...
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.finalize_bounded_vlgen
val finalize_bounded_vlgen (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parse...
val finalize_bounded_vlgen (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parse...
let finalize_bounded_vlgen (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel ...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 63, "end_line": 263, "start_col": 0, "start_line": 221 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> sz32: FStar.UInt32.t -> wk: LowParse.Low.Base.leaf_writer_strong ssk -> s: LowParse.Spec.Base.serializer p -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> pos': FStar.UInt32.t -> FStar.Hyp...
FStar.HyperStack.ST.Stack
[]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "FStar.UInt32.t", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Low.Base.leaf_...
[]
false
true
false
false
false
let finalize_bounded_vlgen (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parse...
let h = HST.get () in [@@ inline_let ]let _ = let pos_payload = pos `U32.add` sz32 in valid_pos_valid_exact p h input pos_payload pos' in finalize_bounded_vlgen_exact min max sz32 wk s input pos pos'
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.jump_vlgen
val jump_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (vmin) (vmax))) (vk: jumper pk) (rk: leaf_reader pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {p...
val jump_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (vmin) (vmax))) (vk: jumper pk) (rk: leaf_reader pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {p...
let jump_vlgen (vmin: der_length_t) (vmax: der_length_t { vmin <= vmax /\ vmax < 4294967296 } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (vmin) (vmax))) (vk: jumper pk) (rk: leaf_reader pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlgen_precond (vmin) (vmax) k ...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 493, "start_col": 0, "start_line": 478 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
vmin: LowParse.Spec.DER.der_length_t -> vmax: LowParse.Spec.DER.der_length_t{vmin <= vmax /\ vmax < 4294967296} -> vk: LowParse.Low.Base.jumper pk -> rk: LowParse.Low.Base.leaf_reader pk -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond vmin vmax k} -> LowParse.Low.Ba...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Low.Base.jumper", "LowParse.Low.Base.leaf_reader", "LowParse.Spec.Base...
[]
false
false
false
false
false
let jump_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (vmin) (vmax))) (vk: jumper pk) (rk: leaf_reader pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {p...
jump_synth (jump_bounded_vlgen vmin vmax vk rk s) (synth_vlgen (vmin) (vmax) s) ()
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_bounded_vlgen_payload'
val gaccessor_bounded_vlgen_payload' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}...
val gaccessor_bounded_vlgen_payload' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}...
let gaccessor_bounded_vlgen_payload' (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) : Tot (gaccessor' (parse...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 522, "start_col": 0, "start_line": 495 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "Prims.eq2", "FStar.Pervasives.Native.opti...
[]
false
false
false
false
false
let gaccessor_bounded_vlgen_payload' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}...
fun input -> parse_bounded_vlgen_unfold min max pk s input; let res = match parse pk input with | None -> (0) | Some (len, sz) -> if sz + U32.v len <= Seq.length input then let input' = Seq.slice input sz (sz + U32.v len) in let _ = match parse p input' with ...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_push_leakage_free
val lemma_push_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Push? ins) (ensures (let b, ts' = check_if_push_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts))
val lemma_push_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Push? ins) (ensures (let b, ts' = check_if_push_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts))
let lemma_push_leakage_free (ts:analysis_taints) (ins:S.ins) : Lemma (requires BC.Push? ins) (ensures ( let (b, ts') = check_if_push_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts )) = let (b, ts') = check_if_push_consumes_fixed_time i...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 744, "start_col": 0, "start_line": 704 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "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
ts: Vale.X64.Leakage_Helpers.analysis_taints -> ins: Vale.X64.Machine_Semantics_s.ins -> FStar.Pervasives.Lemma (requires Push? ins) (ensures (let _ = Vale.X64.Leakage_Ins.check_if_push_consumes_fixed_time ins ts in (let FStar.Pervasives.Native.Mktuple2 #_ #_ b ts' = _ in b ==> ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_Semantics_s.ins", "Prims.bool", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.nat", "Prims.unit", "Vale.X64.Leakage_s.is_explicit_leakage_free_lhs", "Vale.X64.Leakage_Helpers.__proj__AnalysisTaints__item__lts", "Prims.squash", "V...
[]
false
false
true
false
false
let lemma_push_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Push? ins) (ensures (let b, ts' = check_if_push_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts)) =
let b, ts' = check_if_push_consumes_fixed_time ins ts in if b then (let code = Ins ins in let lem (s1 s2: S.machine_state) (fuel: nat) : Lemma (requires is_explicit_leakage_free_lhs code fuel ts.lts ts'.lts s1 s2) (ensures is_explicit_leakage_free_rhs code fuel ts.lts ts'.lts s1 s2) [S...
false
Vale.X64.Leakage_Ins.fst
Vale.X64.Leakage_Ins.lemma_pxor_leakage_free
val lemma_pxor_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Instr? ins /\ S.AnnotatePxor? (BC.Instr?.annotation ins)) (ensures (let b, ts' = check_if_pxor_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts...
val lemma_pxor_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Instr? ins /\ S.AnnotatePxor? (BC.Instr?.annotation ins)) (ensures (let b, ts' = check_if_pxor_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts...
let lemma_pxor_leakage_free (ts:analysis_taints) (ins:S.ins) : Lemma (requires BC.Instr? ins /\ S.AnnotatePxor? (BC.Instr?.annotation ins)) (ensures ( let (b, ts') = check_if_pxor_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts )) = let...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage_Ins.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 812, "start_col": 0, "start_line": 798 }
module Vale.X64.Leakage_Ins open FStar.Mul open Vale.Arch.MachineHeap_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Instruction_s module BC = Vale.X64.Bytes_Code_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers unfold let (.[]) = Map.sel unfold let (.[]<-) =...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Lib.Set.fsti....
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 4, "initial_ifuel": 2, "max_fuel": 4, "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
ts: Vale.X64.Leakage_Helpers.analysis_taints -> ins: Vale.X64.Machine_Semantics_s.ins -> FStar.Pervasives.Lemma (requires Instr? ins /\ AnnotatePxor? (Instr?.annotation ins)) (ensures (let _ = Vale.X64.Leakage_Ins.check_if_pxor_consumes_fixed_time ins ts in (let FStar.Pervasives.Native.Mktuple...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_Semantics_s.ins", "Prims.list", "Vale.X64.Instruction_s.instr_out", "Vale.X64.Instruction_s.instr_operand", "Vale.X64.Instruction_s.flag_havoc", "Vale.X64.Instruction_s.instr_t", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instru...
[]
false
false
true
false
false
let lemma_pxor_leakage_free (ts: analysis_taints) (ins: S.ins) : Lemma (requires BC.Instr? ins /\ S.AnnotatePxor? (BC.Instr?.annotation ins)) (ensures (let b, ts' = check_if_pxor_consumes_fixed_time ins ts in b2t b ==> isConstantTime (Ins ins) ts.lts /\ isLeakageFree (Ins ins) ts.lts ts'.lts...
let BC.Instr (InstrTypeRecord #outs #args #havoc_flags iins) oprs (S.AnnotatePxor eq) = ins in let oprs:normal (instr_operands_t [inOut opXmm] [opXmm]) = coerce_to_normal #(instr_operands_t [inOut opXmm] [opXmm]) oprs in let o1, (o2, ()) = oprs in if o1 = o2 then Vale.Arch.Types.lemma_quad32_xor () else lemma_instr_l...
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_bounded_vlgen_payload_injective_2
val gaccessor_bounded_vlgen_payload_injective_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : Lemm...
val gaccessor_bounded_vlgen_payload_injective_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : Lemm...
let gaccessor_bounded_vlgen_payload_injective_2 (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl' : bytes) : Lemma (ensures (( k.parser_kind...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 91, "end_line": 576, "start_col": 0, "start_line": 553 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p -> sl: LowParse.Bytes.bytes -> sl': LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensure...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Bytes.bytes", "FStar.Classical.m...
[]
false
false
true
false
false
let gaccessor_bounded_vlgen_payload_injective_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : Lemm...
Classical.move_requires (gaccessor_bounded_vlgen_payload_injective_1 min max pk s sl) sl'
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.valid_bounded_vlgen_elim
val valid_bounded_vlgen_elim (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel #rel: _) (input: s...
val valid_bounded_vlgen_elim (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel #rel: _) (input: s...
let valid_bounded_vlgen_elim (vmin: der_length_t) (vmax: der_length_t { vmin <= vmax /\ vmax < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.me...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 43, "end_line": 168, "start_col": 0, "start_line": 130 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
vmin: LowParse.Spec.DER.der_length_t -> vmax: LowParse.Spec.DER.der_length_t{vmin <= vmax /\ vmax < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 vmin vmax) -> s: LowParse.Spec.Base.serializer p -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Slice.srel", "LowParse.Bytes.byte", ...
[]
true
false
true
false
false
let valid_bounded_vlgen_elim (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) #rrel #rel (input: ...
valid_facts (parse_bounded_vlgen (vmin) (vmax) pk s) h input pos; parse_bounded_vlgen_unfold (vmin) (vmax) pk s (bytes_of_slice_from h input pos); valid_facts pk h input pos; let pos1 = get_valid_pos pk h input pos in let len = contents pk h input pos in let pos2 = pos1 `U32.add` len in valid_facts (parse_fldata p (U32...
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.accessor_bounded_vlgen_payload
val accessor_bounded_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (jk: jumper pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind ...
val accessor_bounded_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (jk: jumper pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind ...
let accessor_bounded_vlgen_payload (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 ( min) ( max))) (jk: jumper pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) : Tot (...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 666, "start_col": 0, "start_line": 646 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "L...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> jk: LowParse.Low.Base.jumper pk -> s: LowParse.Spec.Base.serializer p { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> LowParse.Low.Base.a...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Low.Base.jumper", "LowParse.Spec.Base.serializer", "Prims.eq2", ...
[]
false
false
false
false
false
let accessor_bounded_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (jk: jumper pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind ...
fun #rrel #rel input pos -> let h = HST.get () in [@@ inline_let ]let _ = slice_access_eq h (gaccessor_bounded_vlgen_payload min max pk s) input pos; valid_facts (parse_bounded_vlgen min max pk s) h input pos; parse_bounded_vlgen_unfold_aux min max pk s (bytes_of_slice_from h input pos); valid_facts...
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_vlgen_payload
val gaccessor_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k /\ k.parser_kind_subki...
val gaccessor_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k /\ k.parser_kind_subki...
let gaccessor_vlgen_payload (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlgen_precond min max k /\ k.parser_kind_subkind == Some ParserStrong})...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 39, "end_line": 814, "start_col": 0, "start_line": 801 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "L...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p { LowParse.Spec.VLGen.parse_vlgen_precond min max k /\ Mkparser_kind'?.parser_ki...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLGen.parse_vlgen_precond", ...
[]
false
false
false
false
false
let gaccessor_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k /\ k.parser_...
Classical.forall_intro_2 (gaccessor_vlgen_payload_no_lookahead_2 min max pk s); Classical.forall_intro_2 (gaccessor_vlgen_payload_injective_2 min max pk s); gaccessor_prop_equiv (parse_vlgen min max pk s) p (clens_id _) (gaccessor_vlgen_payload' min max pk s); gaccessor_vlgen_payload' min max pk s
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_bounded_vlgen_payload_no_lookahead_2
val gaccessor_bounded_vlgen_payload_no_lookahead_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : L...
val gaccessor_bounded_vlgen_payload_no_lookahead_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : L...
let gaccessor_bounded_vlgen_payload_no_lookahead_2 (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl' : bytes) : Lemma (ensures (( k.parser_k...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 94, "end_line": 626, "start_col": 0, "start_line": 605 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p -> sl: LowParse.Bytes.bytes -> sl': LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensure...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Bytes.bytes", "FStar.Classical.m...
[]
false
false
true
false
false
let gaccessor_bounded_vlgen_payload_no_lookahead_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : L...
Classical.move_requires (gaccessor_bounded_vlgen_payload_no_lookahead_1 min max pk s sl) sl'
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.valid_bounded_vlgen_elim'
val valid_bounded_vlgen_elim' (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel #rel: _) (input: ...
val valid_bounded_vlgen_elim' (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel #rel: _) (input: ...
let valid_bounded_vlgen_elim' (vmin: der_length_t) (vmax: der_length_t { vmin <= vmax /\ vmax < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.m...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 62, "end_line": 128, "start_col": 0, "start_line": 93 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
vmin: LowParse.Spec.DER.der_length_t -> vmax: LowParse.Spec.DER.der_length_t{vmin <= vmax /\ vmax < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 vmin vmax) -> s: LowParse.Spec.Base.serializer p -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Slice.srel", "LowParse.Bytes.byte", ...
[]
true
false
true
false
false
let valid_bounded_vlgen_elim' (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) #rrel #rel (input:...
valid_facts (parse_bounded_vlgen (vmin) (vmax) pk s) h input pos; parse_bounded_vlgen_unfold_aux (vmin) (vmax) pk s (bytes_of_slice_from h input pos); valid_facts pk h input pos; let pos1 = get_valid_pos pk h input pos in let len = contents pk h input pos in valid_facts (parse_fldata_strong s (U32.v len)) h input pos1
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_vlgen_payload_no_lookahead_2
val gaccessor_vlgen_payload_no_lookahead_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) ...
val gaccessor_vlgen_payload_no_lookahead_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) ...
let gaccessor_vlgen_payload_no_lookahead_2 (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlgen_precond min max k }) (sl sl' : bytes) : Lemma ...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 86, "end_line": 799, "start_col": 0, "start_line": 778 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "L...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond min max k} -> sl: LowParse.Bytes.bytes -> sl': LowParse...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLGen.parse_vlgen_precond", ...
[]
false
false
true
false
false
let gaccessor_vlgen_payload_no_lookahead_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) ...
Classical.move_requires (gaccessor_vlgen_payload_no_lookahead_1 min max pk s sl) sl'
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.finalize_vlgen_exact
val finalize_vlgen_exact (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser ...
val finalize_vlgen_exact (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser ...
let finalize_vlgen_exact (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlge...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 38, "end_line": 379, "start_col": 0, "start_line": 332 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> sz32: FStar.UInt32.t -> wk: LowParse.Low.Base.leaf_writer_strong ssk -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond min max k} -> input: LowParse.Slice.slice rrel rel -> pos: FStar...
FStar.HyperStack.ST.Stack
[]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "FStar.UInt32.t", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Low.Base.leaf_...
[]
false
true
false
false
false
let finalize_vlgen_exact (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser ...
[@@ inline_let ]let len_payload = pos' `U32.sub` (pos `U32.add` sz32) in let h = HST.get () in [@@ inline_let ]let _ = serialized_length_eq s (contents_exact p h input (pos `U32.add` sz32) pos'); valid_exact_serialize s h input (pos `U32.add` sz32) pos' in let _ = wk len_payload input pos in let h = HST.get () in v...
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.validate_vlgen
val validate_vlgen (vmin: der_length_t) (min: U32.t{U32.v min == vmin}) (vmax: der_length_t) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (vmin) (vmax))) (vk: validator pk) (rk: leaf_reader pk) (#k: pars...
val validate_vlgen (vmin: der_length_t) (min: U32.t{U32.v min == vmin}) (vmax: der_length_t) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (vmin) (vmax))) (vk: validator pk) (rk: leaf_reader pk) (#k: pars...
let validate_vlgen (vmin: der_length_t) (min: U32.t { U32.v min == vmin } ) (vmax: der_length_t) (max: U32.t { U32.v max == vmax /\ U32.v min <= U32.v max } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (vmin) (vmax))) (vk: validator pk) (rk: leaf_reader pk) (#k: parser_kind) (#t: Type) (#p:...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 445, "start_col": 0, "start_line": 427 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
vmin: LowParse.Spec.DER.der_length_t -> min: FStar.UInt32.t{FStar.UInt32.v min == vmin} -> vmax: LowParse.Spec.DER.der_length_t -> max: FStar.UInt32.t{FStar.UInt32.v max == vmax /\ FStar.UInt32.v min <= FStar.UInt32.v max} -> vk: LowParse.Low.Base.validator pk -> rk: LowParse.Low.Base.leaf_read...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.DER.der_length_t", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Prims.op_LessThanOrEqual", "LowParse.Spec.DER.der_length_max", "FStar.UInt32.v", "LowParse.Spec.Base....
[]
false
false
false
false
false
let validate_vlgen (vmin: der_length_t) (min: U32.t{U32.v min == vmin}) (vmax: der_length_t) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (vmin) (vmax))) (vk: validator pk) (rk: leaf_reader pk) (#k: pars...
validate_synth (validate_bounded_vlgen vmin min vmax max vk rk s v) (synth_vlgen (U32.v min) (U32.v max) s) ()
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_bounded_vlgen_payload
val gaccessor_bounded_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong})...
val gaccessor_bounded_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong})...
let gaccessor_bounded_vlgen_payload (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) : Tot (gaccessor (parse_b...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 47, "end_line": 641, "start_col": 0, "start_line": 628 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "Prims.eq2", "FStar.Pervasives.Native.opti...
[]
false
false
false
false
false
let gaccessor_bounded_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong})...
Classical.forall_intro_2 (gaccessor_bounded_vlgen_payload_no_lookahead_2 min max pk s); Classical.forall_intro_2 (gaccessor_bounded_vlgen_payload_injective_2 min max pk s); gaccessor_prop_equiv (parse_bounded_vlgen min max pk s) p (clens_bounded_vldata_strong_payload min max s) (gaccessor_bounded_vlgen_payload' m...
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.valid_vlgen
val valid_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond (vmin) (vmax) k}) (#rrel...
val valid_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond (vmin) (vmax) k}) (#rrel...
let valid_vlgen (vmin: der_length_t) (vmax: der_length_t { vmin <= vmax /\ vmax < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlgen_precond (vmin) (vmax) k }) #rrel #rel (input: slice rrel rel)...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 7, "end_line": 329, "start_col": 0, "start_line": 295 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
vmin: LowParse.Spec.DER.der_length_t -> vmax: LowParse.Spec.DER.der_length_t{vmin <= vmax /\ vmax < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 vmin vmax) -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond vmin vmax k} -> input...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLGen.parse_vlgen_precond", "Low...
[]
true
false
true
false
false
let valid_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond (vmin) (vmax) k}) #rrel ...
valid_bounded_vlgen vmin vmax pk s input pos h; valid_synth h (parse_bounded_vlgen vmin vmax pk s) (synth_vlgen (vmin) (vmax) s) input pos
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.valid_bounded_vlgen
val valid_bounded_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel #rel: _) (input: slice ...
val valid_bounded_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel #rel: _) (input: slice ...
let valid_bounded_vlgen (vmin: der_length_t) (vmax: der_length_t { vmin <= vmax /\ vmax < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) : ...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 43, "end_line": 91, "start_col": 0, "start_line": 51 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
vmin: LowParse.Spec.DER.der_length_t -> vmax: LowParse.Spec.DER.der_length_t{vmin <= vmax /\ vmax < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 vmin vmax) -> s: LowParse.Spec.Base.serializer p -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Slice.srel", "LowParse.Bytes.byte", ...
[]
true
false
true
false
false
let valid_bounded_vlgen (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) #rrel #rel (input: slice...
valid_facts (parse_bounded_vlgen (vmin) (vmax) pk s) h input pos; parse_bounded_vlgen_unfold (vmin) (vmax) pk s (bytes_of_slice_from h input pos); valid_facts pk h input pos; let pos1 = get_valid_pos pk h input pos in let len = contents pk h input pos in let pos2 = pos1 `U32.add` len in let x = contents_exact p h input...
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.valid_bounded_vlgen'
val valid_bounded_vlgen' (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel #rel: _) (input: slice...
val valid_bounded_vlgen' (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (#rrel #rel: _) (input: slice...
let valid_bounded_vlgen' (vmin: der_length_t) (vmax: der_length_t { vmin <= vmax /\ vmax < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) #rrel #rel (input: slice rrel rel) (pos: U32.t) (h: HS.mem) :...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 62, "end_line": 49, "start_col": 0, "start_line": 14 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
vmin: LowParse.Spec.DER.der_length_t -> vmax: LowParse.Spec.DER.der_length_t{vmin <= vmax /\ vmax < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 vmin vmax) -> s: LowParse.Spec.Base.serializer p -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.DER.der_length_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Slice.srel", "LowParse.Bytes.byte", ...
[]
true
false
true
false
false
let valid_bounded_vlgen' (vmin: der_length_t) (vmax: der_length_t{vmin <= vmax /\ vmax < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (vmin) (vmax))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) #rrel #rel (input: slic...
valid_facts (parse_bounded_vlgen (vmin) (vmax) pk s) h input pos; parse_bounded_vlgen_unfold_aux (vmin) (vmax) pk s (bytes_of_slice_from h input pos); valid_facts pk h input pos; let pos1 = get_valid_pos pk h input pos in let len = contents pk h input pos in valid_facts (parse_fldata_strong s (U32.v len)) h input pos1
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_bounded_vlgen_payload_no_lookahead_1
val gaccessor_bounded_vlgen_payload_no_lookahead_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : L...
val gaccessor_bounded_vlgen_payload_no_lookahead_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : L...
let gaccessor_bounded_vlgen_payload_no_lookahead_1 (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl' : bytes) : Lemma (requires ( k.parser_k...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 27, "end_line": 603, "start_col": 0, "start_line": 578 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p -> sl: LowParse.Bytes.bytes -> sl': LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Bytes.bytes", "LowParse.Spec.Bas...
[]
true
false
true
false
false
let gaccessor_bounded_vlgen_payload_no_lookahead_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : L...
parse_bounded_vlgen_unfold min max pk s sl; parse_bounded_vlgen_unfold min max pk s sl'; parse_strong_prefix (parse_bounded_vlgen min max pk s) sl sl'; parse_injective pk sl sl'
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.finalize_vlgen
val finalize_vlgen (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser k t) ...
val finalize_vlgen (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser k t) ...
let finalize_vlgen (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlgen_prec...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 424, "start_col": 0, "start_line": 382 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> sz32: FStar.UInt32.t -> wk: LowParse.Low.Base.leaf_writer_strong ssk -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond min max k} -> input: LowParse.Slice.slice rrel rel -> pos: FStar...
FStar.HyperStack.ST.Stack
[]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "FStar.UInt32.t", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Low.Base.leaf_...
[]
false
true
false
false
false
let finalize_vlgen (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser k t) ...
let h = HST.get () in [@@ inline_let ]let _ = let pos_payload = pos `U32.add` sz32 in valid_pos_valid_exact p h input pos_payload pos' in finalize_vlgen_exact min max sz32 wk s input pos pos'
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_vlgen_payload_injective_2
val gaccessor_vlgen_payload_injective_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) (s...
val gaccessor_vlgen_payload_injective_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) (s...
let gaccessor_vlgen_payload_injective_2 (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlgen_precond min max k }) (sl sl' : bytes) : Lemma (en...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 83, "end_line": 749, "start_col": 0, "start_line": 726 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "L...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond min max k} -> sl: LowParse.Bytes.bytes -> sl': LowParse...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLGen.parse_vlgen_precond", ...
[]
false
false
true
false
false
let gaccessor_vlgen_payload_injective_2 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) (s...
Classical.move_requires (gaccessor_vlgen_payload_injective_1 min max pk s sl) sl'
false
C.String.fst
C.String.v
val v (s: t) : GTot (s:Seq.seq C.char{well_formed s})
val v (s: t) : GTot (s:Seq.seq C.char{well_formed s})
let v s = s.s
{ "file_name": "krmllib/C.String.fst", "git_rev": "da1e941b2fcb196aa5d1e34941aa00b4c67ac321", "git_url": "https://github.com/FStarLang/karamel.git", "project_name": "karamel" }
{ "end_col": 13, "end_line": 14, "start_col": 0, "start_line": 14 }
module C.String module U8 = FStar.UInt8 module U32 = FStar.UInt32 module B = LowStar.Buffer module M = LowStar.Modifies open FStar.HyperStack.ST [@@ no_auto_projectors] type t = | S: s:Seq.seq C.char { well_formed s } -> t
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "C.fs...
[ { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": true, "full_module": "LowStar.Modifies", "short_module": "M" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_modul...
{ "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: C.String.t -> Prims.GTot (s: FStar.Seq.Base.seq C.char {C.String.well_formed s})
Prims.GTot
[ "sometrivial" ]
[]
[ "C.String.t", "C.String.__proj__S__item__s", "FStar.Seq.Base.seq", "C.char", "C.String.well_formed" ]
[]
false
false
false
false
false
let v s =
s.s
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.finalize_bounded_vlgen_exact
val finalize_bounded_vlgen_exact (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p:...
val finalize_bounded_vlgen_exact (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p:...
let finalize_bounded_vlgen_exact (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 46, "end_line": 218, "start_col": 0, "start_line": 171 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> sz32: FStar.UInt32.t -> wk: LowParse.Low.Base.leaf_writer_strong ssk -> s: LowParse.Spec.Base.serializer p -> input: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> pos': FStar.UInt32.t -> FStar.Hyp...
FStar.HyperStack.ST.Stack
[]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "FStar.UInt32.t", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Low.Base.leaf_...
[]
false
true
false
false
false
let finalize_bounded_vlgen_exact (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (sz32: U32.t) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (#ssk: serializer pk) (wk: leaf_writer_strong ssk) (#k: parser_kind) (#t: Type) (#p:...
[@@ inline_let ]let len_payload = pos' `U32.sub` (pos `U32.add` sz32) in let h = HST.get () in [@@ inline_let ]let _ = serialized_length_eq s (contents_exact p h input (pos `U32.add` sz32) pos'); valid_exact_serialize s h input (pos `U32.add` sz32) pos' in let _ = wk len_payload input pos in let h = HST.get () in v...
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_vlgen_payload_no_lookahead_1
val gaccessor_vlgen_payload_no_lookahead_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) ...
val gaccessor_vlgen_payload_no_lookahead_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) ...
let gaccessor_vlgen_payload_no_lookahead_1 (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlgen_precond min max k }) (sl sl' : bytes) : Lemma ...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 27, "end_line": 776, "start_col": 0, "start_line": 751 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "L...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond min max k} -> sl: LowParse.Bytes.bytes -> sl': LowParse...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLGen.parse_vlgen_precond", ...
[]
true
false
true
false
false
let gaccessor_vlgen_payload_no_lookahead_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k}) ...
parse_vlgen_unfold min max pk s sl; parse_vlgen_unfold min max pk s sl'; parse_strong_prefix (parse_vlgen min max pk s) sl sl'; parse_injective pk sl sl'
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.gaccessor_bounded_vlgen_payload_injective_1
val gaccessor_bounded_vlgen_payload_injective_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : Lemm...
val gaccessor_bounded_vlgen_payload_injective_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : Lemm...
let gaccessor_bounded_vlgen_payload_injective_1 (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (pk: parser sk (bounded_int32 ( min) ( max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl' : bytes) : Lemma (requires ( k.parser_kind...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 27, "end_line": 551, "start_col": 0, "start_line": 524 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) -> s: LowParse.Spec.Base.serializer p -> sl: LowParse.Bytes.bytes -> sl': LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.Bytes.bytes", "LowParse.Spec.Bas...
[]
true
false
true
false
false
let gaccessor_bounded_vlgen_payload_injective_1 (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (pk: parser sk (bounded_int32 (min) (max))) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (sl sl': bytes) : Lemm...
parse_bounded_vlgen_unfold min max pk s sl; parse_bounded_vlgen_unfold min max pk s sl'; parse_injective (parse_bounded_vlgen min max pk s) sl sl'; parse_injective pk sl sl'
false
LowParse.Low.VLGen.fst
LowParse.Low.VLGen.accessor_vlgen_payload
val accessor_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (jk: jumper pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k ...
val accessor_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (jk: jumper pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond min max k ...
let accessor_vlgen_payload (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 ( min) ( max))) (jk: jumper pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { parse_vlgen_precond min max k /\ k.parser_kind_subkind == S...
{ "file_name": "src/lowparse/LowParse.Low.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 837, "start_col": 0, "start_line": 817 }
module LowParse.Low.VLGen include LowParse.Spec.VLGen include LowParse.Low.VLData module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 #reset-options "--z3cliopt smt.arith.nl=false" let valid_bounded_v...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.Low.VLData.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "F...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "L...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> jk: LowParse.Low.Base.jumper pk -> s: LowParse.Spec.Base.serializer p { LowParse.Spec.VLGen.parse_vlgen_precond min max k /\ Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native....
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Low.Base.jumper", "LowParse.Spec.Base.serializer", "LowParse.Spec...
[]
false
false
false
false
false
let accessor_vlgen_payload (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (min) (max))) (jk: jumper pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {parse_vlgen_precond ...
fun #rrel #rel input pos -> let h = HST.get () in [@@ inline_let ]let _ = slice_access_eq h (gaccessor_vlgen_payload min max pk s) input pos; valid_facts (parse_vlgen min max pk s) h input pos; parse_vlgen_unfold min max pk s (bytes_of_slice_from h input pos); valid_facts pk h input pos in jk in...
false