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.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.loc_includes_union_r
val loc_includes_union_r (s s1 s2:loc) : Lemma (requires (loc_includes s s1 /\ loc_includes s s2)) (ensures (loc_includes s (loc_union s1 s2))) [SMTPat (loc_includes s (loc_union s1 s2))]
val loc_includes_union_r (s s1 s2:loc) : Lemma (requires (loc_includes s s1 /\ loc_includes s s2)) (ensures (loc_includes s (loc_union s1 s2))) [SMTPat (loc_includes s (loc_union s1 s2))]
let loc_includes_union_r s s1 s2 = M.loc_includes_union_r s s1 s2
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 65, "end_line": 237, "start_col": 0, "start_line": 237 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Vale.PPC64LE.Memory.loc -> s1: Vale.PPC64LE.Memory.loc -> s2: Vale.PPC64LE.Memory.loc -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.loc_includes s s1 /\ Vale.PPC64LE.Memory.loc_includes s s2) (ensures Vale.PPC64LE.Memory.loc_includes s (Vale.PPC64LE.Memory.loc_union s1 s2)) [SMTPat (Val...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.loc", "LowStar.Monotonic.Buffer.loc_includes_union_r", "Prims.unit" ]
[]
true
false
true
false
false
let loc_includes_union_r s s1 s2 =
M.loc_includes_union_r s s1 s2
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.same_underlying_seq
val same_underlying_seq (#t: base_typ) (h1 h2: vale_heap) (b: buffer t) : Lemma (requires Seq.equal (DV.as_seq (_ih h1).hs (get_downview b.bsrc)) (DV.as_seq (_ih h2).hs (get_downview b.bsrc))) (ensures Seq.equal (buffer_as_seq h1 b) (buffer_as_seq h2 b))
val same_underlying_seq (#t: base_typ) (h1 h2: vale_heap) (b: buffer t) : Lemma (requires Seq.equal (DV.as_seq (_ih h1).hs (get_downview b.bsrc)) (DV.as_seq (_ih h2).hs (get_downview b.bsrc))) (ensures Seq.equal (buffer_as_seq h1 b) (buffer_as_seq h2 b))
let same_underlying_seq (#t:base_typ) (h1 h2:vale_heap) (b:buffer t) : Lemma (requires Seq.equal (DV.as_seq (_ih h1).hs (get_downview b.bsrc)) (DV.as_seq (_ih h2).hs (get_downview b.bsrc))) (ensures Seq.equal (buffer_as_seq h1 b) (buffer_as_seq h2 b)) = let db = get_downview b.bsrc in let rec aux (i:nat{i <= ...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 222, "start_col": 0, "start_line": 203 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap -> b: Vale.PPC64LE.Memory.buffer t -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.equal (LowStar.BufferView.Down.as_seq (InteropHeap?.hs (Vale.Arch.HeapImpl._ih h1)) (Vale.Interop.Type...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.buffer", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Vale.PPC64LE.Memory.buffer_length", "Prims.unit", "Prims.op_Subtraction", "Prims.l_and", "Prims.l_Forall", "Prims.op_LessThan", "Prims.eq2", ...
[]
false
false
true
false
false
let same_underlying_seq (#t: base_typ) (h1 h2: vale_heap) (b: buffer t) : Lemma (requires Seq.equal (DV.as_seq (_ih h1).hs (get_downview b.bsrc)) (DV.as_seq (_ih h2).hs (get_downview b.bsrc))) (ensures Seq.equal (buffer_as_seq h1 b) (buffer_as_seq h2 b)) =
let db = get_downview b.bsrc in let rec aux (i: nat{i <= buffer_length b}) : Lemma (requires (forall (j: nat{j < i}). Seq.index (buffer_as_seq h1 b) j == Seq.index (buffer_as_seq h2 b) j) /\ (Seq.equal (DV.as_seq (_ih h1).hs db) (DV.as_seq (_ih h2).hs db))) (ensures (...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.loc_includes_none
val loc_includes_none (s:loc) : Lemma (loc_includes s loc_none) [SMTPat (loc_includes s loc_none)]
val loc_includes_none (s:loc) : Lemma (loc_includes s loc_none) [SMTPat (loc_includes s loc_none)]
let loc_includes_none s = M.loc_includes_none s
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 240, "start_col": 0, "start_line": 240 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Vale.PPC64LE.Memory.loc -> FStar.Pervasives.Lemma (ensures Vale.PPC64LE.Memory.loc_includes s Vale.PPC64LE.Memory.loc_none) [SMTPat (Vale.PPC64LE.Memory.loc_includes s Vale.PPC64LE.Memory.loc_none)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.loc", "LowStar.Monotonic.Buffer.loc_includes_none", "Prims.unit" ]
[]
true
false
true
false
false
let loc_includes_none s =
M.loc_includes_none s
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.loc_includes_union_l_buffer
val loc_includes_union_l_buffer (#t:base_typ) (s1 s2:loc) (b:buffer t) : Lemma (requires (loc_includes s1 (loc_buffer b) \/ loc_includes s2 (loc_buffer b))) (ensures (loc_includes (loc_union s1 s2) (loc_buffer b))) [SMTPat (loc_includes (loc_union s1 s2) (loc_buffer b))]
val loc_includes_union_l_buffer (#t:base_typ) (s1 s2:loc) (b:buffer t) : Lemma (requires (loc_includes s1 (loc_buffer b) \/ loc_includes s2 (loc_buffer b))) (ensures (loc_includes (loc_union s1 s2) (loc_buffer b))) [SMTPat (loc_includes (loc_union s1 s2) (loc_buffer b))]
let loc_includes_union_l_buffer #t s1 s2 b = M.loc_includes_union_l s1 s2 (loc_buffer b)
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 88, "end_line": 239, "start_col": 0, "start_line": 239 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: Vale.PPC64LE.Memory.loc -> s2: Vale.PPC64LE.Memory.loc -> b: Vale.PPC64LE.Memory.buffer t -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.loc_includes s1 (Vale.PPC64LE.Memory.loc_buffer b) \/ Vale.PPC64LE.Memory.loc_includes s2 (Vale.PPC64LE.Memory.loc_buffer b)) (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.loc", "Vale.PPC64LE.Memory.buffer", "LowStar.Monotonic.Buffer.loc_includes_union_l", "Vale.PPC64LE.Memory.loc_buffer", "Prims.unit" ]
[]
true
false
true
false
false
let loc_includes_union_l_buffer #t s1 s2 b =
M.loc_includes_union_l s1 s2 (loc_buffer b)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.modifies_refl
val modifies_refl (s:loc) (h:vale_heap) : Lemma (modifies s h h) [SMTPat (modifies s h h)]
val modifies_refl (s:loc) (h:vale_heap) : Lemma (modifies s h h) [SMTPat (modifies s h h)]
let modifies_refl s h = M.modifies_refl s (_ih h).hs
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 241, "start_col": 0, "start_line": 241 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Vale.PPC64LE.Memory.loc -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (ensures Vale.PPC64LE.Memory.modifies s h h) [SMTPat (Vale.PPC64LE.Memory.modifies s h h)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.loc", "Vale.Arch.HeapImpl.vale_heap", "LowStar.Monotonic.Buffer.modifies_refl", "Vale.Interop.Heap_s.__proj__InteropHeap__item__hs", "Vale.Arch.HeapImpl._ih", "Prims.unit" ]
[]
true
false
true
false
false
let modifies_refl s h =
M.modifies_refl s (_ih h).hs
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.modifies_goal_directed_refl
val modifies_goal_directed_refl (s:loc) (h:vale_heap) : Lemma (modifies_goal_directed s h h) [SMTPat (modifies_goal_directed s h h)]
val modifies_goal_directed_refl (s:loc) (h:vale_heap) : Lemma (modifies_goal_directed s h h) [SMTPat (modifies_goal_directed s h h)]
let modifies_goal_directed_refl s h = M.modifies_refl s (_ih h).hs
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 242, "start_col": 0, "start_line": 242 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Vale.PPC64LE.Memory.loc -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (ensures Vale.PPC64LE.Memory.modifies_goal_directed s h h) [SMTPat (Vale.PPC64LE.Memory.modifies_goal_directed s h h)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.loc", "Vale.Arch.HeapImpl.vale_heap", "LowStar.Monotonic.Buffer.modifies_refl", "Vale.Interop.Heap_s.__proj__InteropHeap__item__hs", "Vale.Arch.HeapImpl._ih", "Prims.unit" ]
[]
true
false
true
false
false
let modifies_goal_directed_refl s h =
M.modifies_refl s (_ih h).hs
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.modifies_loc_includes
val modifies_loc_includes (s1:loc) (h h':vale_heap) (s2:loc) : Lemma (requires (modifies s2 h h' /\ loc_includes s1 s2)) (ensures (modifies s1 h h'))
val modifies_loc_includes (s1:loc) (h h':vale_heap) (s2:loc) : Lemma (requires (modifies s2 h h' /\ loc_includes s1 s2)) (ensures (modifies s1 h h'))
let modifies_loc_includes s1 h h' s2 = M.modifies_loc_includes s1 (_ih h).hs (_ih h').hs s2
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 91, "end_line": 243, "start_col": 0, "start_line": 243 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: Vale.PPC64LE.Memory.loc -> h: Vale.Arch.HeapImpl.vale_heap -> h': Vale.Arch.HeapImpl.vale_heap -> s2: Vale.PPC64LE.Memory.loc -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.modifies s2 h h' /\ Vale.PPC64LE.Memory.loc_includes s1 s2) (ensures Vale.PPC64LE.Memory.modifies s1 h ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.loc", "Vale.Arch.HeapImpl.vale_heap", "LowStar.Monotonic.Buffer.modifies_loc_includes", "Vale.Interop.Heap_s.__proj__InteropHeap__item__hs", "Vale.Arch.HeapImpl._ih", "Prims.unit" ]
[]
true
false
true
false
false
let modifies_loc_includes s1 h h' s2 =
M.modifies_loc_includes s1 (_ih h).hs (_ih h').hs s2
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.load_felem
val load_felem: #w:lanes -> f:felem w -> lo:uint64xN w -> hi:uint64xN w -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == LSeq.createi #Vec.pfelem w (fu...
val load_felem: #w:lanes -> f:felem w -> lo:uint64xN w -> hi:uint64xN w -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == LSeq.createi #Vec.pfelem w (fu...
let load_felem #w f lo hi = let (f0, f1, f2, f3, f4) = load_felem5 #w lo hi in load_felem5_lemma #w lo hi; f.(0ul) <- f0; f.(1ul) <- f1; f.(2ul) <- f2; f.(3ul) <- f3; f.(4ul) <- f4
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 439, "start_col": 0, "start_line": 432 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Field32xN.felem w -> lo: Hacl.Spec.Poly1305.Field32xN.uint64xN w -> hi: Hacl.Spec.Poly1305.Field32xN.uint64xN w -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Impl.Poly1305.Field32xN.felem", "Hacl.Spec.Poly1305.Field32xN.uint64xN", "Lib.Buffer.op_Array_Assignment", "FStar.UInt32.__uint_to_t", "Prims.unit", "Hacl.Spec.Poly1305.Field32xN.Lemmas.load_felem5_lemma", "Hacl.Spec.Poly1305.Field32xN.felem5", "Hacl.Spec....
[]
false
true
false
false
false
let load_felem #w f lo hi =
let f0, f1, f2, f3, f4 = load_felem5 #w lo hi in load_felem5_lemma #w lo hi; f.(0ul) <- f0; f.(1ul) <- f1; f.(2ul) <- f2; f.(3ul) <- f3; f.(4ul) <- f4
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.modifies_goal_directed_trans2
val modifies_goal_directed_trans2 (s12:loc) (h1 h2:vale_heap) (s13:loc) (h3:vale_heap) : Lemma (requires modifies s12 h1 h2 /\ modifies_goal_directed s13 h2 h3 /\ loc_includes s13 s12 ) (ensures (modifies_goal_directed s13 h1 h3)) [SMTPat (modifies s12 h1 h2); SMTPat (modifies_goal_directed s13 h1 h...
val modifies_goal_directed_trans2 (s12:loc) (h1 h2:vale_heap) (s13:loc) (h3:vale_heap) : Lemma (requires modifies s12 h1 h2 /\ modifies_goal_directed s13 h2 h3 /\ loc_includes s13 s12 ) (ensures (modifies_goal_directed s13 h1 h3)) [SMTPat (modifies s12 h1 h2); SMTPat (modifies_goal_directed s13 h1 h...
let modifies_goal_directed_trans2 s12 h1 h2 s13 h3 = modifies_goal_directed_trans s12 h1 h2 s13 h3
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 98, "end_line": 251, "start_col": 0, "start_line": 251 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s12: Vale.PPC64LE.Memory.loc -> h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap -> s13: Vale.PPC64LE.Memory.loc -> h3: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.modifies s12 h1 h2 /\ Vale.PPC64LE.Memory.modifies...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.loc", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.modifies_goal_directed_trans", "Prims.unit" ]
[]
true
false
true
false
false
let modifies_goal_directed_trans2 s12 h1 h2 s13 h3 =
modifies_goal_directed_trans s12 h1 h2 s13 h3
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.modifies_goal_directed_trans
val modifies_goal_directed_trans (s12:loc) (h1 h2:vale_heap) (s13:loc) (h3:vale_heap) : Lemma (requires modifies s12 h1 h2 /\ modifies_goal_directed s13 h2 h3 /\ loc_includes s13 s12 ) (ensures (modifies s13 h1 h3)) [SMTPat (modifies s12 h1 h2); SMTPat (modifies s13 h1 h3)]
val modifies_goal_directed_trans (s12:loc) (h1 h2:vale_heap) (s13:loc) (h3:vale_heap) : Lemma (requires modifies s12 h1 h2 /\ modifies_goal_directed s13 h2 h3 /\ loc_includes s13 s12 ) (ensures (modifies s13 h1 h3)) [SMTPat (modifies s12 h1 h2); SMTPat (modifies s13 h1 h3)]
let modifies_goal_directed_trans s12 h1 h2 s13 h3 = modifies_trans s12 h1 h2 s13 h3; modifies_loc_includes s13 h1 h3 (loc_union s12 s13); ()
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 249, "start_col": 0, "start_line": 246 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s12: Vale.PPC64LE.Memory.loc -> h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap -> s13: Vale.PPC64LE.Memory.loc -> h3: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.modifies s12 h1 h2 /\ Vale.PPC64LE.Memory.modifies...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.loc", "Vale.Arch.HeapImpl.vale_heap", "Prims.unit", "Vale.PPC64LE.Memory.modifies_loc_includes", "Vale.PPC64LE.Memory.loc_union", "Vale.PPC64LE.Memory.modifies_trans" ]
[]
true
false
true
false
false
let modifies_goal_directed_trans s12 h1 h2 s13 h3 =
modifies_trans s12 h1 h2 s13 h3; modifies_loc_includes s13 h1 h3 (loc_union s12 s13); ()
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.load_felems_le
val load_felems_le: #w:lanes -> f:felem w -> b:lbuffer uint8 (size w *! 16ul) -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == Vec.load_elem (...
val load_felems_le: #w:lanes -> f:felem w -> b:lbuffer uint8 (size w *! 16ul) -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == Vec.load_elem (...
let load_felems_le #w f b = match w with | 1 -> load_felem1_le f b | 2 -> load_felem2_le f b | 4 -> load_felem4_le f b
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 659, "start_col": 0, "start_line": 655 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Field32xN.felem w -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Lib.IntTypes.size w *! 16ul) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Impl.Poly1305.Field32xN.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.IntTypes.size", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Poly1305.Field32xN.load_felem1_le", "Prims.unit...
[]
false
true
false
false
false
let load_felems_le #w f b =
match w with | 1 -> load_felem1_le f b | 2 -> load_felem2_le f b | 4 -> load_felem4_le f b
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.load_felem4_le
val load_felem4_le: f:felem 4 -> b:lbuffer uint8 64ul -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == Vec.load_elem4 (as_seq h0 b))
val load_felem4_le: f:felem 4 -> b:lbuffer uint8 64ul -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == Vec.load_elem4 (as_seq h0 b))
let load_felem4_le f b = let h0 = ST.get () in let lo = vec_load_le U64 4 (sub b 0ul 32ul) in let hi = vec_load_le U64 4 (sub b 32ul 32ul) in let (o0, o1, o2, o3, o4) = load_felem5_4 lo hi in load_felem5_le (as_seq h0 b); f.(0ul) <- o0; f.(1ul) <- o1; f.(2ul) <- o2; f.(3ul) <- o3; f.(4ul) <- o4
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 640, "start_col": 0, "start_line": 630 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Field32xN.felem 4 -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Field32xN.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Spec.Poly1305.Field32xN.uint64xN", "Lib.Buffer.op_Array_Assignment", "Prims.unit", "Hacl.Spec.Poly1305.Field32xN.Lemmas.load_felem5_le", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Hac...
[]
false
true
false
false
false
let load_felem4_le f b =
let h0 = ST.get () in let lo = vec_load_le U64 4 (sub b 0ul 32ul) in let hi = vec_load_le U64 4 (sub b 32ul 32ul) in let o0, o1, o2, o3, o4 = load_felem5_4 lo hi in load_felem5_le (as_seq h0 b); f.(0ul) <- o0; f.(1ul) <- o1; f.(2ul) <- o2; f.(3ul) <- o3; f.(4ul) <- o4
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.writeable_mem64
val writeable_mem64 (ptr:int) (h:vale_heap) : GTot bool
val writeable_mem64 (ptr:int) (h:vale_heap) : GTot bool
let writeable_mem64 ptr h = writeable_mem (TUInt64) ptr h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 410, "start_col": 0, "start_line": 410 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
ptr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.writeable_mem", "Vale.Arch.HeapTypes_s.TUInt64", "Prims.bool" ]
[]
false
false
false
false
false
let writeable_mem64 ptr h =
writeable_mem (TUInt64) ptr h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.buffer_read
val buffer_read (#t:base_typ) (b:buffer t) (i:int) (h:vale_heap) : Ghost (base_typ_as_vale_type t) (requires True) (ensures (fun v -> 0 <= i /\ i < buffer_length b /\ buffer_readable h b ==> v == Seq.index (buffer_as_seq h b) i ))
val buffer_read (#t:base_typ) (b:buffer t) (i:int) (h:vale_heap) : Ghost (base_typ_as_vale_type t) (requires True) (ensures (fun v -> 0 <= i /\ i < buffer_length b /\ buffer_readable h b ==> v == Seq.index (buffer_as_seq h b) i ))
let buffer_read #t b i h = if i < 0 || i >= buffer_length b then default_of_typ t else Seq.index (buffer_as_seq h b) i
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 264, "start_col": 0, "start_line": 262 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Vale.PPC64LE.Memory.buffer t -> i: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.Ghost (Vale.PPC64LE.Memory.base_typ_as_vale_type t)
Prims.Ghost
[]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.buffer", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_BarBar", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "Vale.PPC64LE.Memory.buffer_length", "Vale.PPC64LE.Memory.default_of_typ", "Prims.bool", "FStar.Seq.Base.index", "...
[]
false
false
false
false
false
let buffer_read #t b i h =
if i < 0 || i >= buffer_length b then default_of_typ t else Seq.index (buffer_as_seq h b) i
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.default_of_typ
val default_of_typ (t: base_typ) : base_typ_as_vale_type t
val default_of_typ (t: base_typ) : base_typ_as_vale_type t
let default_of_typ (t:base_typ) : base_typ_as_vale_type t = allow_inversion base_typ; match t with | TUInt8 -> 0 | TUInt16 -> 0 | TUInt32 -> 0 | TUInt64 -> 0 | TUInt128 -> Vale.Def.Words_s.Mkfour #nat32 0 0 0 0
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 260, "start_col": 0, "start_line": 253 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Vale.Arch.HeapTypes_s.base_typ -> Vale.PPC64LE.Memory.base_typ_as_vale_type t
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Def.Words_s.Mkfour", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Memory.base_typ_as_vale_type", "Prims.unit", "FStar.Pervasives.allow_inversion" ]
[]
false
false
false
false
false
let default_of_typ (t: base_typ) : base_typ_as_vale_type t =
allow_inversion base_typ; match t with | TUInt8 -> 0 | TUInt16 -> 0 | TUInt32 -> 0 | TUInt64 -> 0 | TUInt128 -> Vale.Def.Words_s.Mkfour #nat32 0 0 0 0
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.load_mem64
val load_mem64 (ptr:int) (h:vale_heap) : GTot nat64
val load_mem64 (ptr:int) (h:vale_heap) : GTot nat64
let load_mem64 ptr h = if not (valid_mem64 ptr h) then 0 else load_mem (TUInt64) ptr h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 436, "start_col": 0, "start_line": 434 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
ptr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Vale.Def.Types_s.nat64
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_Negation", "Vale.PPC64LE.Memory.valid_mem64", "Prims.bool", "Vale.PPC64LE.Memory.load_mem", "Vale.Arch.HeapTypes_s.TUInt64", "Vale.Def.Types_s.nat64" ]
[]
false
false
false
false
false
let load_mem64 ptr h =
if not (valid_mem64 ptr h) then 0 else load_mem (TUInt64) ptr h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.store_mem64
val store_mem64 (ptr:int) (v:nat64) (h:vale_heap) : GTot vale_heap
val store_mem64 (ptr:int) (v:nat64) (h:vale_heap) : GTot vale_heap
let store_mem64 i v h = if not (valid_mem64 i h) then h else store_mem (TUInt64) i v h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 475, "start_col": 0, "start_line": 473 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "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
ptr: Prims.int -> v: Vale.Def.Types_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Vale.Arch.HeapImpl.vale_heap
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.int", "Vale.Def.Types_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_Negation", "Vale.PPC64LE.Memory.valid_mem64", "Prims.bool", "Vale.PPC64LE.Memory.store_mem", "Vale.Arch.HeapTypes_s.TUInt64" ]
[]
false
false
false
false
false
let store_mem64 i v h =
if not (valid_mem64 i h) then h else store_mem (TUInt64) i v h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.modifies_trans
val modifies_trans (s12:loc) (h1 h2:vale_heap) (s23:loc) (h3:vale_heap) : Lemma (requires (modifies s12 h1 h2 /\ modifies s23 h2 h3)) (ensures (modifies (loc_union s12 s23) h1 h3))
val modifies_trans (s12:loc) (h1 h2:vale_heap) (s23:loc) (h3:vale_heap) : Lemma (requires (modifies s12 h1 h2 /\ modifies s23 h2 h3)) (ensures (modifies (loc_union s12 s23) h1 h3))
let modifies_trans s12 h1 h2 s23 h3 = M.modifies_trans s12 (_ih h1).hs (_ih h2).hs s23 (_ih h3).hs
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 98, "end_line": 244, "start_col": 0, "start_line": 244 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s12: Vale.PPC64LE.Memory.loc -> h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap -> s23: Vale.PPC64LE.Memory.loc -> h3: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.modifies s12 h1 h2 /\ Vale.PPC64LE.Memory.modifies s23 h2 h3) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.loc", "Vale.Arch.HeapImpl.vale_heap", "LowStar.Monotonic.Buffer.modifies_trans", "Vale.Interop.Heap_s.__proj__InteropHeap__item__hs", "Vale.Arch.HeapImpl._ih", "Prims.unit" ]
[]
true
false
true
false
false
let modifies_trans s12 h1 h2 s23 h3 =
M.modifies_trans s12 (_ih h1).hs (_ih h2).hs s23 (_ih h3).hs
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.load_precompute_r
val load_precompute_r: #w:lanes -> p:precomp_r w -> r0:uint64 -> r1:uint64 -> Stack unit (requires fun h -> live h p) (ensures fun h0 _ h1 -> modifies (loc p) h0 h1 /\ load_precompute_r_post #w h1 p /\ (assert_norm (pow2 64 * pow2 64 = pow2 128); feval h1 (gsub p 0ul 5ul) ==...
val load_precompute_r: #w:lanes -> p:precomp_r w -> r0:uint64 -> r1:uint64 -> Stack unit (requires fun h -> live h p) (ensures fun h0 _ h1 -> modifies (loc p) h0 h1 /\ load_precompute_r_post #w h1 p /\ (assert_norm (pow2 64 * pow2 64 = pow2 128); feval h1 (gsub p 0ul 5ul) ==...
let load_precompute_r #w p r0 r1 = match w with | 1 -> load_precompute_r1 p r0 r1 | 2 -> load_precompute_r2 p r0 r1 | 4 -> load_precompute_r4 p r0 r1
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 570, "start_col": 0, "start_line": 566 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 2, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Hacl.Impl.Poly1305.Field32xN.precomp_r w -> r0: Lib.IntTypes.uint64 -> r1: Lib.IntTypes.uint64 -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Impl.Poly1305.Field32xN.precomp_r", "Lib.IntTypes.uint64", "Hacl.Impl.Poly1305.Field32xN.load_precompute_r1", "Prims.unit", "Hacl.Impl.Poly1305.Field32xN.load_precompute_r2", "Hacl.Impl.Poly1305.Field32xN.load_precompute_r4" ]
[]
false
true
false
false
false
let load_precompute_r #w p r0 r1 =
match w with | 1 -> load_precompute_r1 p r0 r1 | 2 -> load_precompute_r2 p r0 r1 | 4 -> load_precompute_r4 p r0 r1
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.index64_heap_aux
val index64_heap_aux (s: Seq.lseq UInt8.t 8) (heap: S.machine_heap) (ptr: int) : Lemma (requires forall (j: nat{j < 8}). UInt8.v (Seq.index s j) == heap.[ ptr + j ]) (ensures UInt64.v (Vale.Interop.Views.get64 s) == S.get_heap_val64 ptr heap)
val index64_heap_aux (s: Seq.lseq UInt8.t 8) (heap: S.machine_heap) (ptr: int) : Lemma (requires forall (j: nat{j < 8}). UInt8.v (Seq.index s j) == heap.[ ptr + j ]) (ensures UInt64.v (Vale.Interop.Views.get64 s) == S.get_heap_val64 ptr heap)
let index64_heap_aux (s:Seq.lseq UInt8.t 8) (heap:S.machine_heap) (ptr:int) : Lemma (requires forall (j:nat{j < 8}). UInt8.v (Seq.index s j) == heap.[ptr+j]) (ensures UInt64.v (Vale.Interop.Views.get64 s) == S.get_heap_val64 ptr heap) = let open Vale.Def.Words.Seq_s in reveal_opaque (`%seq_to_seq_four_LE) (seq_...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 105, "start_col": 0, "start_line": 98 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "Vale.Arch.MachineHeap_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "V...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 2, "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: FStar.Seq.Properties.lseq FStar.UInt8.t 8 -> heap: Vale.Arch.MachineHeap_s.machine_heap -> ptr: Prims.int -> FStar.Pervasives.Lemma (requires forall (j: Prims.nat{j < 8}). FStar.UInt8.v (FStar.Seq.Base.index s j) == heap.[ ptr + j ]) (ensures FStar.UInt64.v (Vale.Interop.Vi...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Properties.lseq", "FStar.UInt8.t", "Vale.Arch.MachineHeap_s.machine_heap", "Prims.int", "Vale.Def.Types_s.le_bytes_to_nat64_reveal", "Prims.unit", "Vale.Arch.MachineHeap_s.get_heap_val64_reveal", "Vale.Interop.Views.get64_reveal", "FStar.Pervasives.reveal_opaque", "FStar.Seq.Base.seq", ...
[]
true
false
true
false
false
let index64_heap_aux (s: Seq.lseq UInt8.t 8) (heap: S.machine_heap) (ptr: int) : Lemma (requires forall (j: nat{j < 8}). UInt8.v (Seq.index s j) == heap.[ ptr + j ]) (ensures UInt64.v (Vale.Interop.Views.get64 s) == S.get_heap_val64 ptr heap) =
let open Vale.Def.Words.Seq_s in reveal_opaque (`%seq_to_seq_four_LE) (seq_to_seq_four_LE #nat8); Vale.Interop.Views.get64_reveal (); S.get_heap_val64_reveal (); Vale.Def.Types_s.le_bytes_to_nat64_reveal ()
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.get_addr_in_ptr
val get_addr_in_ptr (t: base_typ) (n base addr i: nat) : Ghost nat (requires valid_offset t n base addr i) (ensures fun j -> base + scale_t t j == addr) (decreases %[n - i])
val get_addr_in_ptr (t: base_typ) (n base addr i: nat) : Ghost nat (requires valid_offset t n base addr i) (ensures fun j -> base + scale_t t j == addr) (decreases %[n - i])
let rec get_addr_in_ptr (t:base_typ) (n base addr:nat) (i:nat) : Ghost nat (requires valid_offset t n base addr i) (ensures fun j -> base + scale_t t j == addr) (decreases %[n - i]) = if base + scale_t t i = addr then i else get_addr_in_ptr t n base addr (i + 1)
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 338, "start_col": 0, "start_line": 332 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Vale.Arch.HeapTypes_s.base_typ -> n: Prims.nat -> base: Prims.nat -> addr: Prims.nat -> i: Prims.nat -> Prims.Ghost Prims.nat
Prims.Ghost
[ "" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims.op_Addition", "Vale.PPC64LE.Memory.scale_t", "Prims.bool", "Vale.PPC64LE.Memory.get_addr_in_ptr", "Vale.PPC64LE.Memory.valid_offset", "Prims.eq2" ]
[ "recursion" ]
false
false
false
false
false
let rec get_addr_in_ptr (t: base_typ) (n base addr i: nat) : Ghost nat (requires valid_offset t n base addr i) (ensures fun j -> base + scale_t t j == addr) (decreases %[n - i]) =
if base + scale_t t i = addr then i else get_addr_in_ptr t n base addr (i + 1)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_buffer
val valid_buffer (t: base_typ) (addr: int) (b: b8) (h: vale_heap) : GTot bool
val valid_buffer (t: base_typ) (addr: int) (b: b8) (h: vale_heap) : GTot bool
let valid_buffer (t:base_typ) (addr:int) (b:b8) (h:vale_heap) : GTot bool = DV.length (get_downview b.bsrc) % (view_n t) = 0 && addr_in_ptr #t addr b h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 342, "start_col": 0, "start_line": 340 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> b: Vale.PPC64LE.Memory.b8 -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_AmpAmp", "Prims.op_Equality", "Prims.op_Modulus", "LowStar.BufferView.Down.length", "FStar.UInt8.t", "Vale.Interop.Types.get_downview", "Vale.Interop.Types.__proj__Buffer__item__src...
[]
false
false
false
false
false
let valid_buffer (t: base_typ) (addr: int) (b: b8) (h: vale_heap) : GTot bool =
DV.length (get_downview b.bsrc) % (view_n t) = 0 && addr_in_ptr #t addr b h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.load_mem128
val load_mem128 (ptr:int) (h:vale_heap) : GTot quad32
val load_mem128 (ptr:int) (h:vale_heap) : GTot quad32
let load_mem128 ptr h = if not (valid_mem128 ptr h) then (default_of_typ (TUInt128)) else load_mem (TUInt128) ptr h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 495, "start_col": 0, "start_line": 493 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "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
ptr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Vale.Def.Types_s.quad32
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_Negation", "Vale.PPC64LE.Memory.valid_mem128", "Vale.PPC64LE.Memory.default_of_typ", "Vale.Arch.HeapTypes_s.TUInt128", "Prims.bool", "Vale.PPC64LE.Memory.load_mem", "Vale.Def.Types_s.quad32" ]
[]
false
false
false
false
false
let load_mem128 ptr h =
if not (valid_mem128 ptr h) then (default_of_typ (TUInt128)) else load_mem (TUInt128) ptr h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.store_mem128
val store_mem128 (ptr:int) (v:quad32) (h:vale_heap) : GTot vale_heap
val store_mem128 (ptr:int) (v:quad32) (h:vale_heap) : GTot vale_heap
let store_mem128 ptr v h = if not (valid_mem128 ptr h) then h else store_mem (TUInt128) ptr v h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 498, "start_col": 0, "start_line": 496 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "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
ptr: Prims.int -> v: Vale.Def.Types_s.quad32 -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Vale.Arch.HeapImpl.vale_heap
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.int", "Vale.Def.Types_s.quad32", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_Negation", "Vale.PPC64LE.Memory.valid_mem128", "Prims.bool", "Vale.PPC64LE.Memory.store_mem", "Vale.Arch.HeapTypes_s.TUInt128" ]
[]
false
false
false
false
false
let store_mem128 ptr v h =
if not (valid_mem128 ptr h) then h else store_mem (TUInt128) ptr v h
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.load_felem2_le
val load_felem2_le: f:felem 2 -> b:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == Vec.load_elem2 (as_seq h0 b))
val load_felem2_le: f:felem 2 -> b:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == Vec.load_elem2 (as_seq h0 b))
let load_felem2_le f b = let h0 = ST.get () in let b1 = vec_load_le U64 2 (sub b 0ul 16ul) in let b2 = vec_load_le U64 2 (sub b 16ul 16ul) in let lo = vec_interleave_low b1 b2 in let hi = vec_interleave_high b1 b2 in load_felem f lo hi; let h1 = ST.get () in vec_interleave_low_lemma2 b1 b2; vec_interl...
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 617, "start_col": 0, "start_line": 606 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Field32xN.felem 2 -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Field32xN.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.Sequence.eq_intro", "Hacl.Spec.Poly1305.Vec.pfelem", "Hacl.Impl.Poly1305.Field32xN.feval", "Hacl.Spec.Poly1305.Vec.load_elem2", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Prims.unit", ...
[]
false
true
false
false
false
let load_felem2_le f b =
let h0 = ST.get () in let b1 = vec_load_le U64 2 (sub b 0ul 16ul) in let b2 = vec_load_le U64 2 (sub b 16ul 16ul) in let lo = vec_interleave_low b1 b2 in let hi = vec_interleave_high b1 b2 in load_felem f lo hi; let h1 = ST.get () in vec_interleave_low_lemma2 b1 b2; vec_interleave_high_lemma2 b1 b2; uints_from_bytes_le...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.seq_upd
val seq_upd (#b: _) (h: HS.mem) (vb: UV.buffer b {UV.live h vb}) (i: nat{i < UV.length vb}) (x: b) : Lemma (Seq.equal (Seq.upd (UV.as_seq h vb) i x) (UV.as_seq (UV.upd h vb i x) vb))
val seq_upd (#b: _) (h: HS.mem) (vb: UV.buffer b {UV.live h vb}) (i: nat{i < UV.length vb}) (x: b) : Lemma (Seq.equal (Seq.upd (UV.as_seq h vb) i x) (UV.as_seq (UV.upd h vb i x) vb))
let seq_upd (#b:_) (h:HS.mem) (vb:UV.buffer b{UV.live h vb}) (i:nat{i < UV.length vb}) (x:b) : Lemma (Seq.equal (Seq.upd (UV.as_seq h vb) i x) (UV.as_seq (UV.upd h vb i x) vb)) = let old_s = UV.as_seq h vb in let new_s = UV.as_seq (UV.upd h vb i x) vb in let upd_s = Seq.upd...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 291, "start_col": 0, "start_line": 266 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> vb: LowStar.BufferView.Up.buffer b {LowStar.BufferView.Up.live h vb} -> i: Prims.nat{i < LowStar.BufferView.Up.length vb} -> x: b -> FStar.Pervasives.Lemma (ensures FStar.Seq.Base.equal (FStar.Seq.Base.upd (LowStar.BufferView.Up.as_seq h vb) i x) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.BufferView.Up.buffer", "LowStar.BufferView.Up.live", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "LowStar.BufferView.Up.length", "Prims.unit", "Prims.op_Subtraction", "FStar.Seq.Base.length", "Prims.l_and", "Prims.op_LessThanOrEqual", "Prims.l_Fo...
[]
false
false
true
false
false
let seq_upd (#b: _) (h: HS.mem) (vb: UV.buffer b {UV.live h vb}) (i: nat{i < UV.length vb}) (x: b) : Lemma (Seq.equal (Seq.upd (UV.as_seq h vb) i x) (UV.as_seq (UV.upd h vb i x) vb)) =
let old_s = UV.as_seq h vb in let new_s = UV.as_seq (UV.upd h vb i x) vb in let upd_s = Seq.upd old_s i x in let rec aux (k: nat) : Lemma (requires (k <= Seq.length upd_s /\ (forall (j: nat). j < k ==> Seq.index upd_s j == Seq.index new_s j))) (ensures (forall (j: nat). j < Seq.length ...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_mem
val valid_mem : t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.bool
let valid_mem (t:base_typ) addr (h:vale_heap) = valid_mem_aux t addr (_ih h).ptrs h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 359, "start_col": 0, "start_line": 359 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.valid_mem_aux", "Vale.Interop.Heap_s.__proj__InteropHeap__item__ptrs", "Vale.Arch.HeapImpl._ih", "Prims.bool" ]
[]
false
false
false
false
false
let valid_mem (t: base_typ) addr (h: vale_heap) =
valid_mem_aux t addr (_ih h).ptrs h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.buffer_write
val buffer_write (#t:base_typ) (b:buffer t) (i:int) (v:base_typ_as_vale_type t) (h:vale_heap) : Ghost vale_heap (requires buffer_readable h b /\ buffer_writeable b) (ensures (fun h' -> 0 <= i /\ i < buffer_length b /\ buffer_readable h b ==> modifies (loc_buffer b) h h' /\ get_heaplet_id h' == get_heapl...
val buffer_write (#t:base_typ) (b:buffer t) (i:int) (v:base_typ_as_vale_type t) (h:vale_heap) : Ghost vale_heap (requires buffer_readable h b /\ buffer_writeable b) (ensures (fun h' -> 0 <= i /\ i < buffer_length b /\ buffer_readable h b ==> modifies (loc_buffer b) h h' /\ get_heaplet_id h' == get_heapl...
let buffer_write #t b i v h = if i < 0 || i >= buffer_length b then h else begin let view = uint_view t in let db = get_downview b.bsrc in let bv = UV.mk_buffer db view in UV.upd_modifies (_ih h).hs bv i (v_of_typ t v); UV.upd_equal_domains (_ih h).hs bv i (v_of_typ t v); let hs' = UV.upd (_...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 308, "start_col": 0, "start_line": 293 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Vale.PPC64LE.Memory.buffer t -> i: Prims.int -> v: Vale.PPC64LE.Memory.base_typ_as_vale_type t -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.Ghost Vale.Arch.HeapImpl.vale_heap
Prims.Ghost
[]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.buffer", "Prims.int", "Vale.PPC64LE.Memory.base_typ_as_vale_type", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_BarBar", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "Vale.PPC64LE.Memory.buffer_length", "Prims.bool", "Prims.unit", "Pri...
[]
false
false
false
false
false
let buffer_write #t b i v h =
if i < 0 || i >= buffer_length b then h else let view = uint_view t in let db = get_downview b.bsrc in let bv = UV.mk_buffer db view in UV.upd_modifies (_ih h).hs bv i (v_of_typ t v); UV.upd_equal_domains (_ih h).hs bv i (v_of_typ t v); let hs' = UV.upd (_ih h).hs bv i (v_of_typ t v) in let ih' = InteropH...
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.load_felem_le
val load_felem_le: #w:lanes -> f:felem w -> b:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == LSeq.create w (BSeq.nat_from...
val load_felem_le: #w:lanes -> f:felem w -> b:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ felem_less h1 f (pow2 128) /\ feval h1 f == LSeq.create w (BSeq.nat_from...
let load_felem_le #w f b = let lo = uint_from_bytes_le #U64 (sub b 0ul 8ul) in let hi = uint_from_bytes_le #U64 (sub b 8ul 8ul) in let f0 = vec_load lo w in let f1 = vec_load hi w in let h0 = ST.get () in load_felem f f0 f1; let h1 = ST.get () in uint_from_bytes_le_lemma (as_seq h0 b); LSeq.eq_intro (...
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 698, "start_col": 0, "start_line": 689 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Field32xN.felem w -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Impl.Poly1305.Field32xN.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.Sequence.eq_intro", "Hacl.Spec.Poly1305.Vec.pfelem", "Hacl.Impl.Poly1305.Field32xN.feval", "Lib.Sequence.create", "Lib.ByteSequence.nat_from_byte...
[]
false
true
false
false
false
let load_felem_le #w f b =
let lo = uint_from_bytes_le #U64 (sub b 0ul 8ul) in let hi = uint_from_bytes_le #U64 (sub b 8ul 8ul) in let f0 = vec_load lo w in let f1 = vec_load hi w in let h0 = ST.get () in load_felem f f0 f1; let h1 = ST.get () in uint_from_bytes_le_lemma (as_seq h0 b); LSeq.eq_intro (feval h1 f) (LSeq.create w (BSeq.nat_from_byt...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_taint_b8
val valid_taint_b8 (b: b8) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0
val valid_taint_b8 (b: b8) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0
let valid_taint_b8 (b:b8) (h:vale_heap) (mt:memtaint) (tn:taint) : GTot prop0 = let addr = (_ih h).addrs b in (forall (i:int).{:pattern (mt.[i])} addr <= i /\ i < addr + DV.length (get_downview b.bsrc) ==> mt.[i] == tn)
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 565, "start_col": 0, "start_line": 562 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
b: Vale.PPC64LE.Memory.b8 -> h: Vale.Arch.HeapImpl.vale_heap -> mt: Vale.PPC64LE.Memory.memtaint -> tn: Vale.Arch.HeapTypes_s.taint -> Prims.GTot Vale.Def.Prop_s.prop0
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.memtaint", "Vale.Arch.HeapTypes_s.taint", "Prims.l_Forall", "Prims.int", "Prims.l_imp", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.op_Addition", "LowStar.BufferView.Down.le...
[]
false
false
false
false
false
let valid_taint_b8 (b: b8) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0 =
let addr = (_ih h).addrs b in (forall (i: int). {:pattern (mt.[ i ])} addr <= i /\ i < addr + DV.length (get_downview b.bsrc) ==> mt.[ i ] == tn)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_taint_bufs
val valid_taint_bufs : mem: Vale.Arch.HeapImpl.vale_heap -> memTaint: Vale.PPC64LE.Memory.memtaint -> ps: Prims.list Vale.PPC64LE.Memory.b8 -> ts: (_: Vale.PPC64LE.Memory.b8 -> Prims.GTot Vale.Arch.HeapTypes_s.taint) -> Prims.logical
let valid_taint_bufs (mem:vale_heap) (memTaint:memtaint) (ps:list b8) (ts:b8 -> GTot taint) = forall b.{:pattern List.memP b ps} List.memP b ps ==> valid_taint_b8 b mem memTaint (ts b)
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 92, "end_line": 635, "start_col": 0, "start_line": 634 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
mem: Vale.Arch.HeapImpl.vale_heap -> memTaint: Vale.PPC64LE.Memory.memtaint -> ps: Prims.list Vale.PPC64LE.Memory.b8 -> ts: (_: Vale.PPC64LE.Memory.b8 -> Prims.GTot Vale.Arch.HeapTypes_s.taint) -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.memtaint", "Prims.list", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapTypes_s.taint", "Prims.l_Forall", "Prims.l_imp", "FStar.List.Tot.Base.memP", "Vale.PPC64LE.Memory.valid_taint_b8", "Prims.logical" ]
[]
false
false
false
false
true
let valid_taint_bufs (mem: vale_heap) (memTaint: memtaint) (ps: list b8) (ts: (b8 -> GTot taint)) =
forall b. {:pattern List.memP b ps} List.memP b ps ==> valid_taint_b8 b mem memTaint (ts b)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.same_memTaint128
val same_memTaint128 (b:buffer128) (mem0:vale_heap) (mem1:vale_heap) (memtaint0:memtaint) (memtaint1:memtaint) : Lemma (requires (modifies (loc_buffer b) mem0 mem1 /\ (forall p.{:pattern Map.sel memtaint0 p \/ Map.sel memtaint1 p} Map.sel memtaint0 p == Map.sel memtaint1 p))) (ensures memt...
val same_memTaint128 (b:buffer128) (mem0:vale_heap) (mem1:vale_heap) (memtaint0:memtaint) (memtaint1:memtaint) : Lemma (requires (modifies (loc_buffer b) mem0 mem1 /\ (forall p.{:pattern Map.sel memtaint0 p \/ Map.sel memtaint1 p} Map.sel memtaint0 p == Map.sel memtaint1 p))) (ensures memt...
let same_memTaint128 b mem0 mem1 memtaint0 memtaint1 = same_memTaint (TUInt128) b mem0 mem1 memtaint0 memtaint1
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 610, "start_col": 0, "start_line": 609 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
b: Vale.PPC64LE.Memory.buffer128 -> mem0: Vale.Arch.HeapImpl.vale_heap -> mem1: Vale.Arch.HeapImpl.vale_heap -> memtaint0: Vale.PPC64LE.Memory.memtaint -> memtaint1: Vale.PPC64LE.Memory.memtaint -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.modifies (Vale.PPC64LE.Memory.lo...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.buffer128", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.memtaint", "Vale.PPC64LE.Memory.same_memTaint", "Vale.Arch.HeapTypes_s.TUInt128", "Prims.unit" ]
[]
true
false
true
false
false
let same_memTaint128 b mem0 mem1 memtaint0 memtaint1 =
same_memTaint (TUInt128) b mem0 mem1 memtaint0 memtaint1
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_taint_buf
val valid_taint_buf (#t:base_typ) (b:buffer t) (h:vale_heap) (mt:memtaint) (tn:taint) : GTot prop0
val valid_taint_buf (#t:base_typ) (b:buffer t) (h:vale_heap) (mt:memtaint) (tn:taint) : GTot prop0
let valid_taint_buf #t b h mt tn = valid_taint_b8 b h mt tn
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 568, "start_col": 0, "start_line": 567 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
b: Vale.PPC64LE.Memory.buffer t -> h: Vale.Arch.HeapImpl.vale_heap -> mt: Vale.PPC64LE.Memory.memtaint -> tn: Vale.Arch.HeapTypes_s.taint -> Prims.GTot Vale.Def.Prop_s.prop0
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.memtaint", "Vale.Arch.HeapTypes_s.taint", "Vale.PPC64LE.Memory.valid_taint_b8", "Vale.Def.Prop_s.prop0" ]
[]
false
false
false
false
false
let valid_taint_buf #t b h mt tn =
valid_taint_b8 b h mt tn
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.fmul_r
val fmul_r: #w:lanes -> out:felem w -> f1:felem w -> r:felem w -> r5:felem w -> Stack unit (requires fun h -> live h out /\ live h f1 /\ live h r /\ live h r5 /\ felem_fits h f1 (3,3,3,3,3) /\ felem_fits h r (2,2,2,2,2) /\ felem_fits h r5 (10,10,10,10,10) /\ as_tup5...
val fmul_r: #w:lanes -> out:felem w -> f1:felem w -> r:felem w -> r5:felem w -> Stack unit (requires fun h -> live h out /\ live h f1 /\ live h r /\ live h r5 /\ felem_fits h f1 (3,3,3,3,3) /\ felem_fits h r (2,2,2,2,2) /\ felem_fits h r5 (10,10,10,10,10) /\ as_tup5...
let fmul_r #w out f1 r r5 = let r0 = r.(0ul) in let r1 = r.(1ul) in let r2 = r.(2ul) in let r3 = r.(3ul) in let r4 = r.(4ul) in let r50 = r5.(0ul) in let r51 = r5.(1ul) in let r52 = r5.(2ul) in let r53 = r5.(3ul) in let r54 = r5.(4ul) in let f10 = f1.(0ul) in let f11 = f1.(1ul) in let f12 = ...
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 290, "start_col": 0, "start_line": 264 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "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
out: Hacl.Impl.Poly1305.Field32xN.felem w -> f1: Hacl.Impl.Poly1305.Field32xN.felem w -> r: Hacl.Impl.Poly1305.Field32xN.felem w -> r5: Hacl.Impl.Poly1305.Field32xN.felem w -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Impl.Poly1305.Field32xN.felem", "Hacl.Spec.Poly1305.Field32xN.uint64xN", "Lib.Buffer.op_Array_Assignment", "FStar.UInt32.__uint_to_t", "Prims.unit", "Hacl.Spec.Poly1305.Field32xN.felem5", "Hacl.Spec.Poly1305.Field32xN.fmul_r5", "FStar.Pervasives.Native.Mkt...
[]
false
true
false
false
false
let fmul_r #w out f1 r r5 =
let r0 = r.(0ul) in let r1 = r.(1ul) in let r2 = r.(2ul) in let r3 = r.(3ul) in let r4 = r.(4ul) in let r50 = r5.(0ul) in let r51 = r5.(1ul) in let r52 = r5.(2ul) in let r53 = r5.(3ul) in let r54 = r5.(4ul) in let f10 = f1.(0ul) in let f11 = f1.(1ul) in let f12 = f1.(2ul) in let f13 = f1.(3ul) in let f14 = f1.(4ul) in ...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.same_memTaint64
val same_memTaint64 (b:buffer64) (mem0:vale_heap) (mem1:vale_heap) (memtaint0:memtaint) (memtaint1:memtaint) : Lemma (requires (modifies (loc_buffer b) mem0 mem1 /\ (forall p.{:pattern Map.sel memtaint0 p \/ Map.sel memtaint1 p} Map.sel memtaint0 p == Map.sel memtaint1 p))) (ensures memtai...
val same_memTaint64 (b:buffer64) (mem0:vale_heap) (mem1:vale_heap) (memtaint0:memtaint) (memtaint1:memtaint) : Lemma (requires (modifies (loc_buffer b) mem0 mem1 /\ (forall p.{:pattern Map.sel memtaint0 p \/ Map.sel memtaint1 p} Map.sel memtaint0 p == Map.sel memtaint1 p))) (ensures memtai...
let same_memTaint64 b mem0 mem1 memtaint0 memtaint1 = same_memTaint (TUInt64) b mem0 mem1 memtaint0 memtaint1
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 607, "start_col": 0, "start_line": 606 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
b: Vale.PPC64LE.Memory.buffer64 -> mem0: Vale.Arch.HeapImpl.vale_heap -> mem1: Vale.Arch.HeapImpl.vale_heap -> memtaint0: Vale.PPC64LE.Memory.memtaint -> memtaint1: Vale.PPC64LE.Memory.memtaint -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.modifies (Vale.PPC64LE.Memory.loc...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.buffer64", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.memtaint", "Vale.PPC64LE.Memory.same_memTaint", "Vale.Arch.HeapTypes_s.TUInt64", "Prims.unit" ]
[]
true
false
true
false
false
let same_memTaint64 b mem0 mem1 memtaint0 memtaint1 =
same_memTaint (TUInt64) b mem0 mem1 memtaint0 memtaint1
false
LL.fst
LL.ewp_monotonic
val ewp_monotonic (#a: Type) (wp: ewp_t0 a) : Type0
val ewp_monotonic (#a: Type) (wp: ewp_t0 a) : Type0
let ewp_monotonic (#a:Type) (wp:ewp_t0 a) : Type0 = forall p q. (forall x. p x ==> q x) ==> (wp p ==> wp q)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 39, "start_col": 0, "start_line": 37 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "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
wp: LL.ewp_t0 a -> Type0
Prims.Tot
[ "total" ]
[]
[ "LL.ewp_t0", "Prims.l_Forall", "FStar.Pervasives.Native.option", "Prims.logical", "Prims.l_imp" ]
[]
false
false
false
true
true
let ewp_monotonic (#a: Type) (wp: ewp_t0 a) : Type0 =
forall p q. (forall x. p x ==> q x) ==> (wp p ==> wp q)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.find_writeable_buffer
val find_writeable_buffer : t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot (FStar.Pervasives.Native.option (Vale.PPC64LE.Memory.buffer t))
let find_writeable_buffer (t:base_typ) (addr:int) (h:vale_heap) = find_writeable_buffer_aux t addr (_ih h).ptrs h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 425, "start_col": 0, "start_line": 424 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot (FStar.Pervasives.Native.option (Vale.PPC64LE.Memory.buffer t))
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.find_writeable_buffer_aux", "Vale.Interop.Heap_s.__proj__InteropHeap__item__ptrs", "Vale.Arch.HeapImpl._ih", "FStar.Pervasives.Native.option", "Vale.PPC64LE.Memory.buffer" ]
[]
false
false
false
false
false
let find_writeable_buffer (t: base_typ) (addr: int) (h: vale_heap) =
find_writeable_buffer_aux t addr (_ih h).ptrs h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.find_valid_buffer_ps
val find_valid_buffer_ps (t: base_typ) (addr: int) (h1 h2: vale_heap) : Lemma (requires (_ih h1).ptrs == (_ih h2).ptrs) (ensures find_valid_buffer t addr h1 == find_valid_buffer t addr h2)
val find_valid_buffer_ps (t: base_typ) (addr: int) (h1 h2: vale_heap) : Lemma (requires (_ih h1).ptrs == (_ih h2).ptrs) (ensures find_valid_buffer t addr h1 == find_valid_buffer t addr h2)
let find_valid_buffer_ps (t:base_typ) (addr:int) (h1:vale_heap) (h2:vale_heap) : Lemma (requires (_ih h1).ptrs == (_ih h2).ptrs) (ensures find_valid_buffer t addr h1 == find_valid_buffer t addr h2) = find_valid_buffer_aux_ps t addr (_ih h1).ptrs h1 h2
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 387, "start_col": 0, "start_line": 383 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires InteropHeap?.ptrs (Vale.Arch.HeapImpl._ih h1) == InteropHeap?.ptrs (Vale.Arch.HeapImpl._ih h2)) (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.find_valid_buffer_aux_ps", "Vale.Interop.Heap_s.__proj__InteropHeap__item__ptrs", "Vale.Arch.HeapImpl._ih", "Prims.unit", "Prims.eq2", "Prims.list", "Vale.Interop.Types.b8", "Prims.l_or", "Vale....
[]
true
false
true
false
false
let find_valid_buffer_ps (t: base_typ) (addr: int) (h1 h2: vale_heap) : Lemma (requires (_ih h1).ptrs == (_ih h2).ptrs) (ensures find_valid_buffer t addr h1 == find_valid_buffer t addr h2) =
find_valid_buffer_aux_ps t addr (_ih h1).ptrs h1 h2
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.writeable_mem
val writeable_mem : t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.bool
let writeable_mem (t:base_typ) addr (h:vale_heap) = writeable_mem_aux t addr (_ih h).ptrs h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 91, "end_line": 409, "start_col": 0, "start_line": 409 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.writeable_mem_aux", "Vale.Interop.Heap_s.__proj__InteropHeap__item__ptrs", "Vale.Arch.HeapImpl._ih", "Prims.bool" ]
[]
false
false
false
false
false
let writeable_mem (t: base_typ) addr (h: vale_heap) =
writeable_mem_aux t addr (_ih h).ptrs h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.find_valid_buffer
val find_valid_buffer : t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot (FStar.Pervasives.Native.option (Vale.PPC64LE.Memory.buffer t))
let find_valid_buffer (t:base_typ) (addr:int) (h:vale_heap) = find_valid_buffer_aux t addr (_ih h).ptrs h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 105, "end_line": 373, "start_col": 0, "start_line": 373 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot (FStar.Pervasives.Native.option (Vale.PPC64LE.Memory.buffer t))
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.find_valid_buffer_aux", "Vale.Interop.Heap_s.__proj__InteropHeap__item__ptrs", "Vale.Arch.HeapImpl._ih", "FStar.Pervasives.Native.option", "Vale.PPC64LE.Memory.buffer" ]
[]
false
false
false
false
false
let find_valid_buffer (t: base_typ) (addr: int) (h: vale_heap) =
find_valid_buffer_aux t addr (_ih h).ptrs h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_mem_aux
val valid_mem_aux (t: base_typ) (addr: _) (ps: list b8) (h: vale_heap) : Ghost bool (requires sub_list ps (_ih h).ptrs) (ensures fun b -> b <==> (exists (x: buffer t). {:pattern (List.memP x ps)\/(valid_buffer t addr x h)} List.memP x ps /\ valid_buffer t addr x...
val valid_mem_aux (t: base_typ) (addr: _) (ps: list b8) (h: vale_heap) : Ghost bool (requires sub_list ps (_ih h).ptrs) (ensures fun b -> b <==> (exists (x: buffer t). {:pattern (List.memP x ps)\/(valid_buffer t addr x h)} List.memP x ps /\ valid_buffer t addr x...
let rec valid_mem_aux (t:base_typ) addr (ps:list b8) (h:vale_heap) : Ghost bool (requires sub_list ps (_ih h).ptrs) (ensures fun b -> b <==> (exists (x:buffer t). {:pattern (List.memP x ps) \/ (valid_buffer t addr x h)} List.memP x ps /\ valid_buffer t addr x h)) = match ps with | [] -> false | a:...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 358, "start_col": 0, "start_line": 350 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> ps: Prims.list Vale.PPC64LE.Memory.b8 -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.Ghost Prims.bool
Prims.Ghost
[]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Prims.list", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_BarBar", "Vale.PPC64LE.Memory.valid_buffer", "Vale.PPC64LE.Memory.valid_mem_aux", "Prims.bool", "Vale.PPC64LE.Memory.sub_list", "Vale.Interop.Heap_s.__proj__InteropHea...
[ "recursion" ]
false
false
false
false
false
let rec valid_mem_aux (t: base_typ) addr (ps: list b8) (h: vale_heap) : Ghost bool (requires sub_list ps (_ih h).ptrs) (ensures fun b -> b <==> (exists (x: buffer t). {:pattern (List.memP x ps)\/(valid_buffer t addr x h)} List.memP x ps /\ valid_buffer t addr x ...
match ps with | [] -> false | a :: q -> valid_buffer t addr a h || valid_mem_aux t addr q h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.layout_old_heap
val layout_old_heap (layout:vale_heap_layout_inner) : vale_heap
val layout_old_heap (layout:vale_heap_layout_inner) : vale_heap
let layout_old_heap layout = layout.vl_old_heap
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 754, "start_col": 0, "start_line": 754 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
layout: Vale.Arch.HeapImpl.vale_heap_layout_inner -> Vale.Arch.HeapImpl.vale_heap
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap_layout_inner", "Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout_inner__item__vl_old_heap", "Vale.Arch.HeapImpl.vale_heap" ]
[]
false
false
false
true
false
let layout_old_heap layout =
layout.vl_old_heap
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.is_initial_heap
val is_initial_heap (layout:vale_heap_layout) (h:vale_heap) : prop0
val is_initial_heap (layout:vale_heap_layout) (h:vale_heap) : prop0
let is_initial_heap layout h = h == layout.vl_inner.vl_old_heap /\ not layout.vl_inner.vl_heaplets_initialized
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 740, "start_col": 0, "start_line": 738 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
layout: Vale.Arch.HeapImpl.vale_heap_layout -> h: Vale.Arch.HeapImpl.vale_heap -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap_layout", "Vale.Arch.HeapImpl.vale_heap", "Prims.l_and", "Prims.eq2", "Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout_inner__item__vl_old_heap", "Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout__item__vl_inner", "Prims.b2t", "Prims.op_Negation", "Vale.Arch.HeapImpl.__proj__...
[]
false
false
false
true
false
let is_initial_heap layout h =
h == layout.vl_inner.vl_old_heap /\ not layout.vl_inner.vl_heaplets_initialized
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.length_t_eq
val length_t_eq (t: base_typ) (b: buffer t) : Lemma (DV.length (get_downview b.bsrc) == buffer_length b * (view_n t))
val length_t_eq (t: base_typ) (b: buffer t) : Lemma (DV.length (get_downview b.bsrc) == buffer_length b * (view_n t))
let length_t_eq (t:base_typ) (b:buffer t) : Lemma (DV.length (get_downview b.bsrc) == buffer_length b * (view_n t)) = let db = get_downview b.bsrc in let ub = UV.mk_buffer db (uint_view t) in UV.length_eq ub; assert (buffer_length b == DV.length db / (view_n t)); FStar.Math.Lib.lemma_div_def (DV.length db) ...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 444, "start_col": 0, "start_line": 438 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> b: Vale.PPC64LE.Memory.buffer t -> FStar.Pervasives.Lemma (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b)) == Vale.PPC64LE.Memory.buffer_length b * Vale.Interop.Types.view_n t)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.buffer", "FStar.Math.Lib.lemma_div_def", "LowStar.BufferView.Down.length", "FStar.UInt8.t", "Vale.Interop.Types.view_n", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Vale.PPC64LE.Memory.buffer_length", "Prims.op_Division", "...
[]
true
false
true
false
false
let length_t_eq (t: base_typ) (b: buffer t) : Lemma (DV.length (get_downview b.bsrc) == buffer_length b * (view_n t)) =
let db = get_downview b.bsrc in let ub = UV.mk_buffer db (uint_view t) in UV.length_eq ub; assert (buffer_length b == DV.length db / (view_n t)); FStar.Math.Lib.lemma_div_def (DV.length db) (view_n t)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.mem_inv
val mem_inv (h:vale_full_heap) : prop0
val mem_inv (h:vale_full_heap) : prop0
let mem_inv h = h.vf_heap.heapletId == None /\ inv_heaplet_ids h.vf_heaplets /\ (if h.vf_layout.vl_inner.vl_heaplets_initialized then inv_heaplets h.vf_layout.vl_inner h.vf_heap h.vf_heaplets h.vf_layout.vl_taint else h.vf_heaplets == empty_vale_heaplets h.vf_layout.vl_inner.vl_old_hea...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 751, "start_col": 0, "start_line": 742 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
h: Vale.Arch.HeapImpl.vale_full_heap -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_full_heap", "Prims.l_and", "Prims.eq2", "FStar.Pervasives.Native.option", "Vale.Arch.HeapImpl.heaplet_id", "Vale.Arch.HeapImpl.__proj__ValeHeap__item__heapletId", "Vale.Arch.HeapImpl.__proj__Mkvale_full_heap__item__vf_heap", "FStar.Pervasives.Native.None", "Vale.PPC64LE.Memo...
[]
false
false
false
true
false
let mem_inv h =
h.vf_heap.heapletId == None /\ inv_heaplet_ids h.vf_heaplets /\ (if h.vf_layout.vl_inner.vl_heaplets_initialized then inv_heaplets h.vf_layout.vl_inner h.vf_heap h.vf_heaplets h.vf_layout.vl_taint else h.vf_heaplets == empty_vale_heaplets h.vf_layout.vl_inner.vl_old_heap)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.inv_buffer_info
val inv_buffer_info : bi: Vale.Arch.HeapImpl.buffer_info -> owners: (_: Vale.Arch.HeapImpl.heaplet_id -> FStar.Set.set Prims.int) -> h: Vale.Arch.HeapImpl.vale_heap -> hs: Vale.Arch.HeapImpl.vale_heaplets -> mt: Vale.Arch.HeapTypes_s.memTaint_t -> modloc: Vale.PPC64LE.Memory.loc -> Prims.logical
let inv_buffer_info (bi:buffer_info) (owners:heaplet_id -> Set.set int) (h:vale_heap) (hs:vale_heaplets) (mt:memTaint_t) (modloc:loc) = let t = bi.bi_typ in let hid = bi.bi_heaplet in let hi = Map16.get hs hid in let b = bi.bi_buffer in let owns = owners hid in (bi.bi_mutable == Mutable ==> loc_includes mod...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 722, "start_col": 0, "start_line": 710 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
bi: Vale.Arch.HeapImpl.buffer_info -> owners: (_: Vale.Arch.HeapImpl.heaplet_id -> FStar.Set.set Prims.int) -> h: Vale.Arch.HeapImpl.vale_heap -> hs: Vale.Arch.HeapImpl.vale_heaplets -> mt: Vale.Arch.HeapTypes_s.memTaint_t -> modloc: Vale.PPC64LE.Memory.loc -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.buffer_info", "Vale.Arch.HeapImpl.heaplet_id", "FStar.Set.set", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.Arch.HeapImpl.vale_heaplets", "Vale.Arch.HeapTypes_s.memTaint_t", "Vale.PPC64LE.Memory.loc", "Prims.l_and", "Prims.l_imp", "Prims.eq2", "Vale.Arch.HeapImpl.mut...
[]
false
false
false
true
true
let inv_buffer_info (bi: buffer_info) (owners: (heaplet_id -> Set.set int)) (h: vale_heap) (hs: vale_heaplets) (mt: memTaint_t) (modloc: loc) =
let t = bi.bi_typ in let hid = bi.bi_heaplet in let hi = Map16.get hs hid in let b = bi.bi_buffer in let owns = owners hid in (bi.bi_mutable == Mutable ==> loc_includes modloc (loc_buffer b)) /\ buffer_readable h b /\ buffer_as_seq hi b == buffer_as_seq h b /\ (valid_taint_buf b hi mt bi.bi_taint <==> valid_taint_buf b...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.inv_heaplet_ids
val inv_heaplet_ids : hs: Vale.Arch.HeapImpl.vale_heaplets -> Prims.logical
let inv_heaplet_ids (hs:vale_heaplets) = forall (i:heaplet_id).{:pattern Map16.sel hs i} (Map16.sel hs i).heapletId == Some i
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 86, "end_line": 696, "start_col": 0, "start_line": 695 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
hs: Vale.Arch.HeapImpl.vale_heaplets -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heaplets", "Prims.l_Forall", "Vale.Arch.HeapImpl.heaplet_id", "Prims.eq2", "FStar.Pervasives.Native.option", "Vale.Arch.HeapImpl.__proj__ValeHeap__item__heapletId", "Vale.Lib.Map16.sel", "Vale.Arch.HeapImpl.vale_heap", "FStar.Pervasives.Native.Some", "Prims.logical" ]
[]
false
false
false
true
true
let inv_heaplet_ids (hs: vale_heaplets) =
forall (i: heaplet_id). {:pattern Map16.sel hs i} (Map16.sel hs i).heapletId == Some i
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.store_mem
val store_mem (t: base_typ) (addr: int) (v: base_typ_as_vale_type t) (h: vale_heap) : Ghost vale_heap (requires True) (ensures fun h1 -> (_ih h).addrs == (_ih h1).addrs /\ (_ih h).ptrs == (_ih h1).ptrs)
val store_mem (t: base_typ) (addr: int) (v: base_typ_as_vale_type t) (h: vale_heap) : Ghost vale_heap (requires True) (ensures fun h1 -> (_ih h).addrs == (_ih h1).addrs /\ (_ih h).ptrs == (_ih h1).ptrs)
let store_mem (t:base_typ) (addr:int) (v:base_typ_as_vale_type t) (h:vale_heap) : Ghost vale_heap (requires True) (ensures fun h1 -> (_ih h).addrs == (_ih h1).addrs /\ (_ih h).ptrs == (_ih h1).ptrs) = match find_writeable_buffer t addr h with | None -> h | Some a -> let base = buffer_addr a h in buf...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 72, "end_line": 471, "start_col": 0, "start_line": 463 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> v: Vale.PPC64LE.Memory.base_typ_as_vale_type t -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.Ghost Vale.Arch.HeapImpl.vale_heap
Prims.Ghost
[]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Vale.PPC64LE.Memory.base_typ_as_vale_type", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.find_writeable_buffer", "Vale.PPC64LE.Memory.buffer", "Vale.PPC64LE.Memory.buffer_write", "Vale.PPC64LE.Memory.get_addr_in_ptr", "Vale.PPC64LE.Memory.buffe...
[]
false
false
false
false
false
let store_mem (t: base_typ) (addr: int) (v: base_typ_as_vale_type t) (h: vale_heap) : Ghost vale_heap (requires True) (ensures fun h1 -> (_ih h).addrs == (_ih h1).addrs /\ (_ih h).ptrs == (_ih h1).ptrs) =
match find_writeable_buffer t addr h with | None -> h | Some a -> let base = buffer_addr a h in buffer_write a (get_addr_in_ptr t (buffer_length a) base addr 0) v h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.layout_modifies_loc
val layout_modifies_loc (layout:vale_heap_layout_inner) : loc
val layout_modifies_loc (layout:vale_heap_layout_inner) : loc
let layout_modifies_loc layout = layout.vl_mod_loc
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 755, "start_col": 0, "start_line": 755 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
layout: Vale.Arch.HeapImpl.vale_heap_layout_inner -> Vale.PPC64LE.Memory.loc
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap_layout_inner", "Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout_inner__item__vl_mod_loc", "Vale.PPC64LE.Memory.loc" ]
[]
false
false
false
true
false
let layout_modifies_loc layout =
layout.vl_mod_loc
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.get_addr_ptr
val get_addr_ptr (t: base_typ) (ptr: int) (h: vale_heap) : Ghost (buffer t) (requires valid_mem t ptr h) (ensures fun b -> List.memP b (_ih h).ptrs /\ valid_buffer t ptr b h)
val get_addr_ptr (t: base_typ) (ptr: int) (h: vale_heap) : Ghost (buffer t) (requires valid_mem t ptr h) (ensures fun b -> List.memP b (_ih h).ptrs /\ valid_buffer t ptr b h)
let get_addr_ptr (t:base_typ) (ptr:int) (h:vale_heap) : Ghost (buffer t) (requires valid_mem t ptr h) (ensures fun b -> List.memP b (_ih h).ptrs /\ valid_buffer t ptr b h) = Some?.v (find_valid_buffer t ptr h)
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 450, "start_col": 0, "start_line": 446 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> ptr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.Ghost (Vale.PPC64LE.Memory.buffer t)
Prims.Ghost
[]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "FStar.Pervasives.Native.__proj__Some__item__v", "Vale.PPC64LE.Memory.buffer", "Vale.PPC64LE.Memory.find_valid_buffer", "Prims.b2t", "Vale.PPC64LE.Memory.valid_mem", "Prims.l_and", "FStar.List.Tot.Base.memP", "Vale.In...
[]
false
false
false
false
false
let get_addr_ptr (t: base_typ) (ptr: int) (h: vale_heap) : Ghost (buffer t) (requires valid_mem t ptr h) (ensures fun b -> List.memP b (_ih h).ptrs /\ valid_buffer t ptr b h) =
Some?.v (find_valid_buffer t ptr h)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.find_writeable_buffer_aux
val find_writeable_buffer_aux (t: base_typ) (addr: int) (ps: list b8) (h: vale_heap) : Ghost (option (buffer t)) (requires sub_list ps (_ih h).ptrs) (ensures fun o -> (match o with | None -> not (writeable_mem_aux t addr ps h) | Some a -> writeable_buffer t addr...
val find_writeable_buffer_aux (t: base_typ) (addr: int) (ps: list b8) (h: vale_heap) : Ghost (option (buffer t)) (requires sub_list ps (_ih h).ptrs) (ensures fun o -> (match o with | None -> not (writeable_mem_aux t addr ps h) | Some a -> writeable_buffer t addr...
let rec find_writeable_buffer_aux (t:base_typ) (addr:int) (ps:list b8) (h:vale_heap) : Ghost (option (buffer t)) (requires sub_list ps (_ih h).ptrs) (ensures fun o -> ( match o with | None -> not (writeable_mem_aux t addr ps h) | Some a -> writeable_buffer t addr a h /\ List.memP a ps )) = match p...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 96, "end_line": 422, "start_col": 0, "start_line": 412 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> ps: Prims.list Vale.PPC64LE.Memory.b8 -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.Ghost (FStar.Pervasives.Native.option (Vale.PPC64LE.Memory.buffer t))
Prims.Ghost
[]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Prims.list", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapImpl.vale_heap", "FStar.Pervasives.Native.None", "Vale.PPC64LE.Memory.buffer", "Vale.PPC64LE.Memory.writeable_buffer", "FStar.Pervasives.Native.Some", "Prims.bool", "Vale.PPC64LE.Memory.find_wri...
[ "recursion" ]
false
false
false
false
false
let rec find_writeable_buffer_aux (t: base_typ) (addr: int) (ps: list b8) (h: vale_heap) : Ghost (option (buffer t)) (requires sub_list ps (_ih h).ptrs) (ensures fun o -> (match o with | None -> not (writeable_mem_aux t addr ps h) | Some a -> writeable_buffer t ...
match ps with | [] -> None | a :: q -> if writeable_buffer t addr a h then Some a else find_writeable_buffer_aux t addr q h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.layout_buffers
val layout_buffers (layout:vale_heap_layout_inner) : Seq.seq buffer_info
val layout_buffers (layout:vale_heap_layout_inner) : Seq.seq buffer_info
let layout_buffers layout = layout.vl_buffers
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 756, "start_col": 0, "start_line": 756 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
layout: Vale.Arch.HeapImpl.vale_heap_layout_inner -> FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap_layout_inner", "Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout_inner__item__vl_buffers", "FStar.Seq.Base.seq", "Vale.Arch.HeapImpl.buffer_info" ]
[]
false
false
false
true
false
let layout_buffers layout =
layout.vl_buffers
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_mem128
val valid_mem128 (ptr:int) (h:vale_heap) : GTot bool
val valid_mem128 (ptr:int) (h:vale_heap) : GTot bool
let valid_mem128 ptr h = valid_mem_aux (TUInt128) ptr (_ih h).ptrs h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 68, "end_line": 491, "start_col": 0, "start_line": 491 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "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
ptr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.valid_mem_aux", "Vale.Arch.HeapTypes_s.TUInt128", "Vale.Interop.Heap_s.__proj__InteropHeap__item__ptrs", "Vale.Arch.HeapImpl._ih", "Prims.bool" ]
[]
false
false
false
false
false
let valid_mem128 ptr h =
valid_mem_aux (TUInt128) ptr (_ih h).ptrs h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.writeable_mem128
val writeable_mem128 (ptr:int) (h:vale_heap) : GTot bool
val writeable_mem128 (ptr:int) (h:vale_heap) : GTot bool
let writeable_mem128 ptr h = writeable_mem_aux (TUInt128) ptr (_ih h).ptrs h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 76, "end_line": 492, "start_col": 0, "start_line": 492 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "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
ptr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.writeable_mem_aux", "Vale.Arch.HeapTypes_s.TUInt128", "Vale.Interop.Heap_s.__proj__InteropHeap__item__ptrs", "Vale.Arch.HeapImpl._ih", "Prims.bool" ]
[]
false
false
false
false
false
let writeable_mem128 ptr h =
writeable_mem_aux (TUInt128) ptr (_ih h).ptrs h
false
LL.fst
LL.wpt_monotonic
val wpt_monotonic : wp: LL.wp_t0 a -> Prims.logical
let wpt_monotonic (#a:Type) (wp:wp_t0 a) = forall p q. (forall r. p r ==> q r) ==> (forall n. wp p n ==> wp q n)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 226, "start_col": 0, "start_line": 224 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
wp: LL.wp_t0 a -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "LL.wp_t0", "Prims.l_Forall", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "Prims.nat", "Prims.logical", "Prims.l_imp" ]
[]
false
false
false
true
true
let wpt_monotonic (#a: Type) (wp: wp_t0 a) =
forall p q. (forall r. p r ==> q r) ==> (forall n. wp p n ==> wp q n)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.writeable_mem_aux
val writeable_mem_aux (t: base_typ) (addr: _) (ps: list b8) (h: vale_heap) : Ghost bool (requires sub_list ps (_ih h).ptrs) (ensures fun b -> b <==> (exists (x: buffer t). {:pattern (List.memP x ps)\/(valid_buffer t addr x h)\/buffer_writeable x} L...
val writeable_mem_aux (t: base_typ) (addr: _) (ps: list b8) (h: vale_heap) : Ghost bool (requires sub_list ps (_ih h).ptrs) (ensures fun b -> b <==> (exists (x: buffer t). {:pattern (List.memP x ps)\/(valid_buffer t addr x h)\/buffer_writeable x} L...
let rec writeable_mem_aux (t:base_typ) addr (ps:list b8) (h:vale_heap) : Ghost bool (requires sub_list ps (_ih h).ptrs) (ensures fun b -> b <==> (exists (x:buffer t). {:pattern (List.memP x ps) \/ (valid_buffer t addr x h) \/ buffer_writeable x} List.memP x ps /\ valid_buffer t addr x h /\ buffer_writeabl...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 408, "start_col": 0, "start_line": 400 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> ps: Prims.list Vale.PPC64LE.Memory.b8 -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.Ghost Prims.bool
Prims.Ghost
[]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Prims.list", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapImpl.vale_heap", "Prims.op_BarBar", "Vale.PPC64LE.Memory.writeable_buffer", "Vale.PPC64LE.Memory.writeable_mem_aux", "Prims.bool", "Vale.PPC64LE.Memory.sub_list", "Vale.Interop.Heap_s.__proj__In...
[ "recursion" ]
false
false
false
false
false
let rec writeable_mem_aux (t: base_typ) addr (ps: list b8) (h: vale_heap) : Ghost bool (requires sub_list ps (_ih h).ptrs) (ensures fun b -> b <==> (exists (x: buffer t). {:pattern (List.memP x ps)\/(valid_buffer t addr x h)\/buffer_writeable x} Li...
match ps with | [] -> false | a :: q -> writeable_buffer t addr a h || writeable_mem_aux t addr q h
false
LL.fst
LL.esubcomp
val esubcomp (a: Type) (wp_f wp_g: ewp_t a) (f: erepr a wp_f) : Pure (erepr a wp_g) (requires forall p. wp_g p ==> wp_f p) (ensures fun _ -> True)
val esubcomp (a: Type) (wp_f wp_g: ewp_t a) (f: erepr a wp_f) : Pure (erepr a wp_g) (requires forall p. wp_g p ==> wp_f p) (ensures fun _ -> True)
let esubcomp (a:Type) (wp_f:ewp_t a) (wp_g:ewp_t a) (f:erepr a wp_f) : Pure (erepr a wp_g) (requires forall p. wp_g p ==> wp_f p) (ensures fun _ -> True) = f
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 87, "start_col": 0, "start_line": 81 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> wp_f: LL.ewp_t a -> wp_g: LL.ewp_t a -> f: LL.erepr a wp_f -> Prims.Pure (LL.erepr a wp_g)
Prims.Pure
[]
[]
[ "LL.ewp_t", "LL.erepr", "Prims.l_Forall", "LL.epost_t", "Prims.l_imp", "Prims.l_True" ]
[]
false
false
false
false
false
let esubcomp (a: Type) (wp_f wp_g: ewp_t a) (f: erepr a wp_f) : Pure (erepr a wp_g) (requires forall p. wp_g p ==> wp_f p) (ensures fun _ -> True) =
f
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.layout_heaplets_initialized
val layout_heaplets_initialized (layout:vale_heap_layout_inner) : bool
val layout_heaplets_initialized (layout:vale_heap_layout_inner) : bool
let layout_heaplets_initialized layout = layout.vl_heaplets_initialized
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 753, "start_col": 0, "start_line": 753 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
layout: Vale.Arch.HeapImpl.vale_heap_layout_inner -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap_layout_inner", "Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout_inner__item__vl_heaplets_initialized", "Prims.bool" ]
[]
false
false
false
true
false
let layout_heaplets_initialized layout =
layout.vl_heaplets_initialized
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.find_valid_buffer_aux
val find_valid_buffer_aux (t: base_typ) (addr: int) (ps: list b8) (h: vale_heap) : Ghost (option (buffer t)) (requires sub_list ps (_ih h).ptrs) (ensures fun o -> match o with | None -> not (valid_mem_aux t addr ps h) | Some a -> valid_buffer t addr a h /\ List.memP...
val find_valid_buffer_aux (t: base_typ) (addr: int) (ps: list b8) (h: vale_heap) : Ghost (option (buffer t)) (requires sub_list ps (_ih h).ptrs) (ensures fun o -> match o with | None -> not (valid_mem_aux t addr ps h) | Some a -> valid_buffer t addr a h /\ List.memP...
let rec find_valid_buffer_aux (t:base_typ) (addr:int) (ps:list b8) (h:vale_heap) : Ghost (option (buffer t)) (requires sub_list ps (_ih h).ptrs) (ensures fun o -> match o with | None -> not (valid_mem_aux t addr ps h) | Some a -> valid_buffer t addr a h /\ List.memP a ps) = match ps with | [] -> N...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 88, "end_line": 371, "start_col": 0, "start_line": 362 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> ps: Prims.list Vale.PPC64LE.Memory.b8 -> h: Vale.Arch.HeapImpl.vale_heap -> Prims.Ghost (FStar.Pervasives.Native.option (Vale.PPC64LE.Memory.buffer t))
Prims.Ghost
[]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Prims.list", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapImpl.vale_heap", "FStar.Pervasives.Native.None", "Vale.PPC64LE.Memory.buffer", "Vale.PPC64LE.Memory.valid_buffer", "FStar.Pervasives.Native.Some", "Prims.bool", "Vale.PPC64LE.Memory.find_valid_b...
[ "recursion" ]
false
false
false
false
false
let rec find_valid_buffer_aux (t: base_typ) (addr: int) (ps: list b8) (h: vale_heap) : Ghost (option (buffer t)) (requires sub_list ps (_ih h).ptrs) (ensures fun o -> match o with | None -> not (valid_mem_aux t addr ps h) | Some a -> valid_buffer t addr a h /\ List....
match ps with | [] -> None | a :: q -> if valid_buffer t addr a h then Some a else find_valid_buffer_aux t addr q h
false
LL.fst
LL.lift_pure_exn
val lift_pure_exn (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : erepr a (lift_pure_wp wp)
val lift_pure_exn (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : erepr a (lift_pure_wp wp)
let lift_pure_exn (a:Type) (wp:pure_wp a) (f:unit -> PURE a wp) : erepr a (lift_pure_wp wp) = FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun _ -> Some (f ())
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 126, "start_col": 0, "start_line": 123 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> wp: Prims.pure_wp a -> f: (_: Prims.unit -> Prims.PURE a) -> LL.erepr a (LL.lift_pure_wp wp)
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "Prims.unit", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.option", "FStar.Monotonic.Pure.elim_pure_wp_monotonicity", "LL.erepr", "LL.lift_pure_wp" ]
[]
false
false
false
false
false
let lift_pure_exn (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : erepr a (lift_pure_wp wp) =
FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun _ -> Some (f ())
false
LL.fst
LL.lift_pure_wp
val lift_pure_wp (#a: Type) (wp: pure_wp a) : ewp_t a
val lift_pure_wp (#a: Type) (wp: pure_wp a) : ewp_t a
let lift_pure_wp (#a:Type) (wp:pure_wp a) : ewp_t a = FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun p -> wp (fun x -> p (Some x))
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 120, "start_col": 0, "start_line": 118 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
wp: Prims.pure_wp a -> LL.ewp_t a
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "FStar.Pervasives.Native.option", "Prims.l_True", "FStar.Pervasives.Native.Some", "Prims.pure_pre", "Prims.unit", "FStar.Monotonic.Pure.elim_pure_wp_monotonicity", "LL.ewp_t" ]
[]
false
false
false
true
false
let lift_pure_wp (#a: Type) (wp: pure_wp a) : ewp_t a =
FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun p -> wp (fun x -> p (Some x))
false
LL.fst
LL.test_st
val test_st: Prims.unit -> Pure (option int) True (fun _ -> True)
val test_st: Prims.unit -> Pure (option int) True (fun _ -> True)
let test_st () : Pure (option int) True (fun _ -> True) = reify (test ()) ()
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 354, "start_col": 0, "start_line": 353 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
_: Prims.unit -> Prims.Pure (FStar.Pervasives.Native.option Prims.int)
Prims.Pure
[]
[]
[ "Prims.unit", "LL.test", "Prims.int", "FStar.Pervasives.Native.option", "Prims.l_True" ]
[]
false
false
false
false
false
let test_st () : Pure (option int) True (fun _ -> True) =
reify (test ()) ()
false
LL.fst
LL.test
val test: Prims.unit -> Exn int True (fun _ -> True)
val test: Prims.unit -> Exn int True (fun _ -> True)
let test () : Exn int True (fun _ -> True) = 4
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 351, "start_col": 0, "start_line": 350 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
_: Prims.unit -> LL.Exn Prims.int
LL.Exn
[]
[]
[ "Prims.unit", "Prims.int", "Prims.l_True", "FStar.Pervasives.Native.option" ]
[]
false
true
false
false
false
let test () : Exn int True (fun _ -> True) =
4
false
LL.fst
LL.ereturn
val ereturn (a: Type) (x: a) : erepr a (fun p -> p (Some x))
val ereturn (a: Type) (x: a) : erepr a (fun p -> p (Some x))
let ereturn (a:Type) (x:a) : erepr a (fun p -> p (Some x)) = fun _ -> Some x
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 61, "start_col": 0, "start_line": 59 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> x: a -> LL.erepr a (fun p -> p (FStar.Pervasives.Native.Some x))
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.option", "LL.erepr" ]
[]
false
false
false
false
false
let ereturn (a: Type) (x: a) : erepr a (fun p -> p (Some x)) =
fun _ -> Some x
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.find_valid_buffer_aux_ps
val find_valid_buffer_aux_ps (t: base_typ) (addr: int) (ps: list b8) (h1 h2: vale_heap) : Lemma (requires (_ih h1).ptrs == (_ih h2).ptrs /\ sub_list ps (_ih h1).ptrs) (ensures find_valid_buffer_aux t addr ps h1 == find_valid_buffer_aux t addr ps h2)
val find_valid_buffer_aux_ps (t: base_typ) (addr: int) (ps: list b8) (h1 h2: vale_heap) : Lemma (requires (_ih h1).ptrs == (_ih h2).ptrs /\ sub_list ps (_ih h1).ptrs) (ensures find_valid_buffer_aux t addr ps h1 == find_valid_buffer_aux t addr ps h2)
let rec find_valid_buffer_aux_ps (t:base_typ) (addr:int) (ps:list b8) (h1:vale_heap) (h2:vale_heap) : Lemma (requires (_ih h1).ptrs == (_ih h2).ptrs /\ sub_list ps (_ih h1).ptrs) (ensures find_valid_buffer_aux t addr ps h1 == find_valid_buffer_aux t addr ps h2) = match ps with | [] -> () | a::q -> find_vali...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 381, "start_col": 0, "start_line": 375 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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
t: Vale.Arch.HeapTypes_s.base_typ -> addr: Prims.int -> ps: Prims.list Vale.PPC64LE.Memory.b8 -> h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires InteropHeap?.ptrs (Vale.Arch.HeapImpl._ih h1) == InteropHeap?.ptrs (Vale....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Prims.int", "Prims.list", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.find_valid_buffer_aux_ps", "Prims.unit", "Prims.l_and", "Prims.eq2", "Vale.Interop.Types.b8", "Prims.l_or", "Vale.Interop.Heap_s.list_disjoint_or_eq", "...
[ "recursion" ]
false
false
true
false
false
let rec find_valid_buffer_aux_ps (t: base_typ) (addr: int) (ps: list b8) (h1 h2: vale_heap) : Lemma (requires (_ih h1).ptrs == (_ih h2).ptrs /\ sub_list ps (_ih h1).ptrs) (ensures find_valid_buffer_aux t addr ps h1 == find_valid_buffer_aux t addr ps h2) =
match ps with | [] -> () | a :: q -> find_valid_buffer_aux_ps t addr q h1 h2
false
LL.fst
LL.ebind
val ebind (a b: Type) (wp_f: ewp_t a) (wp_g: (a -> ewp_t b)) (f: erepr a wp_f) (g: (x: a -> erepr b (wp_g x))) : erepr b (fun (p: epost_t b) -> wp_f (fun (r: option a) -> match r with | None -> p None | Some x -> wp_g x p)...
val ebind (a b: Type) (wp_f: ewp_t a) (wp_g: (a -> ewp_t b)) (f: erepr a wp_f) (g: (x: a -> erepr b (wp_g x))) : erepr b (fun (p: epost_t b) -> wp_f (fun (r: option a) -> match r with | None -> p None | Some x -> wp_g x p)...
let ebind (a:Type) (b:Type) (wp_f:ewp_t a) (wp_g:a -> ewp_t b) (f:erepr a wp_f) (g:(x:a -> erepr b (wp_g x))) : erepr b (fun (p:epost_t b) -> wp_f (fun (r:option a) -> match r with | None -> p None | Some x -> wp_g x p)) = fun _ -> let r = f () in match r with | None -> None | Some x...
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 77, "start_col": 0, "start_line": 64 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> b: Type -> wp_f: LL.ewp_t a -> wp_g: (_: a -> LL.ewp_t b) -> f: LL.erepr a wp_f -> g: (x: a -> LL.erepr b (wp_g x)) -> LL.erepr b (fun p -> wp_f (fun r -> (match r with | FStar.Pervasives.Native.None #_ -> p FStar.Pervasives.Native....
Prims.Tot
[ "total" ]
[]
[ "LL.ewp_t", "LL.erepr", "Prims.unit", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option", "LL.epost_t", "LL.epre_t" ]
[]
false
false
false
false
false
let ebind (a b: Type) (wp_f: ewp_t a) (wp_g: (a -> ewp_t b)) (f: erepr a wp_f) (g: (x: a -> erepr b (wp_g x))) : erepr b (fun (p: epost_t b) -> wp_f (fun (r: option a) -> match r with | None -> p None | Some x -> wp_g x p)...
fun _ -> let r = f () in match r with | None -> None | Some x -> g x ()
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.lemma_store_mem128
val lemma_store_mem128 (b:buffer128) (i:nat) (v:quad32) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ buffer_writeable b ) (ensures store_mem128 (buffer_addr b h + scale16 i) v h == buffer_write b i v h )
val lemma_store_mem128 (b:buffer128) (i:nat) (v:quad32) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ buffer_writeable b ) (ensures store_mem128 (buffer_addr b h + scale16 i) v h == buffer_write b i v h )
let lemma_store_mem128 b i v h = lemma_store_mem TUInt128 b i v h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 65, "end_line": 558, "start_col": 0, "start_line": 558 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "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
b: Vale.PPC64LE.Memory.buffer128 -> i: Prims.nat -> v: Vale.Def.Types_s.quad32 -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires i < FStar.Seq.Base.length (Vale.PPC64LE.Memory.buffer_as_seq h b) /\ Vale.PPC64LE.Memory.buffer_readable h b /\ Vale.PPC64LE.Memo...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.buffer128", "Prims.nat", "Vale.Def.Types_s.quad32", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.lemma_store_mem", "Vale.Arch.HeapTypes_s.TUInt128", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_store_mem128 b i v h =
lemma_store_mem TUInt128 b i v h
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.inv_heaplet
val inv_heaplet : owns: FStar.Set.set Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> hi: Vale.Arch.HeapImpl.vale_heap -> Prims.logical
let inv_heaplet (owns:Set.set int) (h hi:vale_heap) = h.ih.IB.ptrs == hi.ih.IB.ptrs /\ Map.domain h.mh == Map.domain hi.mh /\ (forall (i:int).{:pattern Set.mem i owns \/ Set.mem i (Map.domain h.mh) \/ Map.sel h.mh i \/ Map.sel hi.mh i} Set.mem i owns ==> Set.mem i (Map.domain h.mh) /\ Map.sel h.mh...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 707, "start_col": 0, "start_line": 698 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
owns: FStar.Set.set Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> hi: Vale.Arch.HeapImpl.vale_heap -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Set.set", "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Prims.l_and", "Prims.eq2", "Prims.list", "Vale.Interop.Types.b8", "Prims.l_or", "Vale.Interop.Heap_s.list_disjoint_or_eq", "Vale.Interop.Heap_s.__proj__InteropHeap__item__ptrs", "FStar.Ghost.reveal", "Vale.Interop.Heap_s.interop_he...
[]
false
false
false
true
true
let inv_heaplet (owns: Set.set int) (h hi: vale_heap) =
h.ih.IB.ptrs == hi.ih.IB.ptrs /\ Map.domain h.mh == Map.domain hi.mh /\ (forall (i: int). {:pattern Set.mem i owns\/Set.mem i (Map.domain h.mh)\/Map.sel h.mh i\/Map.sel hi.mh i} Set.mem i owns ==> Set.mem i (Map.domain h.mh) /\ Map.sel h.mh i == Map.sel hi.mh i /\ True) /\ True
false
LL.fst
LL.get_flt
val get_flt (n: nat) : Pure (option flt) (requires n > 0) (ensures fun r -> match r with | None -> True | Some flt -> flt.n1 == n)
val get_flt (n: nat) : Pure (option flt) (requires n > 0) (ensures fun r -> match r with | None -> True | Some flt -> flt.n1 == n)
let get_flt (n:nat) : Pure (option flt) (requires n > 0) (ensures fun r -> match r with | None -> True | Some flt -> flt.n1 == n) = let r = get_n1 n in match r with | None -> None | Some (x, n) -> let r = get_n1 n in match r with | None -> None | Some (y, n) -> let r = get_n1...
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 175, "start_col": 0, "start_line": 157 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
n: Prims.nat -> Prims.Pure (FStar.Pervasives.Native.option LL.flt)
Prims.Pure
[]
[]
[ "Prims.nat", "FStar.Pervasives.Native.None", "LL.flt", "FStar.Pervasives.Native.Some", "LL.Mkflt", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "LL.get_n1", "Prims.b2t", "Prims.op_GreaterThan", "Prims.l_True", "Prims.eq2", "LL.__proj__Mkflt__item__n1" ]
[]
false
false
false
false
false
let get_flt (n: nat) : Pure (option flt) (requires n > 0) (ensures fun r -> match r with | None -> True | Some flt -> flt.n1 == n) =
let r = get_n1 n in match r with | None -> None | Some (x, n) -> let r = get_n1 n in match r with | None -> None | Some (y, n) -> let r = get_n1 n in match r with | None -> None | Some (z, _) -> Some ({ n1 = x; n2 = y; n3 = z })
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.modifies_valid_taint
val modifies_valid_taint (#t:base_typ) (b:buffer t) (p:loc) (h h':vale_heap) (mt:memtaint) (tn:taint) : Lemma (requires modifies p h h') (ensures valid_taint_buf b h mt tn <==> valid_taint_buf b h' mt tn) [SMTPat (modifies p h h'); SMTPat (valid_taint_buf b h' mt tn)]
val modifies_valid_taint (#t:base_typ) (b:buffer t) (p:loc) (h h':vale_heap) (mt:memtaint) (tn:taint) : Lemma (requires modifies p h h') (ensures valid_taint_buf b h mt tn <==> valid_taint_buf b h' mt tn) [SMTPat (modifies p h h'); SMTPat (valid_taint_buf b h' mt tn)]
let modifies_valid_taint #t b p h h' mt tn = let dv = get_downview b.bsrc in let imp_left () : Lemma (requires valid_taint_buf b h mt tn) (ensures valid_taint_buf b h' mt tn) = let aux (i:nat{i < DV.length dv}) : Lemma (mt.[(_ih h').addrs b + i] = tn) = apply_taint_buf b h mt tn i in Classical...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 628, "start_col": 0, "start_line": 612 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
b: Vale.PPC64LE.Memory.buffer t -> p: Vale.PPC64LE.Memory.loc -> h: Vale.Arch.HeapImpl.vale_heap -> h': Vale.Arch.HeapImpl.vale_heap -> mt: Vale.PPC64LE.Memory.memtaint -> tn: Vale.Arch.HeapTypes_s.taint -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory.modifies p h h') (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.buffer", "Vale.PPC64LE.Memory.loc", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.memtaint", "Vale.Arch.HeapTypes_s.taint", "FStar.Classical.move_requires", "Prims.unit", "Vale.PPC64LE.Memory.valid_taint_buf", "Prims.squash", "Prims.N...
[]
false
false
true
false
false
let modifies_valid_taint #t b p h h' mt tn =
let dv = get_downview b.bsrc in let imp_left () : Lemma (requires valid_taint_buf b h mt tn) (ensures valid_taint_buf b h' mt tn) = let aux (i: nat{i < DV.length dv}) : Lemma (mt.[ (_ih h').addrs b + i ] = tn) = apply_taint_buf b h mt tn i in Classical.forall_intro aux in let imp_right () : Lemma (requires va...
false
LL.fst
LL.bind
val bind (a b: Type) (wp_f: wp_t a) (wp_g: (a -> wp_t b)) (f: repr a wp_f) (g: (x: a -> repr b (wp_g x))) : repr b (bind_wp a b wp_f wp_g)
val bind (a b: Type) (wp_f: wp_t a) (wp_g: (a -> wp_t b)) (f: repr a wp_f) (g: (x: a -> repr b (wp_g x))) : repr b (bind_wp a b wp_f wp_g)
let bind (a:Type) (b:Type) (wp_f:wp_t a) (wp_g:a -> wp_t b) (f:repr a wp_f) (g:(x:a -> repr b (wp_g x))) : repr b (bind_wp a b wp_f wp_g) = fun n -> let r = f n in g (fst r) (snd r)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 261, "start_col": 0, "start_line": 255 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> b: Type -> wp_f: LL.wp_t a -> wp_g: (_: a -> LL.wp_t b) -> f: LL.repr a wp_f -> g: (x: a -> LL.repr b (wp_g x)) -> LL.repr b (LL.bind_wp a b wp_f wp_g)
Prims.Tot
[ "total" ]
[]
[ "LL.wp_t", "LL.repr", "Prims.nat", "FStar.Pervasives.Native.fst", "FStar.Pervasives.Native.snd", "FStar.Pervasives.Native.tuple2", "LL.bind_wp" ]
[]
false
false
false
false
false
let bind (a b: Type) (wp_f: wp_t a) (wp_g: (a -> wp_t b)) (f: repr a wp_f) (g: (x: a -> repr b (wp_g x))) : repr b (bind_wp a b wp_f wp_g) =
fun n -> let r = f n in g (fst r) (snd r)
false
LL.fst
LL.get_flt_exn
val get_flt_exn (n: nat) : Exn flt (requires n > 0) (ensures fun r -> match r with | None -> True | Some flt -> flt.n1 == n)
val get_flt_exn (n: nat) : Exn flt (requires n > 0) (ensures fun r -> match r with | None -> True | Some flt -> flt.n1 == n)
let get_flt_exn (n:nat) : Exn flt (requires n > 0) (ensures fun r -> match r with | None -> True | Some flt -> flt.n1 == n) = let x, n = get_n1_exn n in let y, n = get_n1_exn n in let z, _ = get_n1_exn n in { n1 = x; n2 = y; n3 = z}
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 207, "start_col": 0, "start_line": 197 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
n: Prims.nat -> LL.Exn LL.flt
LL.Exn
[]
[]
[ "Prims.nat", "LL.Mkflt", "LL.flt", "FStar.Pervasives.Native.tuple2", "LL.get_n1_exn", "Prims.b2t", "Prims.op_GreaterThan", "FStar.Pervasives.Native.option", "Prims.l_True", "Prims.eq2", "LL.__proj__Mkflt__item__n1" ]
[]
false
true
false
false
false
let get_flt_exn (n: nat) : Exn flt (requires n > 0) (ensures fun r -> match r with | None -> True | Some flt -> flt.n1 == n) =
let x, n = get_n1_exn n in let y, n = get_n1_exn n in let z, _ = get_n1_exn n in { n1 = x; n2 = y; n3 = z }
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.same_memTaint
val same_memTaint (t: base_typ) (b: buffer t) (mem0 mem1: vale_heap) (memT0 memT1: memtaint) : Lemma (requires modifies (loc_buffer b) mem0 mem1 /\ (forall p. Map.sel memT0 p == Map.sel memT1 p)) (ensures memT0 == memT1)
val same_memTaint (t: base_typ) (b: buffer t) (mem0 mem1: vale_heap) (memT0 memT1: memtaint) : Lemma (requires modifies (loc_buffer b) mem0 mem1 /\ (forall p. Map.sel memT0 p == Map.sel memT1 p)) (ensures memT0 == memT1)
let same_memTaint (t:base_typ) (b:buffer t) (mem0 mem1:vale_heap) (memT0 memT1:memtaint) : Lemma (requires modifies (loc_buffer b) mem0 mem1 /\ (forall p. Map.sel memT0 p == Map.sel memT1 p)) (ensures memT0 == memT1) = assert (Map.equal memT0 memT1)
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 604, "start_col": 0, "start_line": 600 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
t: Vale.Arch.HeapTypes_s.base_typ -> b: Vale.PPC64LE.Memory.buffer t -> mem0: Vale.Arch.HeapImpl.vale_heap -> mem1: Vale.Arch.HeapImpl.vale_heap -> memT0: Vale.PPC64LE.Memory.memtaint -> memT1: Vale.PPC64LE.Memory.memtaint -> FStar.Pervasives.Lemma (requires Vale.PPC64LE.Memory....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.memtaint", "Prims._assert", "FStar.Map.equal", "Prims.int", "Vale.Arch.HeapTypes_s.taint", "Prims.unit", "Prims.l_and", "Vale.PPC64LE.Memory.modifies", "Vale.PPC64LE.Memory.loc_...
[]
true
false
true
false
false
let same_memTaint (t: base_typ) (b: buffer t) (mem0 mem1: vale_heap) (memT0 memT1: memtaint) : Lemma (requires modifies (loc_buffer b) mem0 mem1 /\ (forall p. Map.sel memT0 p == Map.sel memT1 p)) (ensures memT0 == memT1) =
assert (Map.equal memT0 memT1)
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.fadd_mul_r
val fadd_mul_r: #w:lanes -> acc:felem w -> f1:felem w -> p:precomp_r w -> Stack unit (requires fun h -> live h acc /\ live h f1 /\ live h p /\ felem_fits h acc (2,2,2,2,2) /\ felem_fits h f1 (1,1,1,1,1) /\ fmul_precomp_r_pre h p) (ensures fun h0 _ h1 -> modifies (loc a...
val fadd_mul_r: #w:lanes -> acc:felem w -> f1:felem w -> p:precomp_r w -> Stack unit (requires fun h -> live h acc /\ live h f1 /\ live h p /\ felem_fits h acc (2,2,2,2,2) /\ felem_fits h f1 (1,1,1,1,1) /\ fmul_precomp_r_pre h p) (ensures fun h0 _ h1 -> modifies (loc a...
let fadd_mul_r #w out f1 p = let r = sub p 0ul 5ul in let r5 = sub p 5ul 5ul in let r0 = r.(0ul) in let r1 = r.(1ul) in let r2 = r.(2ul) in let r3 = r.(3ul) in let r4 = r.(4ul) in let r50 = r5.(0ul) in let r51 = r5.(1ul) in let r52 = r5.(2ul) in let r53 = r5.(3ul) in let r54 = r5.(4ul) in le...
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 345, "start_col": 0, "start_line": 311 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
acc: Hacl.Impl.Poly1305.Field32xN.felem w -> f1: Hacl.Impl.Poly1305.Field32xN.felem w -> p: Hacl.Impl.Poly1305.Field32xN.precomp_r w -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Impl.Poly1305.Field32xN.felem", "Hacl.Impl.Poly1305.Field32xN.precomp_r", "Hacl.Spec.Poly1305.Field32xN.uint64xN", "Lib.Buffer.op_Array_Assignment", "FStar.UInt32.__uint_to_t", "Prims.unit", "Hacl.Spec.Poly1305.Field32xN.felem5", "Hacl.Spec.Poly1305.Field3...
[]
false
true
false
false
false
let fadd_mul_r #w out f1 p =
let r = sub p 0ul 5ul in let r5 = sub p 5ul 5ul in let r0 = r.(0ul) in let r1 = r.(1ul) in let r2 = r.(2ul) in let r3 = r.(3ul) in let r4 = r.(4ul) in let r50 = r5.(0ul) in let r51 = r5.(1ul) in let r52 = r5.(2ul) in let r53 = r5.(3ul) in let r54 = r5.(4ul) in let f10 = f1.(0ul) in let f11 = f1.(1ul) in let f12 = f1.(2...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_layout_data_buffer
val valid_layout_data_buffer : t: Vale.Arch.HeapTypes_s.base_typ -> b: Vale.PPC64LE.Memory.buffer t -> layout: Vale.Arch.HeapImpl.vale_heap_layout_inner -> hid: Vale.Arch.HeapImpl.heaplet_id -> write: Prims.bool -> Prims.logical
let valid_layout_data_buffer (t:base_typ) (b:buffer t) (layout:vale_heap_layout_inner) (hid:heaplet_id) (write:bool) = exists (n:nat).{:pattern (Seq.index layout.vl_buffers n)} n < Seq.length layout.vl_buffers /\ ( let bi = Seq.index layout.vl_buffers n in t == bi.bi_typ /\ b == bi.bi_buffer /\ (write...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 685, "start_col": 0, "start_line": 679 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
t: Vale.Arch.HeapTypes_s.base_typ -> b: Vale.PPC64LE.Memory.buffer t -> layout: Vale.Arch.HeapImpl.vale_heap_layout_inner -> hid: Vale.Arch.HeapImpl.heaplet_id -> write: Prims.bool -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap_layout_inner", "Vale.Arch.HeapImpl.heaplet_id", "Prims.bool", "Prims.l_Exists", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Vale.Arch.HeapImpl.buffer_info",...
[]
false
false
false
false
true
let valid_layout_data_buffer (t: base_typ) (b: buffer t) (layout: vale_heap_layout_inner) (hid: heaplet_id) (write: bool) =
exists (n: nat). {:pattern (Seq.index layout.vl_buffers n)} n < Seq.length layout.vl_buffers /\ (let bi = Seq.index layout.vl_buffers n in t == bi.bi_typ /\ b == bi.bi_buffer /\ (write ==> bi.bi_mutable == Mutable) /\ hid == bi.bi_heaplet)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.lemma_store_mem64
val lemma_store_mem64 (b:buffer64) (i:nat) (v:nat64) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ buffer_writeable b ) (ensures store_mem64 (buffer_addr b h + scale8 i) v h == buffer_write b i v h )
val lemma_store_mem64 (b:buffer64) (i:nat) (v:nat64) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ buffer_writeable b ) (ensures store_mem64 (buffer_addr b h + scale8 i) v h == buffer_write b i v h )
let lemma_store_mem64 b i v h = lemma_store_mem TUInt64 b i v h
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 540, "start_col": 0, "start_line": 540 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, ...
{ "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
b: Vale.PPC64LE.Memory.buffer64 -> i: Prims.nat -> v: Vale.Def.Types_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires i < FStar.Seq.Base.length (Vale.PPC64LE.Memory.buffer_as_seq h b) /\ Vale.PPC64LE.Memory.buffer_readable h b /\ Vale.PPC64LE.Memory...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.PPC64LE.Memory.buffer64", "Prims.nat", "Vale.Def.Types_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "Vale.PPC64LE.Memory.lemma_store_mem", "Vale.Arch.HeapTypes_s.TUInt64", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_store_mem64 b i v h =
lemma_store_mem TUInt64 b i v h
false
Hacl.Impl.Poly1305.Field32xN.fst
Hacl.Impl.Poly1305.Field32xN.set_bit
val set_bit: #w:lanes -> f:felem w -> i:size_t{size_v i <= 128} -> Stack unit (requires fun h -> live h f /\ felem_fits h f (1, 1, 1, 1, 1) /\ felem_less #w h f (pow2 (v i))) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (Math....
val set_bit: #w:lanes -> f:felem w -> i:size_t{size_v i <= 128} -> Stack unit (requires fun h -> live h f /\ felem_fits h f (1, 1, 1, 1, 1) /\ felem_less #w h f (pow2 (v i))) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (Math....
let set_bit #w f i = let b = u64 1 <<. (i %. 26ul) in let mask = vec_load b w in let fi = f.(i /. 26ul) in let h0 = ST.get () in f.(i /. 26ul) <- vec_or fi mask; set_bit5_lemma (as_seq h0 f) (v i)
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Field32xN.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 142, "start_col": 0, "start_line": 136 }
module Hacl.Impl.Poly1305.Field32xN open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.IntVector include Hacl.Spec.Poly1305.Field32xN open Hacl.Spec.Poly1305.Field32xN.Lemmas open Hacl.Impl.Poly1305.Lemmas module Vec = Hacl.Spec.Poly1305.Vec...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Field32xN.felem w -> i: Lib.IntTypes.size_t{Lib.IntTypes.size_v i <= 128} -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Impl.Poly1305.Field32xN.felem", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.size_v", "Hacl.Spec.Poly1305.Field32xN.Lemmas.set_bit5_lemma", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Hacl.Spec.Poly1305.Field32xN.uint64xN", ...
[]
false
true
false
false
false
let set_bit #w f i =
let b = u64 1 <<. (i %. 26ul) in let mask = vec_load b w in let fi = f.(i /. 26ul) in let h0 = ST.get () in f.(i /. 26ul) <- vec_or fi mask; set_bit5_lemma (as_seq h0 f) (v i)
false
LL.fst
LL.return
val return (a: Type) (x: a) : repr a (fun p n -> p (Some (x, n)))
val return (a: Type) (x: a) : repr a (fun p n -> p (Some (x, n)))
let return (a:Type) (x:a) : repr a (fun p n -> p (Some (x, n))) = fun n -> (x, n)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 236, "start_col": 0, "start_line": 234 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> x: a -> LL.repr a (fun p n -> p (FStar.Pervasives.Native.Some (x, n)))
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2", "LL.repr", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.Some" ]
[]
false
false
false
false
false
let return (a: Type) (x: a) : repr a (fun p n -> p (Some (x, n))) =
fun n -> (x, n)
false
LL.fst
LL.get_flt_stexn_reified
val get_flt_stexn_reified (n: nat) : Pure (option (flt * nat)) (requires n > 0) (ensures fun r -> match r with | None -> True | Some (flt, _) -> flt.n1 == n)
val get_flt_stexn_reified (n: nat) : Pure (option (flt * nat)) (requires n > 0) (ensures fun r -> match r with | None -> True | Some (flt, _) -> flt.n1 == n)
let get_flt_stexn_reified (n:nat) : Pure (option (flt * nat)) (requires n > 0) (ensures fun r -> match r with | None -> True | Some (flt, _) -> flt.n1 == n) = reify (reify (get_flt_stexn ()) n) ()
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 345, "start_col": 0, "start_line": 338 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
n: Prims.nat -> Prims.Pure (FStar.Pervasives.Native.option (LL.flt * Prims.nat))
Prims.Pure
[]
[]
[ "Prims.nat", "LL.get_flt_stexn", "LL.flt", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.option", "Prims.b2t", "Prims.op_GreaterThan", "Prims.l_True", "Prims.eq2", "LL.__proj__Mkflt__item__n1" ]
[]
false
false
false
false
false
let get_flt_stexn_reified (n: nat) : Pure (option (flt * nat)) (requires n > 0) (ensures fun r -> match r with | None -> True | Some (flt, _) -> flt.n1 == n) =
reify (reify (get_flt_stexn ()) n) ()
false
LL.fst
LL.subcomp
val subcomp (a: Type) (wp_f wp_g: wp_t a) (f: repr a wp_f) : Pure (repr a wp_g) (requires forall p n. wp_g p n ==> wp_f p n) (ensures fun _ -> True)
val subcomp (a: Type) (wp_f wp_g: wp_t a) (f: repr a wp_f) : Pure (repr a wp_g) (requires forall p n. wp_g p n ==> wp_f p n) (ensures fun _ -> True)
let subcomp (a:Type) (wp_f:wp_t a) (wp_g:wp_t a) (f:repr a wp_f) : Pure (repr a wp_g) (requires forall p n. wp_g p n ==> wp_f p n) (ensures fun _ -> True) = f
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 270, "start_col": 0, "start_line": 264 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> wp_f: LL.wp_t a -> wp_g: LL.wp_t a -> f: LL.repr a wp_f -> Prims.Pure (LL.repr a wp_g)
Prims.Pure
[]
[]
[ "LL.wp_t", "LL.repr", "Prims.l_Forall", "LL.post_t", "Prims.nat", "Prims.l_imp", "Prims.l_True" ]
[]
false
false
false
false
false
let subcomp (a: Type) (wp_f wp_g: wp_t a) (f: repr a wp_f) : Pure (repr a wp_g) (requires forall p n. wp_g p n ==> wp_f p n) (ensures fun _ -> True) =
f
false
LL.fst
LL.lift_pure_stexn
val lift_pure_stexn (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : repr a (lift_pure_wp_stexn wp)
val lift_pure_stexn (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : repr a (lift_pure_wp_stexn wp)
let lift_pure_stexn (a:Type) (wp:pure_wp a) (f:unit -> PURE a wp) : repr a (lift_pure_wp_stexn wp) = FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun n -> (f (), n)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 298, "start_col": 0, "start_line": 295 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> wp: Prims.pure_wp a -> f: (_: Prims.unit -> Prims.PURE a) -> LL.repr a (LL.lift_pure_wp_stexn wp)
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "Prims.unit", "Prims.nat", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2", "FStar.Monotonic.Pure.elim_pure_wp_monotonicity", "LL.repr", "LL.lift_pure_wp_stexn" ]
[]
false
false
false
false
false
let lift_pure_stexn (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp)) : repr a (lift_pure_wp_stexn wp) =
FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun n -> (f (), n)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.inv_heaplets
val inv_heaplets : layout: Vale.Arch.HeapImpl.vale_heap_layout_inner -> h: Vale.Arch.HeapImpl.vale_heap -> hs: Vale.Arch.HeapImpl.vale_heaplets -> mt: Vale.Arch.HeapTypes_s.memTaint_t -> Prims.logical
let inv_heaplets (layout:vale_heap_layout_inner) (h:vale_heap) (hs:vale_heaplets) (mt:memTaint_t) = let bs = layout.vl_buffers in modifies layout.vl_mod_loc layout.vl_old_heap h /\ // modifies for entire heap (forall (i:heaplet_id) (a:int).{:pattern Set.mem a (layout.vl_heaplet_sets i)} layout.vl_heaplet_map...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 6, "end_line": 736, "start_col": 0, "start_line": 724 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
layout: Vale.Arch.HeapImpl.vale_heap_layout_inner -> h: Vale.Arch.HeapImpl.vale_heap -> hs: Vale.Arch.HeapImpl.vale_heaplets -> mt: Vale.Arch.HeapTypes_s.memTaint_t -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap_layout_inner", "Vale.Arch.HeapImpl.vale_heap", "Vale.Arch.HeapImpl.vale_heaplets", "Vale.Arch.HeapTypes_s.memTaint_t", "Prims.l_and", "Vale.PPC64LE.Memory.modifies", "Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout_inner__item__vl_mod_loc", "Vale.Arch.HeapImpl.__proj__Mkval...
[]
false
false
false
true
true
let inv_heaplets (layout: vale_heap_layout_inner) (h: vale_heap) (hs: vale_heaplets) (mt: memTaint_t) =
let bs = layout.vl_buffers in modifies layout.vl_mod_loc layout.vl_old_heap h /\ (forall (i: heaplet_id) (a: int). {:pattern Set.mem a (layout.vl_heaplet_sets i)} layout.vl_heaplet_map a == Some i <==> Set.mem a (layout.vl_heaplet_sets i)) /\ (forall (i: heaplet_id). {:pattern (Map16.sel hs i)} inv_heaplet (lay...
false
LL.fst
LL.bind_wp
val bind_wp (a b: Type) (wp_f: wp_t a) (wp_g: (a -> wp_t b)) : wp_t b
val bind_wp (a b: Type) (wp_f: wp_t a) (wp_g: (a -> wp_t b)) : wp_t b
let bind_wp (a:Type) (b:Type) (wp_f:wp_t a) (wp_g:a -> wp_t b) : wp_t b = fun p n0 -> wp_f (fun r -> match r with | None -> p None | Some (x, n1) -> (wp_g x) p n1) n0
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 251, "start_col": 0, "start_line": 246 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> b: Type -> wp_f: LL.wp_t a -> wp_g: (_: a -> LL.wp_t b) -> LL.wp_t b
Prims.Tot
[ "total" ]
[]
[ "LL.wp_t", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "Prims.nat", "FStar.Pervasives.Native.None" ]
[]
false
false
false
true
false
let bind_wp (a b: Type) (wp_f: wp_t a) (wp_g: (a -> wp_t b)) : wp_t b =
fun p n0 -> wp_f (function | None -> p None | Some (x, n1) -> (wp_g x) p n1) n0
false
LL.fst
LL.post_a
val post_a (a b: Type) (wp_g: (a -> wp_t b)) (p: post_t b) : post_t a
val post_a (a b: Type) (wp_g: (a -> wp_t b)) (p: post_t b) : post_t a
let post_a (a:Type) (b:Type) (wp_g:a -> wp_t b) (p:post_t b) : post_t a = fun r -> match r with | None -> p None | Some r -> wp_g (Mktuple2?._1 r) p (Mktuple2?._2 r)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 54, "end_line": 243, "start_col": 0, "start_line": 239 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
a: Type -> b: Type -> wp_g: (_: a -> LL.wp_t b) -> p: LL.post_t b -> LL.post_t a
Prims.Tot
[ "total" ]
[]
[ "LL.wp_t", "LL.post_t", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "Prims.nat", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", "FStar.Pervasives.Native.__proj__Mktuple2__item___2" ]
[]
false
false
false
true
false
let post_a (a b: Type) (wp_g: (a -> wp_t b)) (p: post_t b) : post_t a =
function | None -> p None | Some r -> wp_g (Mktuple2?._1 r) p (Mktuple2?._2 r)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_layout_buffer_id
val valid_layout_buffer_id (t:base_typ) (b:buffer t) (layout:vale_heap_layout) (h_id:option heaplet_id) (write:bool) : prop0
val valid_layout_buffer_id (t:base_typ) (b:buffer t) (layout:vale_heap_layout) (h_id:option heaplet_id) (write:bool) : prop0
let valid_layout_buffer_id t b layout h_id write = match h_id with | None -> True | Some hid -> layout.vl_inner.vl_heaplets_initialized /\ valid_layout_data_buffer t b layout.vl_inner hid write
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 693, "start_col": 0, "start_line": 688 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
t: Vale.Arch.HeapTypes_s.base_typ -> b: Vale.PPC64LE.Memory.buffer t -> layout: Vale.Arch.HeapImpl.vale_heap_layout -> h_id: FStar.Pervasives.Native.option Vale.Arch.HeapImpl.heaplet_id -> write: Prims.bool -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.PPC64LE.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap_layout", "FStar.Pervasives.Native.option", "Vale.Arch.HeapImpl.heaplet_id", "Prims.bool", "Prims.l_True", "Prims.l_and", "Prims.b2t", "Vale.Arch.HeapImpl.__proj__Mkvale_heap_layout_inner__item__vl_heaplet...
[]
false
false
false
false
false
let valid_layout_buffer_id t b layout h_id write =
match h_id with | None -> True | Some hid -> layout.vl_inner.vl_heaplets_initialized /\ valid_layout_data_buffer t b layout.vl_inner hid write
false
LL.fst
LL.lift_pure_wp_stexn
val lift_pure_wp_stexn (#a: Type) (wp: pure_wp a) : wp_t a
val lift_pure_wp_stexn (#a: Type) (wp: pure_wp a) : wp_t a
let lift_pure_wp_stexn (#a:Type) (wp:pure_wp a) : wp_t a = FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun p n -> wp (fun x -> p (Some (x, n)))
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 292, "start_col": 0, "start_line": 290 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
wp: Prims.pure_wp a -> LL.wp_t a
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "Prims.l_True", "Prims.nat", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.Mktuple2", "Prims.pure_pre", "Prims.unit", "FStar.Monotonic.Pure.elim_pure_wp_monotonicity", "LL.wp_t" ]
[]
false
false
false
true
false
let lift_pure_wp_stexn (#a: Type) (wp: pure_wp a) : wp_t a =
FStar.Monotonic.Pure.elim_pure_wp_monotonicity wp; fun p n -> wp (fun x -> p (Some (x, n)))
false
LL.fst
LL.get_n1_exn
val get_n1_exn (n: nat) : Exn (nat * nat) (requires n > 0) (ensures fun r -> match r with | None -> True | Some (n1, n2) -> n1 == n /\ n2 == n + 1)
val get_n1_exn (n: nat) : Exn (nat * nat) (requires n > 0) (ensures fun r -> match r with | None -> True | Some (n1, n2) -> n1 == n /\ n2 == n + 1)
let get_n1_exn (n:nat) : Exn (nat * nat) (requires n > 0) (ensures fun r -> match r with | None -> True | Some (n1, n2) -> n1 == n /\ n2 == n + 1) = EXN?.reflect (fun _ -> get_n1 n)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 190, "start_col": 0, "start_line": 183 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
n: Prims.nat -> LL.Exn (Prims.nat * Prims.nat)
LL.Exn
[]
[]
[ "Prims.nat", "Prims.unit", "LL.get_n1", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "Prims.b2t", "Prims.op_GreaterThan", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Prims.int", "Prims.op_Addition" ]
[]
false
true
false
false
false
let get_n1_exn (n: nat) : Exn (nat * nat) (requires n > 0) (ensures fun r -> match r with | None -> True | Some (n1, n2) -> n1 == n /\ n2 == n + 1) =
EXN?.reflect (fun _ -> get_n1 n)
false
Hacl.Impl.Poly1305.fst
Hacl.Impl.Poly1305.poly1305_mac
val poly1305_mac: #s:field_spec -> poly1305_mac_st s
val poly1305_mac: #s:field_spec -> poly1305_mac_st s
let poly1305_mac #s output input input_len key = push_frame (); let ctx = create (nlimb s +! precomplen s) (limb_zero s) in poly1305_init #s ctx key; poly1305_update #s ctx input_len input; poly1305_finish #s output key ctx; pop_frame ()
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 615, "start_col": 0, "start_line": 609 }
module Hacl.Impl.Poly1305 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305.Bignum128 module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence module LSeq = Lib.Sequence module S = Spec.P...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.By...
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Equiv", "short_module": "Equiv" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Poly1305.poly1305_mac_st s
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.Buffer.buffer", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "Lib.IntTypes.range", "Lib.IntTypes.U32", ...
[]
false
false
false
false
false
let poly1305_mac #s output input input_len key =
push_frame (); let ctx = create (nlimb s +! precomplen s) (limb_zero s) in poly1305_init #s ctx key; poly1305_update #s ctx input_len input; poly1305_finish #s output key ctx; pop_frame ()
false
LL.fst
LL.get_n1_stexn
val get_n1_stexn: unit -> StExn nat (requires fun n -> n > 0) (ensures fun n r -> match r with | None -> True | Some (n1, n2) -> n1 == n /\ n2 == n + 1)
val get_n1_stexn: unit -> StExn nat (requires fun n -> n > 0) (ensures fun n r -> match r with | None -> True | Some (n1, n2) -> n1 == n /\ n2 == n + 1)
let get_n1_stexn (_:unit) : StExn nat (requires fun n -> n > 0) (ensures fun n r -> match r with | None -> True | Some (n1, n2) -> n1 == n /\ n2 == n + 1) = STEXN?.reflect (fun n -> get_n1_exn n)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 317, "start_col": 0, "start_line": 310 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
_: Prims.unit -> LL.StExn Prims.nat
LL.StExn
[]
[]
[ "Prims.unit", "Prims.nat", "LL.get_n1_exn", "FStar.Pervasives.Native.tuple2", "Prims.b2t", "Prims.op_GreaterThan", "FStar.Pervasives.Native.option", "Prims.l_True", "Prims.l_and", "Prims.eq2", "Prims.int", "Prims.op_Addition" ]
[]
false
true
false
false
false
let get_n1_stexn (_: unit) : StExn nat (requires fun n -> n > 0) (ensures fun n r -> match r with | None -> True | Some (n1, n2) -> n1 == n /\ n2 == n + 1) =
STEXN?.reflect (fun n -> get_n1_exn n)
false
LL.fst
LL.main
val main : Prims.unit
let main = let nopt = test_st () in FStar.IO.print_string (match nopt with | None -> FStar.All.failwith "Unexpected none" | Some n -> FStar.Printf.sprintf "Output: %d\n" n)
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 75, "end_line": 360, "start_col": 0, "start_line": 356 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.IO.print_string", "Prims.unit", "Prims.string", "FStar.All.failwith", "Prims.int", "FStar.Printf.sprintf", "FStar.Pervasives.Native.option", "LL.test_st" ]
[]
false
false
false
true
false
let main =
let nopt = test_st () in FStar.IO.print_string (match nopt with | None -> FStar.All.failwith "Unexpected none" | Some n -> FStar.Printf.sprintf "Output: %d\n" n)
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.heaps_match
val heaps_match (bs:Seq.seq buffer_info) (mt:memtaint) (h1 h2:vale_heap) (id:heaplet_id) : prop0
val heaps_match (bs:Seq.seq buffer_info) (mt:memtaint) (h1 h2:vale_heap) (id:heaplet_id) : prop0
let heaps_match bs mt h1 h2 id = forall (i:nat).{:pattern Seq.index bs i} i < Seq.length bs ==> ( let Mkbuffer_info t b hid tn _ = Seq.index bs i in hid == id ==> buffer_as_seq h1 b == buffer_as_seq h2 b /\ buffer_addr b h1 == buffer_addr b h2 /\ buffer_readable h1 b == buffer_readable h2 b /\ ...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 768, "start_col": 0, "start_line": 758 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
bs: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> mt: Vale.PPC64LE.Memory.memtaint -> h1: Vale.Arch.HeapImpl.vale_heap -> h2: Vale.Arch.HeapImpl.vale_heap -> id: Vale.Arch.HeapImpl.heaplet_id -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "Vale.Arch.HeapImpl.buffer_info", "Vale.PPC64LE.Memory.memtaint", "Vale.Arch.HeapImpl.vale_heap", "Vale.Arch.HeapImpl.heaplet_id", "Prims.l_Forall", "Prims.nat", "Prims.l_imp", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Vale.Arch.HeapTypes_s.base_typ", ...
[]
false
false
false
true
false
let heaps_match bs mt h1 h2 id =
forall (i: nat). {:pattern Seq.index bs i} i < Seq.length bs ==> (let Mkbuffer_info t b hid tn _ = Seq.index bs i in hid == id ==> buffer_as_seq h1 b == buffer_as_seq h2 b /\ buffer_addr b h1 == buffer_addr b h2 /\ buffer_readable h1 b == buffer_readable h2 b /\ (t == TUInt64 ==> (valid_taint_buf64 ...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.write_taint_lemma
val write_taint_lemma (i: nat) (mem: IB.interop_heap) (ts: (b8 -> GTot taint)) (b: b8) (accu: memtaint) : Lemma (requires i <= DV.length (get_downview b.bsrc) /\ (forall (j: int). {:pattern accu.[ j ]} mem.addrs b <= j /\ j < mem.addrs b + i ==> accu.[...
val write_taint_lemma (i: nat) (mem: IB.interop_heap) (ts: (b8 -> GTot taint)) (b: b8) (accu: memtaint) : Lemma (requires i <= DV.length (get_downview b.bsrc) /\ (forall (j: int). {:pattern accu.[ j ]} mem.addrs b <= j /\ j < mem.addrs b + i ==> accu.[...
let rec write_taint_lemma (i:nat) (mem:IB.interop_heap) (ts:b8 -> GTot taint) (b:b8) (accu:memtaint) : Lemma (requires i <= DV.length (get_downview b.bsrc) /\ (forall (j:int).{:pattern accu.[j]} mem.addrs b <= j /\ j < mem.addrs b + i ==> accu.[j] = ts b) ) (ensures ( let m = IB.write_taint i mem ts b...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 659, "start_col": 0, "start_line": 637 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
i: Prims.nat -> mem: Vale.Interop.Heap_s.interop_heap -> ts: (_: Vale.PPC64LE.Memory.b8 -> Prims.GTot Vale.Arch.HeapTypes_s.taint) -> b: Vale.PPC64LE.Memory.b8 -> accu: Vale.PPC64LE.Memory.memtaint -> FStar.Pervasives.Lemma (requires i <= LowStar.BufferView.Down.length (Vale.Interop...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.nat", "Vale.Interop.Heap_s.interop_heap", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapTypes_s.taint", "Vale.PPC64LE.Memory.memtaint", "Prims.op_GreaterThanOrEqual", "LowStar.BufferView.Down.length", "FStar.UInt8.t", "Vale.Interop.Types.get_downview", "Vale.Interop.Types.__proj__Buffer__item__s...
[ "recursion" ]
false
false
true
false
false
let rec write_taint_lemma (i: nat) (mem: IB.interop_heap) (ts: (b8 -> GTot taint)) (b: b8) (accu: memtaint) : Lemma (requires i <= DV.length (get_downview b.bsrc) /\ (forall (j: int). {:pattern accu.[ j ]} mem.addrs b <= j /\ j < mem.addrs b + i ==> ac...
let m = IB.write_taint i mem ts b accu in let addr = mem.addrs b in if i >= DV.length (get_downview b.bsrc) then () else let new_accu = accu.[ addr + i ] <- ts b in assert (IB.write_taint i mem ts b accu == IB.write_taint (i + 1) mem ts b new_accu); assert (Set.equal (Map.domain new_accu) (Set.complement Set.empt...
false
Vale.PPC64LE.Memory.fst
Vale.PPC64LE.Memory.valid_memtaint
val valid_memtaint (mem: vale_heap) (ps: list b8) (ts: (b8 -> GTot taint)) : Lemma (requires IB.list_disjoint_or_eq ps) (ensures valid_taint_bufs mem (IB.create_memtaint (_ih mem) ps ts) ps ts)
val valid_memtaint (mem: vale_heap) (ps: list b8) (ts: (b8 -> GTot taint)) : Lemma (requires IB.list_disjoint_or_eq ps) (ensures valid_taint_bufs mem (IB.create_memtaint (_ih mem) ps ts) ps ts)
let rec valid_memtaint (mem:vale_heap) (ps:list b8) (ts:b8 -> GTot taint) : Lemma (requires IB.list_disjoint_or_eq ps) (ensures valid_taint_bufs mem (IB.create_memtaint (_ih mem) ps ts) ps ts) = FStar.Pervasives.reveal_opaque (`%addr_map_pred) addr_map_pred; match ps with | [] -> () | b :: q -> ...
{ "file_name": "vale/code/arch/ppc64le/Vale.PPC64LE.Memory.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 142, "end_line": 677, "start_col": 0, "start_line": 662 }
module Vale.PPC64LE.Memory include Vale.Interop.Types friend Vale.Arch.Heap open Vale.Def.Opaque_s open Vale.Arch.HeapImpl open Vale.Arch.Heap open Vale.Interop.Base module IB = Vale.Interop.Base module I = Vale.Interop module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MB = LowStar.Monotonic.Buffer m...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.Types.fst.checked", "Vale.Interop.Base.fst.checked", "Vale.Interop.fsti.checked", "Vale...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "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
mem: Vale.Arch.HeapImpl.vale_heap -> ps: Prims.list Vale.PPC64LE.Memory.b8 -> ts: (_: Vale.PPC64LE.Memory.b8 -> Prims.GTot Vale.Arch.HeapTypes_s.taint) -> FStar.Pervasives.Lemma (requires Vale.Interop.Heap_s.list_disjoint_or_eq ps) (ensures Vale.PPC64LE.Memory.valid_taint_bufs mem ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "Prims.list", "Vale.PPC64LE.Memory.b8", "Vale.Arch.HeapTypes_s.taint", "Vale.Def.Opaque_s.opaque_assert", "Vale.Interop.Types.b8", "Prims.logical", "Vale.Interop.Heap_s.list_disjoint_or_eq", "Vale.Interop.Heap_s.list_disjoint_or_eq_def", "Prims.l_Forall", "Prims.l...
[ "recursion" ]
false
false
true
false
false
let rec valid_memtaint (mem: vale_heap) (ps: list b8) (ts: (b8 -> GTot taint)) : Lemma (requires IB.list_disjoint_or_eq ps) (ensures valid_taint_bufs mem (IB.create_memtaint (_ih mem) ps ts) ps ts) =
FStar.Pervasives.reveal_opaque (`%addr_map_pred) addr_map_pred; match ps with | [] -> () | b :: q -> assert (List.memP b ps); assert (forall i. {:pattern List.memP i q} List.memP i q ==> List.memP i ps); opaque_assert (`%list_disjoint_or_eq) list_disjoint_or_eq list_disjoint_or_eq_def (IB.list_disjoin...
false
LL.fst
LL.get_flt_stexn
val get_flt_stexn: unit -> StExn flt (requires fun n -> n > 0) (ensures fun n r -> match r with | None -> True | Some (flt, _) -> flt.n1 == n)
val get_flt_stexn: unit -> StExn flt (requires fun n -> n > 0) (ensures fun n r -> match r with | None -> True | Some (flt, _) -> flt.n1 == n)
let get_flt_stexn (_:unit) : StExn flt (requires fun n -> n > 0) (ensures fun n r -> match r with | None -> True | Some (flt, _) -> flt.n1 == n) = let x = get_n1_stexn () in let y = get_n1_stexn () in let z = get_n1_stexn () in { n1 = x; n2 = y; n3 = z}
{ "file_name": "examples/layeredeffects/LL.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 333, "start_col": 0, "start_line": 323 }
(* 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.Printf.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.IO.fst.checked", "FStar.All.fst.checked" ], "interface_file": false, "source_...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "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
_: Prims.unit -> LL.StExn LL.flt
LL.StExn
[]
[]
[ "Prims.unit", "LL.Mkflt", "LL.flt", "Prims.nat", "LL.get_n1_stexn", "Prims.b2t", "Prims.op_GreaterThan", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "Prims.l_True", "Prims.eq2", "LL.__proj__Mkflt__item__n1" ]
[]
false
true
false
false
false
let get_flt_stexn (_: unit) : StExn flt (requires fun n -> n > 0) (ensures fun n r -> match r with | None -> True | Some (flt, _) -> flt.n1 == n) =
let x = get_n1_stexn () in let y = get_n1_stexn () in let z = get_n1_stexn () in { n1 = x; n2 = y; n3 = z }
false
Spec.SHA3.Incremental.fst
Spec.SHA3.Incremental.suffix
val suffix : a: Spec.Hash.Definitions.keccak_alg -> b: Lib.IntTypes.byte_t{Lib.IntTypes.v b == 0x1f \/ Lib.IntTypes.v b == 0x06}
let suffix (a: keccak_alg) = if is_shake a then byte 0x1f else byte 0x06
{ "file_name": "specs/lemmas/Spec.SHA3.Incremental.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 72, "end_line": 43, "start_col": 0, "start_line": 43 }
module Spec.SHA3.Incremental module S = FStar.Seq open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Incremental.Definitions open Spec.Hash.Lemmas friend Spec.Agile.Hash open FStar.Mul module Loops = Lib.LoopCombinators module UpdateMulti = Lib.UpdateMulti open Lib.IntTypes #set-options "--fuel 0 --if...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.Lemmas.fsti.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fst.checked", "Spec.Agile.Hash.fst.checked", "prims.fst.checked", "Lib.UpdateMulti...
[ { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module": "Lib.UpdateMulti", "short_module": "UpdateMulti" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, ...
{ "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: Spec.Hash.Definitions.keccak_alg -> b: Lib.IntTypes.byte_t{Lib.IntTypes.v b == 0x1f \/ Lib.IntTypes.v b == 0x06}
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.keccak_alg", "Spec.Hash.Definitions.is_shake", "Lib.IntTypes.byte", "Prims.bool", "Lib.IntTypes.byte_t", "Prims.l_or", "Prims.eq2", "Prims.int", "Lib.IntTypes.range", "Lib.IntTypes.U8", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Prims.op_LessThan", ...
[]
false
false
false
false
false
let suffix (a: keccak_alg) =
if is_shake a then byte 0x1f else byte 0x06
false
Vale.X64.InsAes.fsti
Vale.X64.InsAes.va_wp_Pclmulqdq
val va_wp_Pclmulqdq (dst src: va_operand_xmm) (dstHi srcHi: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_Pclmulqdq (dst src: va_operand_xmm) (dstHi srcHi: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_Pclmulqdq (dst:va_operand_xmm) (src:va_operand_xmm) (dstHi:bool) (srcHi:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ pclmulqdq_enabled /\ (forall (va_x_dst:va_value_xmm) (va_x_efl:Vale.X64.Flags.t) . let v...
{ "file_name": "obj/Vale.X64.InsAes.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 86, "end_line": 44, "start_col": 0, "start_line": 35 }
module Vale.X64.InsAes open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.AES_s open Vale.Math.Poly2_s open Vale.Math.Poly2.Bits_s open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.CPU_Features_s //-- Pclmulqdq val va_code_Pclmulqdq : dst:...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Flags.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Mat...
[ { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Instructions_s", "short_module": "I" }, { "abbrev": false...
{ "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
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> dstHi: Prims.bool -> srcHi: Prims.bool -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Prims.bool", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.X64.Decls.va_is_dst_xmm", "Vale.X64.Decls.va_is_src_xmm", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.pclmulqdq_enabled", "Prims.l_Forall", "Vale.X64.Decls.va_valu...
[]
false
false
false
true
true
let va_wp_Pclmulqdq (dst src: va_operand_xmm) (dstHi srcHi: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ pclmulqdq_enabled /\ (forall (va_x_dst: va_value_xmm) (va_x_efl: Vale.X64.Flags.t). let va_sM = va_upd_flags va_x_efl (va_upd_operand_xmm dst va_x_dst va_s0) in va_get_ok va_sM /\ va_eval_xmm va_sM dst == Vale.Math.Poly2...
false
Vale.X64.InsAes.fsti
Vale.X64.InsAes.va_wp_AESNI_enc
val va_wp_AESNI_enc (dst src: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_AESNI_enc (dst src: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_AESNI_enc (dst:va_operand_xmm) (src:va_operand_xmm) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ aesni_enabled /\ (forall (va_x_dst:va_value_xmm) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl ...
{ "file_name": "obj/Vale.X64.InsAes.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 131, "start_col": 0, "start_line": 124 }
module Vale.X64.InsAes open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.AES_s open Vale.Math.Poly2_s open Vale.Math.Poly2.Bits_s open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.CPU_Features_s //-- Pclmulqdq val va_code_Pclmulqdq : dst:...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Flags.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Mat...
[ { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Instructions_s", "short_module": "I" }, { "abbrev": false...
{ "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
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.X64.Decls.va_is_dst_xmm", "Vale.X64.Decls.va_is_src_xmm", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.aesni_enabled", "Prims.l_Forall", "Vale.X64.Decls.va_value_xmm", "Vale.X64....
[]
false
false
false
true
true
let va_wp_AESNI_enc (dst src: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ aesni_enabled /\ (forall (va_x_dst: va_value_xmm) (va_x_efl: Vale.X64.Flags.t). let va_sM = va_upd_flags va_x_efl (va_upd_operand_xmm dst va_x_dst va_s0) in va_get_ok va_sM /\ va_eval_xmm va_sM dst == Vale.Def.Types_s.qu...
false
Vale.X64.InsAes.fsti
Vale.X64.InsAes.va_wp_VPclmulqdq
val va_wp_VPclmulqdq (dst src1 src2: va_operand_xmm) (src1Hi src2Hi: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_VPclmulqdq (dst src1 src2: va_operand_xmm) (src1Hi src2Hi: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_VPclmulqdq (dst:va_operand_xmm) (src1:va_operand_xmm) (src2:va_operand_xmm) (src1Hi:bool) (src2Hi:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src1 va_s0 /\ va_is_src_xmm src2 va_s0 /\ va_get_ok va_s0 /\ (pclmulqdq_enabled /\ avx_enabled...
{ "file_name": "obj/Vale.X64.InsAes.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 92, "start_col": 0, "start_line": 81 }
module Vale.X64.InsAes open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.AES_s open Vale.Math.Poly2_s open Vale.Math.Poly2.Bits_s open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.CPU_Features_s //-- Pclmulqdq val va_code_Pclmulqdq : dst:...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Flags.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Mat...
[ { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Instructions_s", "short_module": "I" }, { "abbrev": false...
{ "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
dst: Vale.X64.Decls.va_operand_xmm -> src1: Vale.X64.Decls.va_operand_xmm -> src2: Vale.X64.Decls.va_operand_xmm -> src1Hi: Prims.bool -> src2Hi: Prims.bool -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Prims.bool", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.X64.Decls.va_is_dst_xmm", "Vale.X64.Decls.va_is_src_xmm", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.pclmulqdq_enabled", "Vale.X64.CPU_Features_s.avx_enabled", "P...
[]
false
false
false
true
true
let va_wp_VPclmulqdq (dst src1 src2: va_operand_xmm) (src1Hi src2Hi: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src1 va_s0 /\ va_is_src_xmm src2 va_s0 /\ va_get_ok va_s0 /\ (pclmulqdq_enabled /\ avx_enabled) /\ (forall (va_x_dst: va_value_xmm) (va_x_efl: Vale.X64.Flags.t). let va_sM = va_upd_flags va_x_efl (va_upd_operand_xmm dst va_x_dst va_s0) in va_get_ok va_sM /\ ...
false
Vale.X64.InsAes.fsti
Vale.X64.InsAes.va_wp_VAESNI_enc
val va_wp_VAESNI_enc (dst src1 src2: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_VAESNI_enc (dst src1 src2: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_VAESNI_enc (dst:va_operand_xmm) (src1:va_operand_xmm) (src2:va_operand_xmm) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src1 va_s0 /\ va_is_src_xmm src2 va_s0 /\ va_get_ok va_s0 /\ (aesni_enabled /\ avx_enabled) /\ (forall (va_x_dst:va_value_...
{ "file_name": "obj/Vale.X64.InsAes.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 172, "start_col": 0, "start_line": 165 }
module Vale.X64.InsAes open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.AES_s open Vale.Math.Poly2_s open Vale.Math.Poly2.Bits_s open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.CPU_Features_s //-- Pclmulqdq val va_code_Pclmulqdq : dst:...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Flags.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Mat...
[ { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Instructions_s", "short_module": "I" }, { "abbrev": false...
{ "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
dst: Vale.X64.Decls.va_operand_xmm -> src1: Vale.X64.Decls.va_operand_xmm -> src2: Vale.X64.Decls.va_operand_xmm -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.X64.Decls.va_is_dst_xmm", "Vale.X64.Decls.va_is_src_xmm", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.aesni_enabled", "Vale.X64.CPU_Features_s.avx_enabled", "Prims.l_Forall", "V...
[]
false
false
false
true
true
let va_wp_VAESNI_enc (dst src1 src2: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src1 va_s0 /\ va_is_src_xmm src2 va_s0 /\ va_get_ok va_s0 /\ (aesni_enabled /\ avx_enabled) /\ (forall (va_x_dst: va_value_xmm) (va_x_efl: Vale.X64.Flags.t). let va_sM = va_upd_flags va_x_efl (va_upd_operand_xmm dst va_x_dst va_s0) in va_get_ok va_sM /\ va...
false
Vale.X64.InsAes.fsti
Vale.X64.InsAes.va_wp_AESNI_enc_last
val va_wp_AESNI_enc_last (dst src: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_AESNI_enc_last (dst src: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_AESNI_enc_last (dst:va_operand_xmm) (src:va_operand_xmm) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ aesni_enabled /\ (forall (va_x_dst:va_value_xmm) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_...
{ "file_name": "obj/Vale.X64.InsAes.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 208, "start_col": 0, "start_line": 202 }
module Vale.X64.InsAes open Vale.Def.Words_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.AES_s open Vale.Math.Poly2_s open Vale.Math.Poly2.Bits_s open Vale.X64.Machine_s open Vale.X64.State open Vale.X64.Decls open Vale.X64.QuickCode open Vale.X64.CPU_Features_s //-- Pclmulqdq val va_code_Pclmulqdq : dst:...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Flags.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.X64.CPU_Features_s.fst.checked", "Vale.Math.Poly2_s.fsti.checked", "Vale.Mat...
[ { "abbrev": true, "full_module": "Vale.X64.Print_s", "short_module": "P" }, { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "Vale.X64.Instructions_s", "short_module": "I" }, { "abbrev": false...
{ "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
dst: Vale.X64.Decls.va_operand_xmm -> src: Vale.X64.Decls.va_operand_xmm -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_operand_xmm", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.X64.Decls.va_is_dst_xmm", "Vale.X64.Decls.va_is_src_xmm", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.aesni_enabled", "Prims.l_Forall", "Vale.X64.Decls.va_value_xmm", "Vale.X64....
[]
false
false
false
true
true
let va_wp_AESNI_enc_last (dst src: va_operand_xmm) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_is_dst_xmm dst va_s0 /\ va_is_src_xmm src va_s0 /\ va_get_ok va_s0 /\ aesni_enabled /\ (forall (va_x_dst: va_value_xmm) (va_x_efl: Vale.X64.Flags.t). let va_sM = va_upd_flags va_x_efl (va_upd_operand_xmm dst va_x_dst va_s0) in va_get_ok va_sM /\ va_eval_xmm va_sM dst == Vale.Def.Types_s.qu...
false