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
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.undiag
val undiag: #a:Spec.alg -> #m:m_spec -> wv:state_p a m -> Stack unit (requires (fun h -> live h wv)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v h1 wv == Spec.undiag (state_v h0 wv)))
val undiag: #a:Spec.alg -> #m:m_spec -> wv:state_p a m -> Stack unit (requires (fun h -> live h wv)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v h1 wv == Spec.undiag (state_v h0 wv)))
let undiag #a #m wv = let r1 = rowi wv 1ul in let r2 = rowi wv 2ul in let r3 = rowi wv 3ul in let h0 = ST.get() in permr_row r1 3ul; permr_row r2 2ul; permr_row r3 1ul
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 218, "start_col": 0, "start_line": 211 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
wv: Hacl.Impl.Blake2.Core.state_p a m -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Hacl.Impl.Blake2.Core.permr_row", "FStar.UInt32.__uint_to_t", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "Lib.Buffer.lbuffer_t", "Lib.Buffer.MUT", "Hacl.Impl.Blake2.Co...
[]
false
true
false
false
false
let undiag #a #m wv =
let r1 = rowi wv 1ul in let r2 = rowi wv 2ul in let r3 = rowi wv 3ul in let h0 = ST.get () in permr_row r1 3ul; permr_row r2 2ul; permr_row r3 1ul
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update_blocks_st
val blake2_update_blocks_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
let blake2_update_blocks_st (al : Spec.alg) (ms : m_spec) = #len:size_t -> wv: state_p al ms -> hash: state_p al ms -> prev: Spec.limb_t al{v prev + v len <= Spec.max_limb al} -> blocks: lbuffer uint8 len -> Stack unit (requires (fun h -> live h wv /\ live h hash /\ live h blocks /\ disjoint hash blo...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 883, "start_col": 0, "start_line": 873 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Lib.IntTypes.size_t", "Hacl.Impl.Blake2.Core.state_p", "Spec.Blake2.Definitions.limb_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.v", "Spec.Blake2.Definitions.limb_inttype", "Lib.IntTypes.SEC", "...
[]
false
false
false
true
true
let blake2_update_blocks_st (al: Spec.alg) (ms: m_spec) =
#len: size_t -> wv: state_p al ms -> hash: state_p al ms -> prev: Spec.limb_t al {v prev + v len <= Spec.max_limb al} -> blocks: lbuffer uint8 len -> Stack unit (requires (fun h -> live h wv /\ live h hash /\ live h blocks /\ disjoint hash blocks /\ disjoint wv hash /\ ...
false
Vale.SHA.PPC64LE.Rounds.fst
Vale.SHA.PPC64LE.Rounds.va_lemma_Loop_rounds_0_15
val va_lemma_Loop_rounds_0_15 : va_b0:va_code -> va_s0:va_state -> in_b:buffer128 -> offset:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> input_BE:(seq quad32) -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_15 ()) va_s0 /\ va_get_ok va_s0 /\ (Vale.PPC64L...
val va_lemma_Loop_rounds_0_15 : va_b0:va_code -> va_s0:va_state -> in_b:buffer128 -> offset:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> input_BE:(seq quad32) -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_15 ()) va_s0 /\ va_get_ok va_s0 /\ (Vale.PPC64L...
let va_lemma_Loop_rounds_0_15 va_b0 va_s0 in_b offset k_b block hash_orig input_BE = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_vec 15; va_Mod_vec 14; va_...
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 179, "start_col": 0, "start_line": 112 }
module Vale.SHA.PPC64LE.Rounds open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale...
{ "checked_file": "/", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.SHA.PPC64LE.Rounds.Core.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64...
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds.Core", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "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
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> in_b: Vale.PPC64LE.Memory.buffer128 -> offset: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> input_BE: FStar....
Prims.Ghost
[]
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.Memory.buffer128", "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "FStar.Seq.Base.seq", "Vale.PPC64LE.Memory.quad32", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Perv...
[]
false
false
false
false
false
let va_lemma_Loop_rounds_0_15 va_b0 va_s0 in_b offset k_b block hash_orig input_BE =
let va_mods:va_mods_t = [ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_compress2
val blake2_compress2 : #al:Spec.alg -> #ms:m_spec -> wv: state_p al ms -> m: block_w al -> Stack unit (requires (fun h -> live h wv /\ live h m /\ disjoint wv m)) (ensures (fun h0 _ h1 -> modifies1 wv h0 h1 /\ state_v h1 wv == Spec.blake2_compress2 al (state_v h0 wv) (as_seq ...
val blake2_compress2 : #al:Spec.alg -> #ms:m_spec -> wv: state_p al ms -> m: block_w al -> Stack unit (requires (fun h -> live h wv /\ live h m /\ disjoint wv m)) (ensures (fun h0 _ h1 -> modifies1 wv h0 h1 /\ state_v h1 wv == Spec.blake2_compress2 al (state_v h0 wv) (as_seq ...
let blake2_compress2 #al #ms wv m = let h0 = ST.get () in [@inline_let] let a_spec = Spec.state al in [@inline_let] let refl h = state_v h wv in [@inline_let] let footprint = Ghost.hide(loc wv) in [@inline_let] let spec h = Spec.blake2_round al h.[|m|] in loop_refl h0 (rounds_t al) a_spec refl footp...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 387, "start_col": 0, "start_line": 374 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
wv: Hacl.Impl.Blake2.Core.state_p al ms -> m: Hacl.Impl.Blake2.Core.block_w al -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Hacl.Impl.Blake2.Core.block_w", "Lib.Buffer.loop_refl", "Hacl.Impl.Blake2.Generic.rounds_t", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntT...
[]
false
true
false
false
false
let blake2_compress2 #al #ms wv m =
let h0 = ST.get () in [@@ inline_let ]let a_spec = Spec.state al in [@@ inline_let ]let refl h = state_v h wv in [@@ inline_let ]let footprint = Ghost.hide (loc wv) in [@@ inline_let ]let spec h = Spec.blake2_round al h.[| m |] in loop_refl h0 (rounds_t al) a_spec refl footprint spec (fun i -> Loops.u...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.diag
val diag: #a:Spec.alg -> #m:m_spec -> wv:state_p a m -> Stack unit (requires (fun h -> live h wv)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v h1 wv == Spec.diag (state_v h0 wv)))
val diag: #a:Spec.alg -> #m:m_spec -> wv:state_p a m -> Stack unit (requires (fun h -> live h wv)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v h1 wv == Spec.diag (state_v h0 wv)))
let diag #a #m wv = let r1 = rowi wv 1ul in let r2 = rowi wv 2ul in let r3 = rowi wv 3ul in let h0 = ST.get() in permr_row r1 1ul; permr_row r2 2ul; permr_row r3 3ul
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 202, "start_col": 0, "start_line": 195 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
wv: Hacl.Impl.Blake2.Core.state_p a m -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Hacl.Impl.Blake2.Core.permr_row", "FStar.UInt32.__uint_to_t", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "Lib.Buffer.lbuffer_t", "Lib.Buffer.MUT", "Hacl.Impl.Blake2.Co...
[]
false
true
false
false
false
let diag #a #m wv =
let r1 = rowi wv 1ul in let r2 = rowi wv 2ul in let r3 = rowi wv 3ul in let h0 = ST.get () in permr_row r1 1ul; permr_row r2 2ul; permr_row r3 3ul
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.get_sigma'
val get_sigma' (start: size_t{v start <= 144}) (i: size_t{normalize (i <=. 15ul)}) : Stack Spec.sigma_elt_t (requires (fun h -> True)) (ensures (fun h0 z h1 -> h0 == h1 /\ z == Lib.Sequence.(Spec.sigmaTable.[ v start + v i ])))
val get_sigma' (start: size_t{v start <= 144}) (i: size_t{normalize (i <=. 15ul)}) : Stack Spec.sigma_elt_t (requires (fun h -> True)) (ensures (fun h0 z h1 -> h0 == h1 /\ z == Lib.Sequence.(Spec.sigmaTable.[ v start + v i ])))
let get_sigma' (start: size_t { v start <= 144 }) (i: size_t { normalize (i <=. 15ul) }): Stack Spec.sigma_elt_t (requires (fun h -> True)) (ensures (fun h0 z h1 -> h0 == h1 /\ z == Lib.Sequence.(Spec.sigmaTable.[v start + v i]))) = get_sigma (start +! i)
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 234, "start_col": 0, "start_line": 228 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
start: Lib.IntTypes.size_t{Lib.IntTypes.v start <= 144} -> i: Lib.IntTypes.size_t{FStar.Pervasives.normalize (i <=. 15ul)} -> FStar.HyperStack.ST.Stack Spec.Blake2.Definitions.sigma_elt_t
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.Pervasives.normalize", "Lib.IntTypes.op_Less_Equals_Dot", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Blake2.Generic.get_sigma", "Lib.IntTypes.op_Plus_Bang", "Spec.Blake2...
[]
false
true
false
false
false
let get_sigma' (start: size_t{v start <= 144}) (i: size_t{normalize (i <=. 15ul)}) : Stack Spec.sigma_elt_t (requires (fun h -> True)) (ensures (fun h0 z h1 -> h0 == h1 /\ z == Lib.Sequence.(Spec.sigmaTable.[ v start + v i ]))) =
get_sigma (start +! i)
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update1_st
val blake2_update1_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
let blake2_update1_st (al:Spec.alg) (ms:m_spec) = #len:size_t -> wv: state_p al ms -> hash: state_p al ms -> prev: Spec.limb_t al{v prev + v len <= Spec.max_limb al} -> d: lbuffer uint8 len -> i: size_t{v i < length d / Spec.size_block al} -> Stack unit (requires (fun h -> live h wv /\ live h hash /\...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 113, "end_line": 491, "start_col": 0, "start_line": 481 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Lib.IntTypes.size_t", "Hacl.Impl.Blake2.Core.state_p", "Spec.Blake2.Definitions.limb_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.v", "Spec.Blake2.Definitions.limb_inttype", "Lib.IntTypes.SEC", "...
[]
false
false
false
true
true
let blake2_update1_st (al: Spec.alg) (ms: m_spec) =
#len: size_t -> wv: state_p al ms -> hash: state_p al ms -> prev: Spec.limb_t al {v prev + v len <= Spec.max_limb al} -> d: lbuffer uint8 len -> i: size_t{v i < length d / Spec.size_block al} -> Stack unit (requires (fun h -> live h wv /\ live h hash /\ live h d /\ d...
false
Steel.ST.HigherReference.fst
Steel.ST.HigherReference.gather
val gather (#a:Type) (#uses:_) (#p0 p1:perm) (#v0 #v1:erased a) (r:ref a) : STGhost unit uses (pts_to r p0 v0 `star` pts_to r p1 v1) (fun _ -> pts_to r (sum_perm p0 p1) v0) (requires True) (ensures fun _ -> v0 == v1)
val gather (#a:Type) (#uses:_) (#p0 p1:perm) (#v0 #v1:erased a) (r:ref a) : STGhost unit uses (pts_to r p0 v0 `star` pts_to r p1 v1) (fun _ -> pts_to r (sum_perm p0 p1) v0) (requires True) (ensures fun _ -> v0 == v1)
let gather (#a:Type) (#uses:_) (#p0 p1:perm) (#v0 #v1:erased a) (r:ref a) : STGhost unit uses (pts_to r p0 v0 `star` pts_to r p1 v1) (fun _ -> pts_to r (sum_perm p0 p1) v0) (requires True) (ensures fun _ -> v0 == v1) = coerce_ghost (fun _ -> R.gath...
{ "file_name": "lib/steel/Steel.ST.HigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 63, "end_line": 188, "start_col": 0, "start_line": 178 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.HigherReference.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.HigherRef...
[ { "abbrev": true, "full_module": "Steel.HigherReference", "short_module": "R" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: Steel.FractionalPermission.perm -> r: Steel.ST.HigherReference.ref a -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Steel.FractionalPermission.perm", "FStar.Ghost.erased", "Steel.ST.HigherReference.ref", "Steel.ST.Coercions.coerce_ghost", "Prims.unit", "Steel.Effect.Common.star", "Steel.Effect.Common.VUnit", "Steel.Effect.Common.to_vprop'", "Steel.HigherReference.pts_to_sl", "FStar.Gho...
[]
false
true
false
false
false
let gather (#a: Type) (#uses: _) (#p0 p1: perm) (#v0 #v1: erased a) (r: ref a) : STGhost unit uses ((pts_to r p0 v0) `star` (pts_to r p1 v1)) (fun _ -> pts_to r (sum_perm p0 p1) v0) (requires True) (ensures fun _ -> v0 == v1) =
coerce_ghost (fun _ -> R.gather #a #uses #p0 #p1 #v0 #v1 r)
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update_block
val blake2_update_block: #al:Spec.alg -> #ms:m_spec -> blake2_update_block_st al ms
val blake2_update_block: #al:Spec.alg -> #ms:m_spec -> blake2_update_block_st al ms
let blake2_update_block #al #ms wv hash flag totlen d = blake2_compress wv hash d totlen flag
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 478, "start_col": 0, "start_line": 477 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
Hacl.Impl.Blake2.Generic.blake2_update_block_st al ms
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Prims.bool", "Spec.Blake2.Definitions.limb_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Spec.Blake2.Definitions.limb_inttype", "Lib.IntTypes.SEC", "Spec.Blake2.Definitions.max_limb...
[]
false
false
false
false
false
let blake2_update_block #al #ms wv hash flag totlen d =
blake2_compress wv hash d totlen flag
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update_key_st
val blake2_update_key_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
let blake2_update_key_st (al:Spec.alg) (ms:m_spec) = wv:state_p al ms -> hash: state_p al ms -> kk: size_t{v kk > 0 /\ v kk <= Spec.max_key al} -> k: lbuffer uint8 kk -> ll: size_t -> Stack unit (requires (fun h -> live h wv /\ live h hash /\ live h k /\ disjoint hash k /\ disjoin...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 115, "end_line": 942, "start_col": 0, "start_line": 932 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Lib.IntTypes.size_t", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.op_LessThanOrEqual", "Spec.Blake2.Definitions.max_key", ...
[]
false
false
false
true
true
let blake2_update_key_st (al: Spec.alg) (ms: m_spec) =
wv: state_p al ms -> hash: state_p al ms -> kk: size_t{v kk > 0 /\ v kk <= Spec.max_key al} -> k: lbuffer uint8 kk -> ll: size_t -> Stack unit (requires (fun h -> live h wv /\ live h hash /\ live h k /\ disjoint hash k /\ disjoint wv hash /\ disjoint wv k)) ...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update_multi_st
val blake2_update_multi_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
let blake2_update_multi_st (al : Spec.alg) (ms : m_spec) = #len:size_t -> wv: state_p al ms -> hash: state_p al ms -> prev: Spec.limb_t al{v prev + v len <= Spec.max_limb al} -> blocks: lbuffer uint8 len -> nb : size_t{length blocks >= v nb * v (size_block al) } -> Stack unit (requires (fun h -> li...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 850, "start_col": 0, "start_line": 837 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Lib.IntTypes.size_t", "Hacl.Impl.Blake2.Core.state_p", "Spec.Blake2.Definitions.limb_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.v", "Spec.Blake2.Definitions.limb_inttype", "Lib.IntTypes.SEC", "...
[]
false
false
false
true
true
let blake2_update_multi_st (al: Spec.alg) (ms: m_spec) =
#len: size_t -> wv: state_p al ms -> hash: state_p al ms -> prev: Spec.limb_t al {v prev + v len <= Spec.max_limb al} -> blocks: lbuffer uint8 len -> nb: size_t{length blocks >= v nb * v (size_block al)} -> Stack unit (requires (fun h -> live h wv /\ live h hash /\ l...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.impl_state_len
val impl_state_len (al: Spec.alg) (ms: m_spec) : size_t
val impl_state_len (al: Spec.alg) (ms: m_spec) : size_t
let impl_state_len (al:Spec.alg) (ms:m_spec) : size_t = //{size_v s == impl_state_length i} = (**) mul_mod_lemma 4ul (row_len al ms); match al, ms with | Spec.Blake2S, M32 | Spec.Blake2B, M32 | Spec.Blake2B, M128 -> 16ul | Spec.Blake2S, M128 | Spec.Blake2S, M256 | Spec.Blake2B, M256 -> 4ul
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 1073, "start_col": 0, "start_line": 1067 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": true, "full_module": "LowStar.Modifies", "short_module": "M" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Lib.IntTypes.size_t
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "FStar.Pervasives.Native.Mktuple2", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.unit", "Lib.IntTypes.mul_mod_lemma", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Blake2.Core.row_len" ]
[]
false
false
false
true
false
let impl_state_len (al: Spec.alg) (ms: m_spec) : size_t =
mul_mod_lemma 4ul (row_len al ms); match al, ms with | Spec.Blake2S, M32 | Spec.Blake2B, M32 | Spec.Blake2B, M128 -> 16ul | Spec.Blake2S, M128 | Spec.Blake2S, M256 | Spec.Blake2B, M256 -> 4ul
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_finish_st
val blake2_finish_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
let blake2_finish_st (al:Spec.alg) (ms:m_spec) = nn: size_t{1 <= v nn /\ v nn <= Spec.max_output al} -> output: lbuffer uint8 nn -> hash: state_p al ms -> Stack unit (requires (fun h -> live h hash /\ live h output /\ disjoint output hash)) (ensures (fun h0 _ h1 -> modifies (loc output) h0 h1 ...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 93, "end_line": 904, "start_col": 0, "start_line": 897 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Lib.IntTypes.size_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.Blake2.Definitions.max_output", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.Impl...
[]
false
false
false
true
true
let blake2_finish_st (al: Spec.alg) (ms: m_spec) =
nn: size_t{1 <= v nn /\ v nn <= Spec.max_output al} -> output: lbuffer uint8 nn -> hash: state_p al ms -> Stack unit (requires (fun h -> live h hash /\ live h output /\ disjoint output hash)) (ensures (fun h0 _ h1 -> modifies (loc output) h0 h1 /\ h1.[| output ...
false
CQueue.Cell.fst
CQueue.Cell.intro_ccell_is_lvalue
val intro_ccell_is_lvalue (#opened: _) (#a: Type) (c: ccell_ptrvalue a) : SteelGhost unit opened emp (fun _ -> ccell_is_lvalue c) (fun _ -> ccell_ptrvalue_is_null c == false) (fun _ res h' -> ccell_ptrvalue_is_null c == false /\ (h' (ccell_is_lvalue c) <: ccell_ptrvalue a) == c )
val intro_ccell_is_lvalue (#opened: _) (#a: Type) (c: ccell_ptrvalue a) : SteelGhost unit opened emp (fun _ -> ccell_is_lvalue c) (fun _ -> ccell_ptrvalue_is_null c == false) (fun _ res h' -> ccell_ptrvalue_is_null c == false /\ (h' (ccell_is_lvalue c) <: ccell_ptrvalue a) == c )
let intro_ccell_is_lvalue #_ #a c = intro_vrefine emp (ccell_is_lvalue_refine c); intro_vrewrite (emp `vrefine` ccell_is_lvalue_refine c) (ccell_is_lvalue_rewrite c); change_slprop_rel (ccell_is_lvalue0 c) (ccell_is_lvalue c) (fun x y -> x == y) (fun m -> assert_norm (hp_of (ccell_is_lvalue...
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 71, "start_col": 0, "start_line": 59 }
module CQueue.Cell (* A Steel model of C cell structs *) #push-options "--__no_positivity" noeq type mcell (a: Type0) = { data: ref a; next: ref (mcell a); all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "CQueue.Cell.fst" }
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Atomic.SteelGhost Prims.unit
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "CQueue.Cell.ccell_ptrvalue", "Steel.Effect.Atomic.change_slprop_rel", "CQueue.Cell.ccell_is_lvalue0", "CQueue.Cell.ccell_is_lvalue", "Steel.Effect.Common.normal", "Steel.Effect.Common.t_of", "Prims.eq2", "Prims.prop", "Steel.Memory.mem", "FStar.Pervasives.assert_norm", ...
[]
false
true
false
false
false
let intro_ccell_is_lvalue #_ #a c =
intro_vrefine emp (ccell_is_lvalue_refine c); intro_vrewrite (emp `vrefine` (ccell_is_lvalue_refine c)) (ccell_is_lvalue_rewrite c); change_slprop_rel (ccell_is_lvalue0 c) (ccell_is_lvalue c) (fun x y -> x == y) (fun m -> assert_norm (hp_of (ccell_is_lvalue c) == hp_of (ccell_is_lvalue0 c)); assert_no...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update_st
val blake2_update_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
let blake2_update_st (al:Spec.alg) (ms:m_spec) = wv:state_p al ms -> hash: state_p al ms -> kk: size_t{v kk <= Spec.max_key al} -> k: lbuffer uint8 kk -> ll: size_t -> d: lbuffer uint8 ll -> Stack unit (requires (fun h -> live h wv /\ live h hash /\ live h k /\ live h d /\ disjo...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 113, "end_line": 979, "start_col": 0, "start_line": 967 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.Blake2.Definitions.max_key", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8...
[]
false
false
false
true
true
let blake2_update_st (al: Spec.alg) (ms: m_spec) =
wv: state_p al ms -> hash: state_p al ms -> kk: size_t{v kk <= Spec.max_key al} -> k: lbuffer uint8 kk -> ll: size_t -> d: lbuffer uint8 ll -> Stack unit (requires (fun h -> live h wv /\ live h hash /\ live h k /\ live h d /\ disjoint hash k /\ disjoint wv hash /\ ...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.g2
val g2: #al:Spec.alg -> #m:m_spec -> wv:state_p al m -> a:index_t -> b:index_t -> x:row_p al m -> Stack unit (requires (fun h -> live h wv /\ live h x /\ disjoint wv x /\ a <> b)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v h1 wv == Spec.g2 al (state_v h0 wv) (v a) (v...
val g2: #al:Spec.alg -> #m:m_spec -> wv:state_p al m -> a:index_t -> b:index_t -> x:row_p al m -> Stack unit (requires (fun h -> live h wv /\ live h x /\ disjoint wv x /\ a <> b)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v h1 wv == Spec.g2 al (state_v h0 wv) (v a) (v...
let g2 #al #m wv a b x = let h0 = ST.get() in let wv_a = rowi wv a in let wv_b = rowi wv b in add_row wv_a wv_b; add_row wv_a x; let h1 = ST.get() in Lib.Sequence.eq_intro (state_v h1 wv) (Spec.g2 al (state_v h0 wv) (v a) (v b) (row_v h0 x))
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 94, "end_line": 129, "start_col": 0, "start_line": 122 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
wv: Hacl.Impl.Blake2.Core.state_p al m -> a: Hacl.Impl.Blake2.Core.index_t -> b: Hacl.Impl.Blake2.Core.index_t -> x: Hacl.Impl.Blake2.Core.row_p al m -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Hacl.Impl.Blake2.Core.index_t", "Hacl.Impl.Blake2.Core.row_p", "Lib.Sequence.eq_intro", "Spec.Blake2.Definitions.row", "Hacl.Impl.Blake2.Core.state_v", "Spec.Blake2.g2", "Lib.IntTypes.v", "Lib.IntTyp...
[]
false
true
false
false
false
let g2 #al #m wv a b x =
let h0 = ST.get () in let wv_a = rowi wv a in let wv_b = rowi wv b in add_row wv_a wv_b; add_row wv_a x; let h1 = ST.get () in Lib.Sequence.eq_intro (state_v h1 wv) (Spec.g2 al (state_v h0 wv) (v a) (v b) (row_v h0 x))
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_st
val blake2_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
let blake2_st (al:Spec.alg) (ms:m_spec) = output: buffer_t MUT uint8 -> output_len: size_t{v output_len == length output /\ 1 <= v output_len /\ v output_len <= Spec.max_output al} -> input: buffer_t MUT uint8 -> input_len: size_t{v input_len == length input} -> key: buffer_t MUT uint8 -> key_len: size_t{...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 230, "end_line": 1013, "start_col": 0, "start_line": 1002 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Lib.Buffer.buffer_t", "Lib.Buffer.MUT", "Lib.IntTypes.uint8", "Lib.IntTypes.size_t", "Prims.l_and", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.b2t", "Prims.op_GreaterThanOrEqual", ...
[]
false
false
false
true
true
let blake2_st (al: Spec.alg) (ms: m_spec) =
output: buffer_t MUT uint8 -> output_len: size_t {v output_len == length output /\ 1 <= v output_len /\ v output_len <= Spec.max_output al} -> input: buffer_t MUT uint8 -> input_len: size_t{v input_len == length input} -> key: buffer_t MUT uint8 -> key_len: size_t{v key_len == len...
false
Steel.ST.HigherReference.fst
Steel.ST.HigherReference.free
val free (#a:Type) (#v:erased a) (r:ref a) : STT unit (pts_to r full_perm v) (fun _ -> emp)
val free (#a:Type) (#v:erased a) (r:ref a) : STT unit (pts_to r full_perm v) (fun _ -> emp)
let free (#a:Type) (#v:erased a) (r:ref a) : STT unit (pts_to r full_perm v) (fun _ -> emp) = coerce_steel(fun _ -> R.free r); return ()
{ "file_name": "lib/steel/Steel.ST.HigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 98, "start_col": 0, "start_line": 91 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.HigherReference.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.HigherRef...
[ { "abbrev": true, "full_module": "Steel.HigherReference", "short_module": "R" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.ST.HigherReference.ref a -> Steel.ST.Effect.STT Prims.unit
Steel.ST.Effect.STT
[]
[]
[ "FStar.Ghost.erased", "Steel.ST.HigherReference.ref", "Steel.ST.Util.return", "Prims.unit", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "FStar.Algebra.CommMonoid.Equiv.__proj__CM__item__unit", "Steel.Effect.Common.vprop", "Steel.Effect.Common.req", "Steel.Effe...
[]
false
true
false
false
false
let free (#a: Type) (#v: erased a) (r: ref a) : STT unit (pts_to r full_perm v) (fun _ -> emp) =
coerce_steel (fun _ -> R.free r); return ()
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update_blocks
val blake2_update_blocks (#al : Spec.alg) (#ms : m_spec) : blake2_update_multi_st al ms -> blake2_update_last_st al ms -> blake2_update_blocks_st al ms
val blake2_update_blocks (#al : Spec.alg) (#ms : m_spec) : blake2_update_multi_st al ms -> blake2_update_last_st al ms -> blake2_update_blocks_st al ms
let blake2_update_blocks #al #ms blake2_update_multi blake2_update_last #len wv hash prev blocks = let (nb,rem) = split_blocks al len in blake2_update_multi wv hash prev blocks nb; blake2_update_last #len wv hash prev rem blocks
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 894, "start_col": 0, "start_line": 891 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
blake2_update_multi: Hacl.Impl.Blake2.Generic.blake2_update_multi_st al ms -> blake2_update_last: Hacl.Impl.Blake2.Generic.blake2_update_last_st al ms -> Hacl.Impl.Blake2.Generic.blake2_update_blocks_st al ms
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Generic.blake2_update_multi_st", "Hacl.Impl.Blake2.Generic.blake2_update_last_st", "Lib.IntTypes.size_t", "Hacl.Impl.Blake2.Core.state_p", "Spec.Blake2.Definitions.limb_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Pr...
[]
false
false
false
false
false
let blake2_update_blocks #al #ms blake2_update_multi blake2_update_last #len wv hash prev blocks =
let nb, rem = split_blocks al len in blake2_update_multi wv hash prev blocks nb; blake2_update_last #len wv hash prev rem blocks
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update
val blake2_update: #al:Spec.alg -> #ms:m_spec -> blake2_update_key_st al ms -> blake2_update_blocks_st al ms -> blake2_update_st al ms
val blake2_update: #al:Spec.alg -> #ms:m_spec -> blake2_update_key_st al ms -> blake2_update_blocks_st al ms -> blake2_update_st al ms
let blake2_update #al #ms blake2_update_key blake2_update_blocks wv hash kk k ll d = let lb = size_to_limb al (size_block al) in assert (v lb = Spec.size_block al); if kk >. 0ul then ( blake2_update_key wv hash kk k ll; if ll =. 0ul then () else blake2_update_blocks wv ha...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 61, "end_line": 999, "start_col": 0, "start_line": 991 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
blake2_update_key: Hacl.Impl.Blake2.Generic.blake2_update_key_st al ms -> blake2_update_blocks: Hacl.Impl.Blake2.Generic.blake2_update_blocks_st al ms -> Hacl.Impl.Blake2.Generic.blake2_update_st al ms
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Generic.blake2_update_key_st", "Hacl.Impl.Blake2.Generic.blake2_update_blocks_st", "Hacl.Impl.Blake2.Core.state_p", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32",...
[]
false
false
false
false
false
let blake2_update #al #ms blake2_update_key blake2_update_blocks wv hash kk k ll d =
let lb = size_to_limb al (size_block al) in assert (v lb = Spec.size_block al); if kk >. 0ul then (blake2_update_key wv hash kk k ll; if ll =. 0ul then () else blake2_update_blocks wv hash lb d) else blake2_update_blocks wv hash (size_to_limb al 0ul) d
false
CQueue.Cell.fst
CQueue.Cell.free_cell
val free_cell (#a: Type0) (c: ccell_ptrvalue a) // could be ccell_lvalue, but ccell gives the right refinement : SteelT unit (ccell c) (fun _ -> emp)
val free_cell (#a: Type0) (c: ccell_ptrvalue a) // could be ccell_lvalue, but ccell gives the right refinement : SteelT unit (ccell c) (fun _ -> emp)
let free_cell #a c = let c = elim_ccell c in free (ccell_data c); free (ccell_next c)
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 21, "end_line": 209, "start_col": 0, "start_line": 204 }
module CQueue.Cell (* A Steel model of C cell structs *) #push-options "--__no_positivity" noeq type mcell (a: Type0) = { data: ref a; next: ref (mcell a); all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "CQueue.Cell.fst" }
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.SteelT Prims.unit
Steel.Effect.SteelT
[]
[]
[ "CQueue.Cell.ccell_ptrvalue", "Steel.Reference.free", "CQueue.Cell.ccell_next", "Prims.unit", "CQueue.Cell.ccell_data", "CQueue.Cell.ccell_lvalue", "CQueue.Cell.elim_ccell", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty" ]
[]
false
true
false
false
false
let free_cell #a c =
let c = elim_ccell c in free (ccell_data c); free (ccell_next c)
false
Steel.ST.HigherReference.fst
Steel.ST.HigherReference.write
val write (#a:Type) (#v:erased a) (r:ref a) (x:a) : STT unit (pts_to r full_perm v) (fun _ -> pts_to r full_perm x)
val write (#a:Type) (#v:erased a) (r:ref a) (x:a) : STT unit (pts_to r full_perm v) (fun _ -> pts_to r full_perm x)
let write (#a:Type) (#v:erased a) (r:ref a) (x:a) : STT unit (pts_to r full_perm v) (fun _ -> pts_to r full_perm x) = coerce_steel (fun _ -> R.write r x); return ()
{ "file_name": "lib/steel/Steel.ST.HigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 89, "start_col": 0, "start_line": 81 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.HigherReference.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.HigherRef...
[ { "abbrev": true, "full_module": "Steel.HigherReference", "short_module": "R" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.ST.HigherReference.ref a -> x: a -> Steel.ST.Effect.STT Prims.unit
Steel.ST.Effect.STT
[]
[]
[ "FStar.Ghost.erased", "Steel.ST.HigherReference.ref", "Steel.ST.Util.return", "Prims.unit", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.ST.HigherReference.pts_to", "Steel.FractionalPermission.full_perm", "Steel.Effect.Common.vprop", "Steel.ST.Coercions....
[]
false
true
false
false
false
let write (#a: Type) (#v: erased a) (r: ref a) (x: a) : STT unit (pts_to r full_perm v) (fun _ -> pts_to r full_perm x) =
coerce_steel (fun _ -> R.write r x); return ()
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_finish
val blake2_finish:#al:Spec.alg -> #ms:m_spec -> blake2_finish_st al ms
val blake2_finish:#al:Spec.alg -> #ms:m_spec -> blake2_finish_st al ms
let blake2_finish #al #ms nn output hash = let h0 = ST.get () in [@inline_let] let double_row = 2ul *. size_row al in [@inline_let] let spec _ h1 = h1.[|output|] == Spec.blake2_finish al (state_v h0 hash) (v nn) in salloc1 h0 double_row (u8 0) (Ghost.hide (loc output)) spec (fun full -> let first = su...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 928, "start_col": 0, "start_line": 909 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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.Blake2.Generic.blake2_finish_st al ms
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Lib.IntTypes.size_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.Blake2.Definitions.max_output", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.Impl...
[]
false
false
false
false
false
let blake2_finish #al #ms nn output hash =
let h0 = ST.get () in [@@ inline_let ]let double_row = 2ul *. size_row al in [@@ inline_let ]let spec _ h1 = h1.[| output |] == Spec.blake2_finish al (state_v h0 hash) (v nn) in salloc1 h0 double_row (u8 0) (Ghost.hide (loc output)) spec (fun full -> let first = sub full 0ul (size_row al) in let s...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_compress3
val blake2_compress3 : #al:Spec.alg -> #ms:m_spec -> s_iv:state_p al ms -> wv:state_p al ms -> Stack unit (requires (fun h -> live h s_iv /\ live h wv /\ disjoint s_iv wv)) (ensures (fun h0 _ h1 -> modifies (loc s_iv) h0 h1 /\ state_v h1 s_iv == Spec.blake2_compress3 al (stat...
val blake2_compress3 : #al:Spec.alg -> #ms:m_spec -> s_iv:state_p al ms -> wv:state_p al ms -> Stack unit (requires (fun h -> live h s_iv /\ live h wv /\ disjoint s_iv wv)) (ensures (fun h0 _ h1 -> modifies (loc s_iv) h0 h1 /\ state_v h1 s_iv == Spec.blake2_compress3 al (stat...
let blake2_compress3 #al #ms s_iv wv = let h0 = ST.get() in let s0 = rowi s_iv 0ul in let s1 = rowi s_iv 1ul in let r0 = rowi wv 0ul in let r1 = rowi wv 1ul in let r2 = rowi wv 2ul in let r3 = rowi wv 3ul in assert (disjoint s0 wv); assert (disjoint wv s0); assert (disjoint s1 wv); assert (disjoin...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 89, "end_line": 433, "start_col": 0, "start_line": 401 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
s_iv: Hacl.Impl.Blake2.Core.state_p al ms -> wv: Hacl.Impl.Blake2.Core.state_p al ms -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Lib.Sequence.eq_intro", "Spec.Blake2.Definitions.row", "Hacl.Impl.Blake2.Core.state_v", "Spec.Blake2.blake2_compress3", "Prims.unit", "Lib.Sequence.op_String_Assignment", "Hacl.Impl.Blake2.Core.row_v",...
[]
false
true
false
false
false
let blake2_compress3 #al #ms s_iv wv =
let h0 = ST.get () in let s0 = rowi s_iv 0ul in let s1 = rowi s_iv 1ul in let r0 = rowi wv 0ul in let r1 = rowi wv 1ul in let r2 = rowi wv 2ul in let r3 = rowi wv 3ul in assert (disjoint s0 wv); assert (disjoint wv s0); assert (disjoint s1 wv); assert (disjoint wv s1); assert (disjoint r0 s0); assert (disjoint r2 s0); ...
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.unconstrained_bounded_integer
val unconstrained_bounded_integer (sz: integer_size) (i: bounded_integer sz) : GTot bool
val unconstrained_bounded_integer (sz: integer_size) (i: bounded_integer sz) : GTot bool
let unconstrained_bounded_integer (sz: integer_size) (i: bounded_integer sz) : GTot bool = true
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 186, "start_col": 0, "start_line": 182 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> i: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool" ]
[]
false
false
false
false
false
let unconstrained_bounded_integer (sz: integer_size) (i: bounded_integer sz) : GTot bool =
true
false
Steel.ST.HigherReference.fst
Steel.ST.HigherReference.pts_to_injective_eq
val pts_to_injective_eq (#a: Type) (#opened:inames) (#p0 #p1:perm) (#v0 #v1: a) (r: ref a) : STGhost unit opened (pts_to r p0 v0 `star` pts_to r p1 v1) (fun _ -> pts_to r p0 v0 `star` pts_to r p1 v0) (req...
val pts_to_injective_eq (#a: Type) (#opened:inames) (#p0 #p1:perm) (#v0 #v1: a) (r: ref a) : STGhost unit opened (pts_to r p0 v0 `star` pts_to r p1 v1) (fun _ -> pts_to r p0 v0 `star` pts_to r p1 v0) (req...
let pts_to_injective_eq (#a: Type) (#opened:inames) (#p0 #p1:perm) (#v0 #v1:a) (r: ref a) : STGhost unit opened (pts_to r p0 v0 `star` pts_to r p1 v1) (fun _ -> pts_to r p0 v0 `star` pts_to r p1 v0) (requires True) (ensures fun _ -> v0 == v1) = coerce_ghost ...
{ "file_name": "lib/steel/Steel.ST.HigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 90, "end_line": 54, "start_col": 0, "start_line": 42 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.HigherReference.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.HigherRef...
[ { "abbrev": true, "full_module": "Steel.HigherReference", "short_module": "R" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.ST.HigherReference.ref a -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Steel.FractionalPermission.perm", "Steel.ST.HigherReference.ref", "Steel.ST.Coercions.coerce_ghost", "Prims.unit", "Steel.Effect.Common.star", "Steel.Effect.Common.VUnit", "Steel.Effect.Common.to_vprop'", "Steel.HigherReference.pts_to_sl", "FStar.Ghost.reveal", "FStar.Gho...
[]
false
true
false
false
false
let pts_to_injective_eq (#a: Type) (#opened: inames) (#p0 #p1: perm) (#v0 #v1: a) (r: ref a) : STGhost unit opened ((pts_to r p0 v0) `star` (pts_to r p1 v1)) (fun _ -> (pts_to r p0 v0) `star` (pts_to r p1 v0)) (requires True) (ensures fun _ -> v0 == v1) =
coerce_ghost (fun _ -> R.higher_ref_pts_to_injective_eq #a #opened #p0 #p1 #(hide v0) #(hide v1) r)
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update_multi
val blake2_update_multi (#al : Spec.alg) (#ms : m_spec) : blake2_update_block:blake2_update_block_st al ms -> blake2_update_multi_st al ms
val blake2_update_multi (#al : Spec.alg) (#ms : m_spec) : blake2_update_block:blake2_update_block_st al ms -> blake2_update_multi_st al ms
let blake2_update_multi #al #ms blake2_update_block #len wv hash prev blocks nb = let h0 = ST.get () in [@inline_let] let a_spec = Spec.state al in [@inline_let] let refl h = state_v h hash in [@inline_let] let footprint = Ghost.hide(loc hash |+| loc wv) in [@inline_let] let spec h = Spec.blake2_updat...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 74, "end_line": 870, "start_col": 0, "start_line": 857 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
blake2_update_block: Hacl.Impl.Blake2.Generic.blake2_update_block_st al ms -> Hacl.Impl.Blake2.Generic.blake2_update_multi_st al ms
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Generic.blake2_update_block_st", "Lib.IntTypes.size_t", "Hacl.Impl.Blake2.Core.state_p", "Spec.Blake2.Definitions.limb_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.v", "Spec.Blake2...
[]
false
false
false
false
false
let blake2_update_multi #al #ms blake2_update_block #len wv hash prev blocks nb =
let h0 = ST.get () in [@@ inline_let ]let a_spec = Spec.state al in [@@ inline_let ]let refl h = state_v h hash in [@@ inline_let ]let footprint = Ghost.hide (loc hash |+| loc wv) in [@@ inline_let ]let spec h = Spec.blake2_update1 al (v prev) h.[| blocks |] in loop_refl h0 nb a_spec refl footprint spec (fu...
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_vldata_payload_kind
val parse_vldata_payload_kind (sz: integer_size) (k: parser_kind) : parser_kind
val parse_vldata_payload_kind (sz: integer_size) (k: parser_kind) : parser_kind
let parse_vldata_payload_kind (sz: integer_size) (k: parser_kind) : parser_kind = strong_parser_kind 0 (parse_vldata_payload_size sz) ( match k.parser_kind_metadata with | Some ParserKindMetadataFail -> Some ParserKindMetadataFail | _ -> None )
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 33, "start_col": 0, "start_line": 25 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> k: LowParse.Spec.Base.parser_kind -> LowParse.Spec.Base.parser_kind
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.strong_parser_kind", "LowParse.Spec.VLData.parse_vldata_payload_size", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_metadata", "FStar.Pervasives.Native.Some", "LowParse.Spec.Base.parser_kind_m...
[]
false
false
false
true
false
let parse_vldata_payload_kind (sz: integer_size) (k: parser_kind) : parser_kind =
strong_parser_kind 0 (parse_vldata_payload_size sz) (match k.parser_kind_metadata with | Some ParserKindMetadataFail -> Some ParserKindMetadataFail | _ -> None)
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_vldata_payload
val parse_vldata_payload (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (i: bounded_integer sz {f i == true}) : Tot (parser (parse_vldata_payload_kind sz k) t)
val parse_vldata_payload (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (i: bounded_integer sz {f i == true}) : Tot (parser (parse_vldata_payload_kind sz k) t)
let parse_vldata_payload (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (i: bounded_integer sz { f i == true } ) : Tot (parser (parse_vldata_payload_kind sz k) t) = weaken (parse_vldata_payload_kind sz k) (parse_fldata p (U32.v i))
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 68, "end_line": 43, "start_col": 0, "start_line": 35 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> f: (_: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool) -> p: LowParse.Spec.Base.parser k t -> i: LowParse.Spec.BoundedInt.bounded_integer sz {f i == true} -> LowParse.Spec.Base.parser (LowParse.Spec.VLData.parse_vldata_payload_kind sz...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.eq2", "LowParse.Spec.Base.weaken", "LowParse.Spec.VLData.parse_vldata_payload_kind", "LowParse.Spec.FLData.parse_fldata_kind", "F...
[]
false
false
false
false
false
let parse_vldata_payload (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (i: bounded_integer sz {f i == true}) : Tot (parser (parse_vldata_payload_kind sz k) t) =
weaken (parse_vldata_payload_kind sz k) (parse_fldata p (U32.v i))
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_vldata_gen_kind
val parse_vldata_gen_kind (sz: integer_size) (k: parser_kind) : Tot parser_kind
val parse_vldata_gen_kind (sz: integer_size) (k: parser_kind) : Tot parser_kind
let parse_vldata_gen_kind (sz: integer_size) (k: parser_kind) : Tot parser_kind = strong_parser_kind sz (sz + parse_vldata_payload_size sz) ( match k.parser_kind_metadata with | Some ParserKindMetadataFail -> Some ParserKindMetadataFail | _ -> None )
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 86, "start_col": 0, "start_line": 78 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> k: LowParse.Spec.Base.parser_kind -> LowParse.Spec.Base.parser_kind
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.strong_parser_kind", "Prims.op_Addition", "LowParse.Spec.VLData.parse_vldata_payload_size", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_metadata", "FStar.Pervasives.Native.Some", "LowParse....
[]
false
false
false
true
false
let parse_vldata_gen_kind (sz: integer_size) (k: parser_kind) : Tot parser_kind =
strong_parser_kind sz (sz + parse_vldata_payload_size sz) (match k.parser_kind_metadata with | Some ParserKindMetadataFail -> Some ParserKindMetadataFail | _ -> None)
false
Steel.ST.HigherReference.fst
Steel.ST.HigherReference.alloc
val alloc (#a:Type) (x:a) : ST (ref a) emp (fun r -> pts_to r full_perm x) (requires True) (ensures fun r -> not (is_null r))
val alloc (#a:Type) (x:a) : ST (ref a) emp (fun r -> pts_to r full_perm x) (requires True) (ensures fun r -> not (is_null r))
let alloc (#a:Type) (x:a) : ST (ref a) emp (fun r -> pts_to r full_perm x) (requires True) (ensures fun r -> not (is_null r)) = let r = coerce_steel (fun _ -> R.alloc x) in r
{ "file_name": "lib/steel/Steel.ST.HigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 67, "start_col": 0, "start_line": 60 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.HigherReference.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.HigherRef...
[ { "abbrev": true, "full_module": "Steel.HigherReference", "short_module": "R" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> Steel.ST.Effect.ST (Steel.ST.HigherReference.ref a)
Steel.ST.Effect.ST
[]
[]
[ "Steel.ST.HigherReference.ref", "Steel.HigherReference.ref", "Steel.ST.Coercions.coerce_steel", "Steel.Effect.Common.emp", "Steel.Effect.Common.VUnit", "Steel.Effect.Common.to_vprop'", "Steel.HigherReference.pts_to_sl", "Steel.FractionalPermission.full_perm", "Steel.Effect.Common.vprop", "Prims.l_...
[]
false
true
false
false
false
let alloc (#a: Type) (x: a) : ST (ref a) emp (fun r -> pts_to r full_perm x) (requires True) (ensures fun r -> not (is_null r)) =
let r = coerce_steel (fun _ -> R.alloc x) in r
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_fldata_and_then_cases_injective
val parse_fldata_and_then_cases_injective (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (and_then_cases_injective (parse_vldata_payload sz f p))
val parse_fldata_and_then_cases_injective (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (and_then_cases_injective (parse_vldata_payload sz f p))
let parse_fldata_and_then_cases_injective (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (and_then_cases_injective (parse_vldata_payload sz f p)) = parser_kind_prop_equiv k p; let g (len1 len2: (len: bounded_integer sz { f len == true } )...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 73, "start_col": 0, "start_line": 47 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> f: (_: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool) -> p: LowParse.Spec.Base.parser k t -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.and_then_cases_injective (LowParse.Spec.VLData.parse_vldata_payload sz ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "FStar.Classical.forall_intro_3", "Prims.eq2", "LowParse.Bytes.bytes", "Prims.l_Forall", "Prims.l_imp", "LowParse.Spec.Combinators.and...
[]
false
false
true
false
false
let parse_fldata_and_then_cases_injective (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (and_then_cases_injective (parse_vldata_payload sz f p)) =
parser_kind_prop_equiv k p; let g (len1 len2: (len: bounded_integer sz {f len == true})) (b1 b2: bytes) : Lemma (requires (and_then_cases_injective_precond (parse_vldata_payload sz f p) len1 len2 b1 b2)) (ensures (len1 == len2)) = assert (injective_precond p (Seq.slice b1 0 (U32.v len1)) (Seq.slice b2...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update_key
val blake2_update_key: #al:Spec.alg -> #ms:m_spec -> blake2_update_block_st al ms -> blake2_update_key_st al ms
val blake2_update_key: #al:Spec.alg -> #ms:m_spec -> blake2_update_block_st al ms -> blake2_update_key_st al ms
let blake2_update_key #al #ms blake2_update_block wv hash kk k ll = let lb = size_to_limb al (size_block al) in assert (v lb = Spec.size_block al); let h0 = ST.get () in salloc1 h0 (size_block al) (u8 0) (Ghost.hide (loc hash |+| loc wv)) (fun _ h1 -> live h1 hash /\ state_v h1 hash == Spec.blake2_update_ke...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 964, "start_col": 0, "start_line": 952 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
blake2_update_block: Hacl.Impl.Blake2.Generic.blake2_update_block_st al ms -> Hacl.Impl.Blake2.Generic.blake2_update_key_st al ms
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Generic.blake2_update_block_st", "Hacl.Impl.Blake2.Core.state_p", "Lib.IntTypes.size_t", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.op_Less...
[]
false
false
false
false
false
let blake2_update_key #al #ms blake2_update_block wv hash kk k ll =
let lb = size_to_limb al (size_block al) in assert (v lb = Spec.size_block al); let h0 = ST.get () in salloc1 h0 (size_block al) (u8 0) (Ghost.hide (loc hash |+| loc wv)) (fun _ h1 -> live h1 hash /\ state_v h1 hash == Spec.blake2_update_key al (v kk) h0.[| k |] (v ll) (state_v h0 hash)) (fun key_...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_compress1
val blake2_compress1: #al:Spec.alg -> #m:m_spec -> wv: state_p al m -> s_iv: state_p al m -> offset: Spec.limb_t al -> flag: bool -> Stack unit (requires (fun h -> live h wv /\ live h s_iv /\ disjoint wv s_iv)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v...
val blake2_compress1: #al:Spec.alg -> #m:m_spec -> wv: state_p al m -> s_iv: state_p al m -> offset: Spec.limb_t al -> flag: bool -> Stack unit (requires (fun h -> live h wv /\ live h s_iv /\ disjoint wv s_iv)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v...
let blake2_compress1 #al #m wv s_iv offset flag = let h0 = ST.get() in push_frame(); let mask = alloc_row al m in [@inline_let] let wv_12 = Spec.limb_to_word al offset in [@inline_let] let wv_13 = Spec.limb_to_word al (offset >>. (size (bits (Spec.wt al)))) in // SH: TODO: for some reason, ``ones`` belo...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 96, "end_line": 360, "start_col": 0, "start_line": 332 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
wv: Hacl.Impl.Blake2.Core.state_p al m -> s_iv: Hacl.Impl.Blake2.Core.state_p al m -> offset: Spec.Blake2.Definitions.limb_t al -> flag: Prims.bool -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Spec.Blake2.Definitions.limb_t", "Prims.bool", "Lib.Sequence.eq_intro", "Spec.Blake2.Definitions.row", "Hacl.Impl.Blake2.Core.state_v", "Spec.Blake2.blake2_compress1", "Prims.unit", "Prims._assert", ...
[]
false
true
false
false
false
let blake2_compress1 #al #m wv s_iv offset flag =
let h0 = ST.get () in push_frame (); let mask = alloc_row al m in [@@ inline_let ]let wv_12 = Spec.limb_to_word al offset in [@@ inline_let ]let wv_13 = Spec.limb_to_word al (offset >>. (size (bits (Spec.wt al)))) in normalize_term_spec (Spec.wt al); [@@ inline_let ]let wt_al = normalize_term (Spec.wt al) in let wv_14 ...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_compress
val blake2_compress: #al:Spec.alg -> #ms:m_spec -> compress_t al ms
val blake2_compress: #al:Spec.alg -> #ms:m_spec -> compress_t al ms
let blake2_compress #al #ms wv s m offset flag = push_frame(); let m_w = create 16ul (Spec.zero al) in blake2_compress0 #al m m_w; blake2_compress1 wv s offset flag; blake2_compress2 wv m_w; blake2_compress3 s wv; pop_frame()
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 460, "start_col": 0, "start_line": 453 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
Hacl.Impl.Blake2.Generic.compress_t al ms
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Hacl.Impl.Blake2.Core.block_p", "Spec.Blake2.Definitions.limb_t", "Prims.bool", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl.Blake2.Generic.blake2_compress3", "Hacl.Impl.Blake2.Generic.bla...
[]
false
false
false
false
false
let blake2_compress #al #ms wv s m offset flag =
push_frame (); let m_w = create 16ul (Spec.zero al) in blake2_compress0 #al m m_w; blake2_compress1 wv s offset flag; blake2_compress2 wv m_w; blake2_compress3 s wv; pop_frame ()
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_vldata_gen_kind_correct
val parse_vldata_gen_kind_correct (sz: integer_size) (k: parser_kind) : Lemma ((parse_vldata_gen_kind sz k) == (and_then_kind (parse_filter_kind (parse_bounded_integer_kind sz)) (parse_vldata_payload_kind sz k)))
val parse_vldata_gen_kind_correct (sz: integer_size) (k: parser_kind) : Lemma ((parse_vldata_gen_kind sz k) == (and_then_kind (parse_filter_kind (parse_bounded_integer_kind sz)) (parse_vldata_payload_kind sz k)))
let parse_vldata_gen_kind_correct (sz: integer_size) (k: parser_kind) : Lemma ( (parse_vldata_gen_kind sz k) == (and_then_kind (parse_filter_kind (parse_bounded_integer_kind sz)) (parse_vldata_payload_kind sz k))) = let kl = parse_vldata_gen_kind sz k in let kr = and_then_kind (parse_filter_kind (parse_bounded_...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 24, "end_line": 95, "start_col": 0, "start_line": 88 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> k: LowParse.Spec.Base.parser_kind -> FStar.Pervasives.Lemma (ensures LowParse.Spec.VLData.parse_vldata_gen_kind sz k == LowParse.Spec.Combinators.and_then_kind (LowParse.Spec.Combinators.parse_filter_kind (LowParse.Spec.BoundedInt.parse_bounded_integer_kind...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.Base.parser_kind", "FStar.Pervasives.assert_norm", "Prims.eq2", "LowParse.Spec.Combinators.and_then_kind", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.VLData.parse_vldata_pa...
[]
true
false
true
false
false
let parse_vldata_gen_kind_correct (sz: integer_size) (k: parser_kind) : Lemma ((parse_vldata_gen_kind sz k) == (and_then_kind (parse_filter_kind (parse_bounded_integer_kind sz)) (parse_vldata_payload_kind sz k))) =
let kl = parse_vldata_gen_kind sz k in let kr = and_then_kind (parse_filter_kind (parse_bounded_integer_kind sz)) (parse_vldata_payload_kind sz k) in assert_norm (kl == kr)
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_strong_pred
val parse_bounded_vldata_strong_pred (min max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: t) : GTot Type0
val parse_bounded_vldata_strong_pred (min max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: t) : GTot Type0
let parse_bounded_vldata_strong_pred (min: nat) (max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: t) : GTot Type0 = let reslen = Seq.length (s x) in min <= reslen /\ reslen <= max
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 406, "start_col": 0, "start_line": 396 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat -> s: LowParse.Spec.Base.serializer p -> x: t -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Seq.Base.length", "LowParse.Bytes.byte" ]
[]
false
false
false
false
true
let parse_bounded_vldata_strong_pred (min max: nat) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: t) : GTot Type0 =
let reslen = Seq.length (s x) in min <= reslen /\ reslen <= max
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_update1
val blake2_update1: #al:Spec.alg -> #ms:m_spec -> blake2_update_block: blake2_update_block_st al ms -> blake2_update1_st al ms
val blake2_update1: #al:Spec.alg -> #ms:m_spec -> blake2_update_block: blake2_update_block_st al ms -> blake2_update1_st al ms
let blake2_update1 #al #ms blake2_update_block #len wv hash prev d i = let totlen = prev +. size_to_limb al ((i+!1ul) *! size_block al) in assert (v totlen == v prev + (v i + 1) * Spec.size_block al); let b = sub d (i *. size_block al) (size_block al) in let h = ST.get() in assert (as_seq h b == Spec.get_bloc...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 502, "start_col": 0, "start_line": 496 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
blake2_update_block: Hacl.Impl.Blake2.Generic.blake2_update_block_st al ms -> Hacl.Impl.Blake2.Generic.blake2_update1_st al ms
Prims.Tot
[ "total" ]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Generic.blake2_update_block_st", "Lib.IntTypes.size_t", "Hacl.Impl.Blake2.Core.state_p", "Spec.Blake2.Definitions.limb_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.v", "Spec.Blake2...
[]
false
false
false
false
false
let blake2_update1 #al #ms blake2_update_block #len wv hash prev d i =
let totlen = prev +. size_to_limb al ((i +! 1ul) *! size_block al) in assert (v totlen == v prev + (v i + 1) * Spec.size_block al); let b = sub d (i *. size_block al) (size_block al) in let h = ST.get () in assert (as_seq h b == Spec.get_blocki al (as_seq h d) (v i)); blake2_update_block wv hash false totlen b
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_vldata_gen_eq_some_elim
val parse_vldata_gen_eq_some_elim (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (requires (Some? (parse (parse_vldata_gen sz f p) input))) (ensures (let pbi = parse (parse_bounded_intege...
val parse_vldata_gen_eq_some_elim (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (requires (Some? (parse (parse_vldata_gen sz f p) input))) (ensures (let pbi = parse (parse_bounded_intege...
let parse_vldata_gen_eq_some_elim (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (requires (Some? (parse (parse_vldata_gen sz f p) input))) (ensures ( let pbi = parse (parse_bounded_integer sz) input in Some? pbi /\ (...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 34, "end_line": 180, "start_col": 0, "start_line": 157 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> f: (_: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool) -> p: LowParse.Spec.Base.parser k t -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires Some? (LowParse.Spec.Base.parse (LowParse.Spec.VLData.parse_vl...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Bytes.bytes", "LowParse.Spec.VLData.parse_vldata_gen_eq", "Prims.unit", "Prims.b2t", "FStar.Pervasives.Native.uu___is_Some", ...
[]
true
false
true
false
false
let parse_vldata_gen_eq_some_elim (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (requires (Some? (parse (parse_vldata_gen sz f p) input))) (ensures (let pbi = parse (parse_bounded_intege...
parse_vldata_gen_eq sz f p input
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_strong_kind
val parse_bounded_vldata_strong_kind (min max l: nat) (k: parser_kind) : Pure parser_kind (requires (min <= max /\ max > 0 /\ max < 4294967296 /\ l >= log256' max /\ l <= 4)) (ensures (fun _ -> True))
val parse_bounded_vldata_strong_kind (min max l: nat) (k: parser_kind) : Pure parser_kind (requires (min <= max /\ max > 0 /\ max < 4294967296 /\ l >= log256' max /\ l <= 4)) (ensures (fun _ -> True))
let parse_bounded_vldata_strong_kind (min: nat) (max: nat) (l: nat) (k: parser_kind) : Pure parser_kind (requires (min <= max /\ max > 0 /\ max < 4294967296 /\ l >= log256' max /\ l <= 4 )) (ensures (fun _ -> True)) = [@inline_let] let kmin = k.parser_kind_low in [@inline_let] let min' = if kmin > min...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 250, "start_col": 0, "start_line": 226 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat -> l: Prims.nat -> k: LowParse.Spec.Base.parser_kind -> Prims.Pure LowParse.Spec.Base.parser_kind
Prims.Pure
[]
[]
[ "Prims.nat", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.strong_parser_kind", "Prims.op_Addition", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_metadata", "FStar.Pervasives.Native.Some", "LowParse.Spec.Base.parser_kind_metadata_some", "LowParse.Spec.Base.ParserKindMetadataFa...
[]
false
false
false
false
false
let parse_bounded_vldata_strong_kind (min max l: nat) (k: parser_kind) : Pure parser_kind (requires (min <= max /\ max > 0 /\ max < 4294967296 /\ l >= log256' max /\ l <= 4)) (ensures (fun _ -> True)) =
[@@ inline_let ]let kmin = k.parser_kind_low in [@@ inline_let ]let min' = if kmin > min then kmin else min in [@@ inline_let ]let max' = match k.parser_kind_high with | None -> max | Some kmax -> if kmax < max then kmax else max in [@@ inline_let ]let max' = if max' < min' then min' else max' in strong_parser_ki...
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_elim'
val parse_bounded_vldata_elim' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) (x: t) (consumed: consumed_length xbytes) : Lemma (requires (p...
val parse_bounded_vldata_elim' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) (x: t) (consumed: consumed_length xbytes) : Lemma (requires (p...
let parse_bounded_vldata_elim' (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) (x: t) (consumed: consumed_length xbytes) : Lemma (requires (parse (parse_vldata_gen l (in_bounds ...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 81, "end_line": 281, "start_col": 0, "start_line": 252 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> p: LowParse.Spec.Base.parser k t -> xbytes: LowParse.Bytes.bytes -> x: t -> consumed: LowParse.Spec.Base.consumed_length xbytes -> FStar.Perv...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Bytes.bytes", "LowParse.Spec.Base.consum...
[]
true
false
true
false
false
let parse_bounded_vldata_elim' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) (x: t) (consumed: consumed_length xbytes) : Lemma (requires (p...
parse_vldata_gen_eq l (in_bounds min max) p xbytes; parser_kind_prop_equiv (parse_bounded_integer_kind l) (parse_bounded_integer l)
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_vldata_gen_eq
val parse_vldata_gen_eq (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (let res = parse (parse_vldata_gen sz f p) input in match parse (parse_bounded_integer sz) input with | None -> re...
val parse_vldata_gen_eq (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (let res = parse (parse_vldata_gen sz f p) input in match parse (parse_bounded_integer sz) input with | None -> re...
let parse_vldata_gen_eq (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (let res = parse (parse_vldata_gen sz f p) input in match parse (parse_bounded_integer sz) input with | None -> res == None | Some (len, consumed_le...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 155, "start_col": 0, "start_line": 123 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> f: (_: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool) -> p: LowParse.Spec.Base.parser k t -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures (let res = LowParse.Spec.Base.parse (LowParse.Spec.VLData.parse_vld...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Bytes.bytes", "Prims.unit", "LowParse.Spec.Base.parser_kind_prop_equiv", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", ...
[]
true
false
true
false
false
let parse_vldata_gen_eq (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (let res = parse (parse_vldata_gen sz f p) input in match parse (parse_bounded_integer sz) input with | None -> re...
parse_vldata_gen_eq_def sz f p; and_then_eq #_ #(parse_filter_refine f) (parse_filter (parse_bounded_integer sz) f) #_ #t (parse_vldata_payload sz f p) input; parse_filter_eq #_ #(bounded_integer sz) (parse_bounded_integer sz) f input; parser_kind_prop_equiv (parse_bounded_integer_kind sz) (parse_bounded_in...
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_vldata_eq
val parse_vldata_eq (sz: integer_size) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (parse (parse_vldata sz p) input == (match parse (parse_bounded_integer sz) input with | None -> None | Some (len, _) -> if Seq.length input < sz + U32.v len then ...
val parse_vldata_eq (sz: integer_size) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (parse (parse_vldata sz p) input == (match parse (parse_bounded_integer sz) input with | None -> None | Some (len, _) -> if Seq.length input < sz + U32.v len then ...
let parse_vldata_eq (sz: integer_size) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (parse (parse_vldata sz p) input == (match parse (parse_bounded_integer sz) input with | None -> None | Some (len, _) -> begin if Seq.length input < sz + U32.v len then None e...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 66, "end_line": 219, "start_col": 0, "start_line": 196 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> p: LowParse.Spec.Base.parser k t -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.parse (LowParse.Spec.VLData.parse_vldata sz p) input == (match LowParse.Spec.Base.parse (LowParse.Spec.BoundedInt.parse_bounde...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Bytes.bytes", "LowParse.Spec.VLData.parse_vldata_gen_eq", "LowParse.Spec.VLData.unconstrained_bounded_integer", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "FStar.Perv...
[]
true
false
true
false
false
let parse_vldata_eq (sz: integer_size) (#k: parser_kind) (#t: Type) (p: parser k t) (input: bytes) : Lemma (parse (parse_vldata sz p) input == (match parse (parse_bounded_integer sz) input with | None -> None | Some (len, _) -> if Seq.length input < sz + U32.v len then ...
parse_vldata_gen_eq sz (unconstrained_bounded_integer _) p input
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_elim
val parse_bounded_vldata_elim (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) (x: t) (consumed: consumed_length xbytes) : Lemma (requires (parse (p...
val parse_bounded_vldata_elim (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) (x: t) (consumed: consumed_length xbytes) : Lemma (requires (parse (p...
let parse_bounded_vldata_elim (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) (x: t) (consumed: consumed_length xbytes) : Lemma (requires (parse (parse_bounded_vldata' min max l...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 58, "end_line": 362, "start_col": 0, "start_line": 334 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> p: LowParse.Spec.Base.parser k t -> xbytes: LowParse.Bytes.bytes -> x: t -> consumed: LowParse.Spec.Base.consumed_length xbytes -> FStar.Perv...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Bytes.bytes", "LowParse.Spec.Base.consum...
[]
true
false
true
false
false
let parse_bounded_vldata_elim (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) (x: t) (consumed: consumed_length xbytes) : Lemma (requires (parse (p...
parse_bounded_vldata_elim' min max l p xbytes x consumed
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata
val parse_bounded_vldata (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_bounded_vldata_strong_kind min max (log256' max) k) t)
val parse_bounded_vldata (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_bounded_vldata_strong_kind min max (log256' max) k) t)
let parse_bounded_vldata (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_bounded_vldata_strong_kind min max (log256' max) k) t) = parse_bounded_vldata' min max (log256' max) p
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 47, "end_line": 332, "start_col": 0, "start_line": 325 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> p: LowParse.Spec.Base.parser k t -> LowParse.Spec.Base.parser (LowParse.Spec.VLData.parse_bounded_vldata_strong_kind min max (LowParse.Spec.BoundedInt.log256' max) k) t
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.VLData.parse_bounded_vldata'", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.VLData.parse_bounded_v...
[]
false
false
false
false
false
let parse_bounded_vldata (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_bounded_vldata_strong_kind min max (log256' max) k) t) =
parse_bounded_vldata' min max (log256' max) p
false
Steel.ST.HigherReference.fst
Steel.ST.HigherReference.read
val read (#a:Type) (#p:perm) (#v:erased a) (r:ref a) : ST a (pts_to r p v) (fun x -> pts_to r p v) (requires True) (ensures fun x -> x == Ghost.reveal v)
val read (#a:Type) (#p:perm) (#v:erased a) (r:ref a) : ST a (pts_to r p v) (fun x -> pts_to r p v) (requires True) (ensures fun x -> x == Ghost.reveal v)
let read (#a:Type) (#p:perm) (#v:erased a) (r:ref a) : ST a (pts_to r p v) (fun _ -> pts_to r p v) (requires True) (ensures fun x -> x == Ghost.reveal v) = let u = coerce_steel (fun _ -> R.read r) in return u
{ "file_name": "lib/steel/Steel.ST.HigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 12, "end_line": 79, "start_col": 0, "start_line": 69 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Coercions.fsti.checked", "Steel.HigherReference.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.HigherRef...
[ { "abbrev": true, "full_module": "Steel.HigherReference", "short_module": "R" }, { "abbrev": false, "full_module": "Steel.ST.Coercions", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.ST.HigherReference.ref a -> Steel.ST.Effect.ST a
Steel.ST.Effect.ST
[]
[]
[ "Steel.FractionalPermission.perm", "FStar.Ghost.erased", "Steel.ST.HigherReference.ref", "Steel.ST.Util.return", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.ST.HigherReference.pts_to", "FStar.Ghost.reveal", "Steel.Effect.Common.vprop", "Steel.ST.Coercio...
[]
false
true
false
false
false
let read (#a: Type) (#p: perm) (#v: erased a) (r: ref a) : ST a (pts_to r p v) (fun _ -> pts_to r p v) (requires True) (ensures fun x -> x == Ghost.reveal v) =
let u = coerce_steel (fun _ -> R.read r) in return u
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_strong
val parse_bounded_vldata_strong (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (parser (parse_bounded_vldata_strong_kind min max (log256' max) k) (parse_bounded_vldata_strong_t min...
val parse_bounded_vldata_strong (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (parser (parse_bounded_vldata_strong_kind min max (log256' max) k) (parse_bounded_vldata_strong_t min...
let parse_bounded_vldata_strong (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (parser (parse_bounded_vldata_strong_kind min max (log256' max) k) (parse_bounded_vldata_strong_t min max s)) = parse_bounded_vldata_str...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 54, "end_line": 470, "start_col": 0, "start_line": 462 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> s: LowParse.Spec.Base.serializer p -> LowParse.Spec.Base.parser (LowParse.Spec.VLData.parse_bounded_vldata_strong_kind min max (LowParse.Spec.BoundedInt.log256' max) k) (LowParse.Spec.VLData...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLData.parse_bounded_vldata_strong'", "LowParse.Spec.BoundedInt.log256'...
[]
false
false
false
false
false
let parse_bounded_vldata_strong (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (parser (parse_bounded_vldata_strong_kind min max (log256' max) k) (parse_bounded_vldata_strong_t min...
parse_bounded_vldata_strong' min max (log256' max) s
false
Z3TestGen.fst
Z3TestGen.prelude
val prelude:string
val prelude:string
let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ((Result (mk-result (return-value Int) (after-state State))))) ; From EverParse3d.ErrorCode.is_range_okay (define-fun is_range_okay ((size ...
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 1, "end_line": 306, "start_col": 0, "start_line": 10 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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.string
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
false
let prelude:string =
"\n(set-option :produce-models true)\n(declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int)))))\n(declare-datatypes () ((Result (mk-result (return-value Int) (after-state State)))))\n\n; From EverParse3d.ErrorCode.is_range_okay\n(define-fun is_range_okay ((size Int) (offset Int)...
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_correct
val parse_bounded_vldata_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (parser_kind_prop (parse_bounded_vldata_strong_kind min max l k) (parse_vldata_g...
val parse_bounded_vldata_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (parser_kind_prop (parse_bounded_vldata_strong_kind min max l k) (parse_vldata_g...
let parse_bounded_vldata_correct (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (parser_kind_prop (parse_bounded_vldata_strong_kind min max l k) (parse_vldata_gen l (in_bounds min max) p)) =...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 54, "end_line": 312, "start_col": 0, "start_line": 283 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> p: LowParse.Spec.Base.parser k t -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.parser_kind_prop (LowParse.Spec.VLData.parse_bounded_vld...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "FStar.Classical.forall_intro", "LowParse.Bytes.by...
[]
false
false
true
false
false
let parse_bounded_vldata_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) : Lemma (parser_kind_prop (parse_bounded_vldata_strong_kind min max l k) (parse_vldata_g...
parser_kind_prop_equiv (parse_bounded_vldata_strong_kind min max l k) (parse_vldata_gen l (in_bounds min max) p); let sz:integer_size = l in let p' = parse_vldata_gen sz (in_bounds min max) p in parser_kind_prop_equiv (get_parser_kind p') p'; parser_kind_prop_equiv k p; let k' = parse_bounded_vldata_strong_kind min m...
false
Hacl.Impl.Blake2.Generic.fst
Hacl.Impl.Blake2.Generic.blake2_mixing
val blake2_mixing : #al:Spec.alg -> #m:m_spec -> wv:state_p al m -> x:row_p al m -> y:row_p al m -> Stack unit (requires (fun h -> live h wv /\ live h x /\ live h y /\ disjoint wv x /\ disjoint wv y)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v h1 wv == Spec.blake2_mi...
val blake2_mixing : #al:Spec.alg -> #m:m_spec -> wv:state_p al m -> x:row_p al m -> y:row_p al m -> Stack unit (requires (fun h -> live h wv /\ live h x /\ live h y /\ disjoint wv x /\ disjoint wv y)) (ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1 /\ state_v h1 wv == Spec.blake2_mi...
let blake2_mixing #al #m wv x y = let h0 = ST.get() in push_frame (); let a = 0ul in let b = 1ul in let c = 2ul in let d = 3ul in [@inline_let] let r0 = normalize_term (Lib.Sequence.index (Spec.rTable al) 0) in normalize_term_spec (Lib.Sequence.index (Spec.rTable al) 0); [@inline_let] let r1 = nor...
{ "file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 105, "end_line": 186, "start_col": 0, "start_line": 154 }
module Hacl.Impl.Blake2.Generic open FStar.Mul open FStar.HyperStack open FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Lib.LoopCombinators module ST = FStar.HyperStack.ST module Seq = Lib.Sequence module Loops = Lib.LoopCombinators module Spec = Spec.Blake2 open Hacl.Impl.Blake2.Co...
{ "checked_file": "/", "dependencies": [ "Spec.Blake2.fst.checked", "prims.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "L...
[ { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Core", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Blake2.Constants", "short_module": null }, { "abbrev": true, "full_module": "Spec.Blake2", "short_module": "Spec" }, { "abbrev": true, ...
{ "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
wv: Hacl.Impl.Blake2.Core.state_p al m -> x: Hacl.Impl.Blake2.Core.row_p al m -> y: Hacl.Impl.Blake2.Core.row_p al m -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Blake2.Definitions.alg", "Hacl.Impl.Blake2.Core.m_spec", "Hacl.Impl.Blake2.Core.state_p", "Hacl.Impl.Blake2.Core.row_p", "Lib.Sequence.eq_intro", "Spec.Blake2.Definitions.row", "Hacl.Impl.Blake2.Core.state_v", "Spec.Blake2.blake2_mixing", "Hacl.Impl.Blake2.Core.row_v", "Prims.unit", "Prims...
[]
false
true
false
false
false
let blake2_mixing #al #m wv x y =
let h0 = ST.get () in push_frame (); let a = 0ul in let b = 1ul in let c = 2ul in let d = 3ul in [@@ inline_let ]let r0 = normalize_term (Lib.Sequence.index (Spec.rTable al) 0) in normalize_term_spec (Lib.Sequence.index (Spec.rTable al) 0); [@@ inline_let ]let r1 = normalize_term (Lib.Sequence.index (Spec.rTable al) 1)...
false
Z3TestGen.fst
Z3TestGen.is_bitwise_op
val is_bitwise_op (x: T.op) : Tot (option A.integer_type)
val is_bitwise_op (x: T.op) : Tot (option A.integer_type)
let is_bitwise_op (x: T.op) : Tot (option A.integer_type) = match x with | T.BitwiseAnd a | T.BitwiseXor a | T.BitwiseOr a | T.BitwiseNot a | T.ShiftLeft a | T.ShiftRight a -> Some a | _ -> None
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 332, "start_col": 0, "start_line": 323 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Target.op -> FStar.Pervasives.Native.option Ast.integer_type
Prims.Tot
[ "total" ]
[]
[ "Target.op", "Ast.integer_type", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option" ]
[]
false
false
false
true
false
let is_bitwise_op (x: T.op) : Tot (option A.integer_type) =
match x with | T.BitwiseAnd a | T.BitwiseXor a | T.BitwiseOr a | T.BitwiseNot a | T.ShiftLeft a | T.ShiftRight a -> Some a | _ -> None
false
Z3TestGen.fst
Z3TestGen.mk_bitwise_op
val mk_bitwise_op (op: string) (bitvec_args: option string) : ML string
val mk_bitwise_op (op: string) (bitvec_args: option string) : ML string
let mk_bitwise_op (op: string) (bitvec_args: option string) : ML string = mk_app "bv2int" (Some (mk_app op bitvec_args))
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 48, "end_line": 335, "start_col": 0, "start_line": 334 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
op: Prims.string -> bitvec_args: FStar.Pervasives.Native.option Prims.string -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "FStar.Pervasives.Native.option", "Z3TestGen.mk_app", "FStar.Pervasives.Native.Some" ]
[]
false
true
false
false
false
let mk_bitwise_op (op: string) (bitvec_args: option string) : ML string =
mk_app "bv2int" (Some (mk_app op bitvec_args))
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata_strong_aux
val serialize_bounded_vldata_strong_aux (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (bare_serializer (parse_bounded_vldata_strong_t min max s))
val serialize_bounded_vldata_strong_aux (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (bare_serializer (parse_bounded_vldata_strong_t min max s))
let serialize_bounded_vldata_strong_aux (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (bare_serializer (parse_bounded_vldata_strong_t min max s)) = (fun (x: parse_bounded_v...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 491, "start_col": 0, "start_line": 472 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> s: LowParse.Spec.Base.serializer p -> LowParse.Spec.Base.bare_serializer (LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max ...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VL...
[]
false
false
false
false
false
let serialize_bounded_vldata_strong_aux (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (bare_serializer (parse_bounded_vldata_strong_t min max s)) = ...
(fun (x: parse_bounded_vldata_strong_t min max s) -> let pl = s x in let sz = l in let nlen = Seq.length pl in assert (min <= nlen /\ nlen <= max); let len = U32.uint_to_t nlen in let slen = serialize (serialize_bounded_integer sz) len in seq_slice_append_l slen pl; seq_slice_append_r sl...
false
Z3TestGen.fst
Z3TestGen.mk_bitwise_arg
val mk_bitwise_arg (t: A.integer_type) (arg: string) : Tot string
val mk_bitwise_arg (t: A.integer_type) (arg: string) : Tot string
let mk_bitwise_arg (t: A.integer_type) (arg: string) : Tot string = mk_app ("(_ int2bv "^string_of_int (integer_type_bit_size t)^")") (Some arg)
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 78, "end_line": 377, "start_col": 0, "start_line": 376 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Ast.integer_type -> arg: Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Ast.integer_type", "Prims.string", "Z3TestGen.mk_app", "Prims.op_Hat", "Prims.string_of_int", "Z3TestGen.integer_type_bit_size", "FStar.Pervasives.Native.Some" ]
[]
false
false
false
true
false
let mk_bitwise_arg (t: A.integer_type) (arg: string) : Tot string =
mk_app ("(_ int2bv " ^ string_of_int (integer_type_bit_size t) ^ ")") (Some arg)
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata_strong
val serialize_bounded_vldata_strong (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (serializer (parse_bounded_vldata_strong min max s))
val serialize_bounded_vldata_strong (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (serializer (parse_bounded_vldata_strong min max s))
let serialize_bounded_vldata_strong (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (serializer (parse_bounded_vldata_strong min max s)) = serialize_bounded_vldata_strong' min max (log256' max) s
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 58, "end_line": 630, "start_col": 0, "start_line": 622 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> s: LowParse.Spec.Base.serializer p -> LowParse.Spec.Base.serializer (LowParse.Spec.VLData.parse_bounded_vldata_strong min max s)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLData.serialize_bounded_vldata_strong'", "LowParse.Spec.BoundedInt.log...
[]
false
false
false
false
false
let serialize_bounded_vldata_strong (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (serializer (parse_bounded_vldata_strong min max s)) =
serialize_bounded_vldata_strong' min max (log256' max) s
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata'
val parse_bounded_vldata' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_bounded_vldata_strong_kind min max l k) t)
val parse_bounded_vldata' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_bounded_vldata_strong_kind min max l k) t)
let parse_bounded_vldata' (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_bounded_vldata_strong_kind min max l k) t) = parse_bounded_vldata_correct min max l p; strengthen (parse...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 102, "end_line": 323, "start_col": 0, "start_line": 314 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> p: LowParse.Spec.Base.parser k t -> LowParse.Spec.Base.parser (LowParse.Spec.VLData.parse_bounded_vldata_strong_kind min max l k) t
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.strengthen", "LowParse.Spec.VL...
[]
false
false
false
false
false
let parse_bounded_vldata' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) : Tot (parser (parse_bounded_vldata_strong_kind min max l k) t) =
parse_bounded_vldata_correct min max l p; strengthen (parse_bounded_vldata_strong_kind min max l k) (parse_vldata_gen l (in_bounds min max) p)
false
Z3TestGen.fst
Z3TestGen.ident_to_string
val ident_to_string : i: Ast.with_meta_t Ast.ident' -> Prims.string
let ident_to_string = A.ident_to_string
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 39, "end_line": 374, "start_col": 0, "start_line": 374 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Ast.with_meta_t Ast.ident' -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Ast.ident_to_string" ]
[]
false
false
false
true
false
let ident_to_string =
A.ident_to_string
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata_precond
val serialize_bounded_vldata_precond (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (k: parser_kind) : GTot bool
val serialize_bounded_vldata_precond (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (k: parser_kind) : GTot bool
let serialize_bounded_vldata_precond (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (k: parser_kind) : GTot bool = match k.parser_kind_high with | None -> false | Some max' -> min <= k.parser_kind_low && max' <= max
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 639, "start_col": 0, "start_line": 632 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> k: LowParse.Spec.Base.parser_kind -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_high", "Prims.op_AmpAmp", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_...
[]
false
false
false
false
false
let serialize_bounded_vldata_precond (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (k: parser_kind) : GTot bool =
match k.parser_kind_high with | None -> false | Some max' -> min <= k.parser_kind_low && max' <= max
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata_strong'
val serialize_bounded_vldata_strong' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (serializer (parse_bounded_vldata_strong' min max l s))
val serialize_bounded_vldata_strong' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (serializer (parse_bounded_vldata_strong' min max l s))
let serialize_bounded_vldata_strong' (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (serializer (parse_bounded_vldata_strong' min max l s)) = Classical.forall_intro (seriali...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 49, "end_line": 620, "start_col": 0, "start_line": 610 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> s: LowParse.Spec.Base.serializer p -> LowParse.Spec.Base.serializer (LowParse.Spec.VLData.parse_bounded_vldata_strong' min max l s)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VL...
[]
false
false
false
false
false
let serialize_bounded_vldata_strong' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (serializer (parse_bounded_vldata_strong' min max l s)) =
Classical.forall_intro (serialize_bounded_vldata_strong_correct min max l s); serialize_bounded_vldata_strong_aux min max l s
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_vldata_gen_correct_aux
val serialize_vldata_gen_correct_aux (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (b b1 b2: bytes) : Lemma (requires (Seq.length b1 == sz /\ (let vlen = parse (parse_bounded_integer sz) b1 in ...
val serialize_vldata_gen_correct_aux (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (b b1 b2: bytes) : Lemma (requires (Seq.length b1 == sz /\ (let vlen = parse (parse_bounded_integer sz) b1 in ...
let serialize_vldata_gen_correct_aux (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (b b1 b2: bytes) : Lemma (requires ( Seq.length b1 == sz /\ ( let vlen = parse (parse_bounded_integer sz) b1 in Some? vlen /\ ( let (Some (len, _)) = ...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 30, "end_line": 535, "start_col": 0, "start_line": 493 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> f: (_: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool) -> p: LowParse.Spec.Base.parser k t -> b: LowParse.Bytes.bytes -> b1: LowParse.Bytes.bytes -> b2: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires FS...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Bytes.bytes", "LowParse.Spec.Base.consumed_length", "LowParse.Spec.VLData.parse_vldata_gen_eq", "Prims.unit", "Prims._assert",...
[]
false
false
true
false
false
let serialize_vldata_gen_correct_aux (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (b b1 b2: bytes) : Lemma (requires (Seq.length b1 == sz /\ (let vlen = parse (parse_bounded_integer sz) b1 in ...
let Some (len, consumed1) = parse (parse_bounded_integer sz) b1 in parser_kind_prop_equiv (parse_bounded_integer_kind sz) (parse_bounded_integer sz); assert (consumed1 == sz); assert (no_lookahead_on (parse_bounded_integer sz) b1 b); assert (injective_postcond (parse_bounded_integer sz) b1 b); assert (parse (parse_boun...
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_elim_forall
val parse_bounded_vldata_elim_forall (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) : Lemma (requires (Some? (parse (parse_bounded_vldata' min max l p) xbytes...
val parse_bounded_vldata_elim_forall (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) : Lemma (requires (Some? (parse (parse_bounded_vldata' min max l p) xbytes...
let parse_bounded_vldata_elim_forall (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) : Lemma (requires (Some? (parse (parse_bounded_vldata' min max l p) xbytes))) (ensures ( l...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 57, "end_line": 392, "start_col": 0, "start_line": 364 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> p: LowParse.Spec.Base.parser k t -> xbytes: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires Some? (LowParse.Spec.Base.parse (L...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Bytes.bytes", "LowParse.Spec.Base.consum...
[]
false
false
true
false
false
let parse_bounded_vldata_elim_forall (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (p: parser k t) (xbytes: bytes) : Lemma (requires (Some? (parse (parse_bounded_vldata' min max l p) xbytes...
let Some (x, consumed) = parse (parse_bounded_vldata' min max l p) xbytes in parse_bounded_vldata_elim min max l p xbytes x consumed
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_vldata_gen_correct
val serialize_vldata_gen_correct (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (b1 b2: bytes) : Lemma (requires (Seq.length b1 == sz /\ (let vlen = parse (parse_bounded_integer sz) b1 in ...
val serialize_vldata_gen_correct (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (b1 b2: bytes) : Lemma (requires (Seq.length b1 == sz /\ (let vlen = parse (parse_bounded_integer sz) b1 in ...
let serialize_vldata_gen_correct (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (b1 b2: bytes) : Lemma (requires ( Seq.length b1 == sz /\ ( let vlen = parse (parse_bounded_integer sz) b1 in Some? vlen /\ ( let (Some (len, _)) = vlen i...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 66, "end_line": 570, "start_col": 0, "start_line": 537 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
sz: LowParse.Spec.BoundedInt.integer_size -> f: (_: LowParse.Spec.BoundedInt.bounded_integer sz -> Prims.GTot Prims.bool) -> p: LowParse.Spec.Base.parser k t -> b1: LowParse.Bytes.bytes -> b2: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length b1 == sz /\...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.bool", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Bytes.bytes", "LowParse.Spec.VLData.serialize_vldata_gen_correct_aux", "FStar.Seq.Base.append", "LowParse.Bytes.byte", "Prims....
[]
true
false
true
false
false
let serialize_vldata_gen_correct (sz: integer_size) (f: (bounded_integer sz -> GTot bool)) (#k: parser_kind) (#t: Type) (p: parser k t) (b1 b2: bytes) : Lemma (requires (Seq.length b1 == sz /\ (let vlen = parse (parse_bounded_integer sz) b1 in ...
seq_slice_append_l b1 b2; seq_slice_append_r b1 b2; serialize_vldata_gen_correct_aux sz f p (Seq.append b1 b2) b1 b2
false
Z3TestGen.fst
Z3TestGen.push_binder
val push_binder (name typ: string) (b: binders) : binders
val push_binder (name typ: string) (b: binders) : binders
let push_binder (name: string) (typ: string) (b: binders) : binders = { is_empty = false; bind = Printf.sprintf "(%s %s) %s" name typ b.bind; args = Printf.sprintf " %s%s" name b.args; }
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 1, "end_line": 417, "start_col": 0, "start_line": 413 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
name: Prims.string -> typ: Prims.string -> b: Z3TestGen.binders -> Z3TestGen.binders
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Z3TestGen.binders", "Z3TestGen.Mkbinders", "FStar.Printf.sprintf", "Z3TestGen.__proj__Mkbinders__item__bind", "Z3TestGen.__proj__Mkbinders__item__args" ]
[]
false
false
false
true
false
let push_binder (name typ: string) (b: binders) : binders =
{ is_empty = false; bind = Printf.sprintf "(%s %s) %s" name typ b.bind; args = Printf.sprintf " %s%s" name b.args }
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_strong'
val parse_bounded_vldata_strong' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (parser (parse_bounded_vldata_strong_kind min max l k) (parse_bou...
val parse_bounded_vldata_strong' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (parser (parse_bounded_vldata_strong_kind min max l k) (parse_bou...
let parse_bounded_vldata_strong' (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (parser (parse_bounded_vldata_strong_kind min max l k) (parse_bounded_vldata_strong_t min max...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 460, "start_col": 0, "start_line": 446 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> s: LowParse.Spec.Base.serializer p -> LowParse.Spec.Base.parser (LowParse.Spec.VLData.parse_bounded_vldata_strong_kind min max l k) (LowParse.Spec....
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.Ba...
[]
false
false
false
false
false
let parse_bounded_vldata_strong' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) : Tot (parser (parse_bounded_vldata_strong_kind min max l k) (parse_bou...
(coerce_parser (parse_bounded_vldata_strong_t min max s) (parse_strengthen (parse_bounded_vldata' min max l p) (parse_bounded_vldata_strong_pred min max s) (parse_bounded_vldata_strong_correct min max l s)))
false
Z3TestGen.fst
Z3TestGen.mk_function_call
val mk_function_call : name: Prims.string -> b: Z3TestGen.binders -> Prims.string
let mk_function_call (name: string) (b: binders) = Printf.sprintf "%s%s" name b.args
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 35, "end_line": 420, "start_col": 0, "start_line": 419 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
name: Prims.string -> b: Z3TestGen.binders -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Z3TestGen.binders", "FStar.Printf.sprintf", "Z3TestGen.__proj__Mkbinders__item__args" ]
[]
false
false
false
true
false
let mk_function_call (name: string) (b: binders) =
Printf.sprintf "%s%s" name b.args
false
Z3TestGen.fst
Z3TestGen.empty_binders
val empty_binders:binders
val empty_binders:binders
let empty_binders : binders = { is_empty = true; bind = ""; args = ""; }
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 1, "end_line": 411, "start_col": 0, "start_line": 407 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
Z3TestGen.binders
Prims.Tot
[ "total" ]
[]
[ "Z3TestGen.Mkbinders" ]
[]
false
false
false
true
false
let empty_binders:binders =
{ is_empty = true; bind = ""; args = "" }
false
Z3TestGen.fst
Z3TestGen.parse_readable_itype
val parse_readable_itype (i: I.readable_itype) : Tot (parser reading)
val parse_readable_itype (i: I.readable_itype) : Tot (parser reading)
let parse_readable_itype (i: I.readable_itype) : Tot (parser reading) = leaf_reading_parser ("parse-" ^ readable_itype_parser_suffix i)
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 65, "end_line": 448, "start_col": 0, "start_line": 447 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: InterpreterTarget.readable_itype -> Z3TestGen.parser Z3TestGen.reading
Prims.Tot
[ "total" ]
[]
[ "InterpreterTarget.readable_itype", "Z3TestGen.leaf_reading_parser", "Prims.op_Hat", "Z3TestGen.readable_itype_parser_suffix", "Z3TestGen.parser", "Z3TestGen.reading" ]
[]
false
false
false
true
false
let parse_readable_itype (i: I.readable_itype) : Tot (parser reading) =
leaf_reading_parser ("parse-" ^ readable_itype_parser_suffix i)
false
Z3TestGen.fst
Z3TestGen.unsupported_parser
val unsupported_parser (s: string) (a: Type) : Tot (parser a)
val unsupported_parser (s: string) (a: Type) : Tot (parser a)
let unsupported_parser (s: string) (a: Type) : Tot (parser a) = fun _ _ _ _ -> failwith (Printf.sprintf "unsupported parser: %s" s)
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 69, "end_line": 430, "start_col": 0, "start_line": 429 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Prims.string -> a: Type -> Z3TestGen.parser a
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "FStar.All.failwith", "FStar.Printf.sprintf", "Z3TestGen.parser" ]
[]
false
false
false
true
false
let unsupported_parser (s: string) (a: Type) : Tot (parser a) =
fun _ _ _ _ -> failwith (Printf.sprintf "unsupported parser: %s" s)
false
Z3TestGen.fst
Z3TestGen.mk_wrap_parser
val mk_wrap_parser (name binders body: string) : string
val mk_wrap_parser (name binders body: string) : string
let mk_wrap_parser (name: string) (binders: string) (body: string) : string = let input = Printf.sprintf "%s-input" name in let tmp = Printf.sprintf "%s-tmp" name in "(define-fun "^name^" ("^binders^"("^input^" State)) State (after-state ("^body^" "^input^")) ) "
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 1, "end_line": 460, "start_col": 0, "start_line": 450 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
name: Prims.string -> binders: Prims.string -> body: Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Prims.op_Hat", "FStar.Printf.sprintf" ]
[]
false
false
false
true
false
let mk_wrap_parser (name binders body: string) : string =
let input = Printf.sprintf "%s-input" name in let tmp = Printf.sprintf "%s-tmp" name in "(define-fun " ^ name ^ " (" ^ binders ^ "(" ^ input ^ " State)) State\n (after-state (" ^ body ^ " " ^ input ^ "))\n )\n"
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.parse_bounded_vldata_strong_correct
val parse_bounded_vldata_strong_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (xbytes: bytes) (consumed: consumed_length xbytes) (x:...
val parse_bounded_vldata_strong_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (xbytes: bytes) (consumed: consumed_length xbytes) (x:...
let parse_bounded_vldata_strong_correct (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (xbytes: bytes) (consumed: consumed_length xbytes) (x: t) : Lemma (requires (parse (...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 444, "start_col": 0, "start_line": 418 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> s: LowParse.Spec.Base.serializer p -> xbytes: LowParse.Bytes.bytes -> consumed: LowParse.Spec.Base.consumed_length xbytes -> x: t -> FStar.Pe...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Bytes.b...
[]
false
false
true
false
false
let parse_bounded_vldata_strong_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (xbytes: bytes) (consumed: consumed_length xbytes) (x:...
parse_bounded_vldata_elim min max l p xbytes x consumed; let sz:integer_size = l in let plen = parse (parse_bounded_integer sz) xbytes in let f () : Lemma (Some? plen) = parse_bounded_vldata_elim min max l p xbytes x consumed in f (); let Some (len, _) = plen in let input' = Seq.slice xbytes (sz <: nat) (sz + U32.v len...
false
Z3TestGen.fst
Z3TestGen.leaf_reading_parser
val leaf_reading_parser (name: string) : parser reading
val leaf_reading_parser (name: string) : parser reading
let leaf_reading_parser (name: string) : parser reading = fun _ _ _ _ -> { call = name }
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 433, "start_col": 0, "start_line": 432 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
name: Prims.string -> Z3TestGen.parser Z3TestGen.reading
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mkreading", "Z3TestGen.reading", "Z3TestGen.parser" ]
[]
false
false
false
true
false
let leaf_reading_parser (name: string) : parser reading =
fun _ _ _ _ -> { call = name }
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata_strong_correct
val serialize_bounded_vldata_strong_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (input: parse_bounded_vldata_strong_t min max s) : Lemma ...
val serialize_bounded_vldata_strong_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (input: parse_bounded_vldata_strong_t min max s) : Lemma ...
let serialize_bounded_vldata_strong_correct (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (l: nat { l >= log256' max /\ l <= 4 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (input: parse_bounded_vldata_strong_t min max s) : Lemma (let formatted = serialize_...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 608, "start_col": 0, "start_line": 572 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> l: Prims.nat{l >= LowParse.Spec.BoundedInt.log256' max /\ l <= 4} -> s: LowParse.Spec.Base.serializer p -> input: LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max s -> FStar.Pervasives.Lemma (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "Prims.op_GreaterThanOrEqual", "LowParse.Spec.BoundedInt.log256'", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VL...
[]
false
false
true
false
false
let serialize_bounded_vldata_strong_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (l: nat{l >= log256' max /\ l <= 4}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (input: parse_bounded_vldata_strong_t min max s) : Lemma ...
let sz = l in let sp = serialize s input in let nlen = Seq.length sp in assert (min <= nlen /\ nlen <= max); let len = U32.uint_to_t nlen in M.pow2_le_compat (FStar.Mul.op_Star 8 sz) (FStar.Mul.op_Star 8 (log256' max)); assert (U32.v len < pow2 (FStar.Mul.op_Star 8 sz)); let len:bounded_integer sz = len in let slen = s...
false
Z3TestGen.fst
Z3TestGen.maybe_toplevel_parser
val maybe_toplevel_parser (p: parser not_reading) : parser not_reading
val maybe_toplevel_parser (p: parser not_reading) : parser not_reading
let maybe_toplevel_parser (p: parser not_reading) : parser not_reading = fun name binders is_toplevel out -> if is_toplevel then begin let name' = Printf.sprintf "%s-body" name in let body = p name' binders false out in out (mk_toplevel_parser name binders.bind body.call); { call = mk_...
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 33, "end_line": 489, "start_col": 0, "start_line": 480 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Z3TestGen.parser Z3TestGen.not_reading -> Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Z3TestGen.parser", "Z3TestGen.not_reading", "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mknot_reading", "Z3TestGen.mk_function_call", "Z3TestGen.mk_toplevel_parser", "Z3TestGen.__proj__Mkbinders__item__bind", "Z3TestGen.__proj__Mknot_reading__item__call", "FSta...
[]
false
false
false
true
false
let maybe_toplevel_parser (p: parser not_reading) : parser not_reading =
fun name binders is_toplevel out -> if is_toplevel then let name' = Printf.sprintf "%s-body" name in let body = p name' binders false out in out (mk_toplevel_parser name binders.bind body.call); { call = mk_function_call name binders } else p name binders false out
false
Z3TestGen.fst
Z3TestGen.mk_constant
val mk_constant : _: Ast.constant -> FStar.All.ALL Prims.string
let mk_constant = function | A.Unit -> "0" | A.Int _ x -> string_of_int x | A.XInt _ x -> string_of_int (OS.int_of_string x) | A.Bool true -> "true" | A.Bool false -> "false"
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 27, "end_line": 313, "start_col": 0, "start_line": 308 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Ast.constant -> FStar.All.ALL Prims.string
FStar.All.ALL
[]
[]
[ "Ast.constant", "Prims.string", "Ast.integer_type", "Prims.int", "Prims.string_of_int", "OS.int_of_string" ]
[]
false
true
false
false
false
let mk_constant =
function | A.Unit -> "0" | A.Int _ x -> string_of_int x | A.XInt _ x -> string_of_int (OS.int_of_string x) | A.Bool true -> "true" | A.Bool false -> "false"
false
Z3TestGen.fst
Z3TestGen.mk_toplevel_parser
val mk_toplevel_parser (name binders body: string) : string
val mk_toplevel_parser (name binders body: string) : string
let mk_toplevel_parser (name: string) (binders: string) (body: string) : string = let input = Printf.sprintf "%s-input" name in "(define-fun "^name^" ("^binders^"("^input^" State)) State ("^body^" "^input^") ) "
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 1, "end_line": 478, "start_col": 0, "start_line": 469 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
name: Prims.string -> binders: Prims.string -> body: Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Prims.op_Hat", "FStar.Printf.sprintf" ]
[]
false
false
false
true
false
let mk_toplevel_parser (name binders body: string) : string =
let input = Printf.sprintf "%s-input" name in "(define-fun " ^ name ^ " (" ^ binders ^ "(" ^ input ^ " State)) State\n (" ^ body ^ " " ^ input ^ ")\n )\n"
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata_correct
val serialize_bounded_vldata_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) (x: t) : Lemma (let Some (_, consumed) = parse p (serialize...
val serialize_bounded_vldata_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) (x: t) : Lemma (let Some (_, consumed) = parse p (serialize...
let serialize_bounded_vldata_correct (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { serialize_bounded_vldata_precond min max k } ) (x: t) : Lemma ( let Some (_, consumed) = parse p (serialize s x) in let y = seria...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 655, "start_col": 0, "start_line": 641 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLData.serialize_bounded_vldata_precond min max k} -> x: t -> FStar.Pervasives.Lemma (ensures (let _ = LowParse.Spec.Base.parse p (LowParse.Spec.Bas...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLData.serialize_bounded_vldata_precond", "LowParse.Spec.Base.consumed_...
[]
false
false
true
false
false
let serialize_bounded_vldata_correct (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) (x: t) : Lemma (let Some (_, consumed) = parse p (serialize...
let Some (_, consumed) = parse p (serialize s x) in serialize_bounded_vldata_strong_correct min max (log256' max) s x; ()
false
Z3TestGen.fst
Z3TestGen.wrap_parser
val wrap_parser (p: parser reading) : parser not_reading
val wrap_parser (p: parser reading) : parser not_reading
let wrap_parser (p: parser reading) : parser not_reading = fun name binders _ out -> let name' = Printf.sprintf "%s-wrapped" name in let body = p name' binders false out in out (mk_wrap_parser name binders.bind body.call); { call = mk_function_call name binders }
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 44, "end_line": 467, "start_col": 0, "start_line": 462 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Z3TestGen.parser Z3TestGen.reading -> Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Z3TestGen.parser", "Z3TestGen.reading", "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mknot_reading", "Z3TestGen.mk_function_call", "Z3TestGen.not_reading", "Z3TestGen.mk_wrap_parser", "Z3TestGen.__proj__Mkbinders__item__bind", "Z3TestGen.__proj__Mkreading__item_...
[]
false
false
false
true
false
let wrap_parser (p: parser reading) : parser not_reading =
fun name binders _ out -> let name' = Printf.sprintf "%s-wrapped" name in let body = p name' binders false out in out (mk_wrap_parser name binders.bind body.call); { call = mk_function_call name binders }
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata
val serialize_bounded_vldata (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) : Tot (serializer (parse_bounded_vldata min max p))
val serialize_bounded_vldata (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) : Tot (serializer (parse_bounded_vldata min max p))
let serialize_bounded_vldata (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { serialize_bounded_vldata_precond min max k } ) : Tot (serializer (parse_bounded_vldata min max p)) = serialize_bounded_vldata' min max s
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 37, "end_line": 678, "start_col": 0, "start_line": 670 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLData.serialize_bounded_vldata_precond min max k} -> LowParse.Spec.Base.serializer (LowParse.Spec.VLData.parse_bounded_vldata min max p)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLData.serialize_bounded_vldata_precond", "LowParse.Spec.VLData.seriali...
[]
false
false
false
false
false
let serialize_bounded_vldata (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) : Tot (serializer (parse_bounded_vldata min max p)) =
serialize_bounded_vldata' min max s
false
Z3TestGen.fst
Z3TestGen.mk_app
val mk_app : fn: Prims.string -> _: FStar.Pervasives.Native.option Prims.string -> Prims.string
let mk_app fn = function | None -> fn | Some args -> Printf.sprintf "(%s %s)" fn args
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 49, "end_line": 317, "start_col": 0, "start_line": 315 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
fn: Prims.string -> _: FStar.Pervasives.Native.option Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.Pervasives.Native.option", "FStar.Printf.sprintf" ]
[]
false
false
false
true
false
let mk_app fn =
function | None -> fn | Some args -> Printf.sprintf "(%s %s)" fn args
false
Z3TestGen.fst
Z3TestGen.parse_all_bytes
val parse_all_bytes:parser not_reading
val parse_all_bytes:parser not_reading
let parse_all_bytes : parser not_reading = maybe_toplevel_parser (fun _ _ _ _ -> { call = "parse-all-bytes" })
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 69, "end_line": 492, "start_col": 0, "start_line": 491 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Z3TestGen.maybe_toplevel_parser", "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mknot_reading", "Z3TestGen.not_reading" ]
[]
false
false
false
true
false
let parse_all_bytes:parser not_reading =
maybe_toplevel_parser (fun _ _ _ _ -> { call = "parse-all-bytes" })
false
Z3TestGen.fst
Z3TestGen.parse_all_zeros
val parse_all_zeros:parser not_reading
val parse_all_zeros:parser not_reading
let parse_all_zeros : parser not_reading = maybe_toplevel_parser (fun _ _ _ _ -> { call = "parse-all-zeros" })
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 69, "end_line": 495, "start_col": 0, "start_line": 494 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Z3TestGen.maybe_toplevel_parser", "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mknot_reading", "Z3TestGen.not_reading" ]
[]
false
false
false
true
false
let parse_all_zeros:parser not_reading =
maybe_toplevel_parser (fun _ _ _ _ -> { call = "parse-all-zeros" })
false
Z3TestGen.fst
Z3TestGen.assert_some
val assert_some : _: FStar.Pervasives.Native.option _ -> FStar.All.ALL _
let assert_some = function | None -> failwith "assert_some" | Some x -> x
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 15, "end_line": 321, "start_col": 0, "start_line": 319 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
_: FStar.Pervasives.Native.option _ -> FStar.All.ALL _
FStar.All.ALL
[]
[]
[ "FStar.Pervasives.Native.option", "FStar.All.failwith" ]
[]
false
true
false
false
false
let assert_some =
function | None -> failwith "assert_some" | Some x -> x
false
Z3TestGen.fst
Z3TestGen.mk_app_without_paren'
val mk_app_without_paren' : id: Prims.string -> args: Prims.list Target.expr -> FStar.All.ML Prims.string
let mk_app_without_paren' id args = mk_args_aux None id args
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 26, "end_line": 503, "start_col": 0, "start_line": 502 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
id: Prims.string -> args: Prims.list Target.expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Prims.string", "Prims.list", "Target.expr", "Z3TestGen.mk_args_aux", "FStar.Pervasives.Native.None", "Ast.integer_type" ]
[]
false
true
false
false
false
let mk_app_without_paren' id args =
mk_args_aux None id args
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata'
val serialize_bounded_vldata' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) (x: t) : GTot (y: bytes{parse (parse_bounded_vldata min max p) y == So...
val serialize_bounded_vldata' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) (x: t) : GTot (y: bytes{parse (parse_bounded_vldata min max p) y == So...
let serialize_bounded_vldata' (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { serialize_bounded_vldata_precond min max k } ) (x: t) : GTot (y: bytes { parse (parse_bounded_vldata min max p) y == Some (x, Seq.length y) } ...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 63, "end_line": 668, "start_col": 0, "start_line": 657 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLData.serialize_bounded_vldata_precond min max k} -> x: t -> Prims.GTot (y: LowParse.Bytes.bytes { LowParse.Spec.Base.parse (LowParse.Spec....
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLData.serialize_bounded_vldata_precond", "LowParse.Spec.Base.consumed_...
[]
false
false
false
false
false
let serialize_bounded_vldata' (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {serialize_bounded_vldata_precond min max k}) (x: t) : GTot (y: bytes{parse (parse_bounded_vldata min max p) y == So...
let Some (_, consumed) = parse p (serialize s x) in serialize_bounded_vldata_correct min max s x; serialize_bounded_vldata_strong_aux min max (log256' max) s x
false
Z3TestGen.fst
Z3TestGen.parse_not_readable_app
val parse_not_readable_app (hd: A.ident) (args: list I.expr) : Tot (parser not_reading)
val parse_not_readable_app (hd: A.ident) (args: list I.expr) : Tot (parser not_reading)
let parse_not_readable_app (hd: A.ident) (args: list I.expr) : Tot (parser not_reading) = parse_not_readable_app' (ident_to_string hd) args
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 531, "start_col": 0, "start_line": 527 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
hd: Ast.ident -> args: Prims.list InterpreterTarget.expr -> Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Ast.ident", "Prims.list", "InterpreterTarget.expr", "Z3TestGen.parse_not_readable_app'", "Z3TestGen.ident_to_string", "Z3TestGen.parser", "Z3TestGen.not_reading" ]
[]
false
false
false
true
false
let parse_not_readable_app (hd: A.ident) (args: list I.expr) : Tot (parser not_reading) =
parse_not_readable_app' (ident_to_string hd) args
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata_strong_upd
val serialize_bounded_vldata_strong_upd (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: parse_bounded_vldata_strong_t min max s) (y: t) : Lemma (requires (Seq.length (serialize s y) =...
val serialize_bounded_vldata_strong_upd (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: parse_bounded_vldata_strong_t min max s) (y: t) : Lemma (requires (Seq.length (serialize s y) =...
let serialize_bounded_vldata_strong_upd (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: parse_bounded_vldata_strong_t min max s) (y: t) : Lemma (requires (Seq.length (serialize s y) == Seq.length (serialize s x)))...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 50, "end_line": 712, "start_col": 0, "start_line": 680 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> s: LowParse.Spec.Base.serializer p -> x: LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max s -> y: t -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length (LowParse.Spec.Base.serialize s y) =...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLData.parse_bounded_vldata_strong_t", "Prims._assert", "FStar.Seq.Ba...
[]
true
false
true
false
false
let serialize_bounded_vldata_strong_upd (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: parse_bounded_vldata_strong_t min max s) (y: t) : Lemma (requires (Seq.length (serialize s y) =...
let y:parse_bounded_vldata_strong_t min max s = y in let sx = serialize s x in let sx' = serialize (serialize_bounded_vldata_strong min max s) x in let sy = serialize s y in let sy' = serialize (serialize_bounded_vldata_strong min max s) y in let lm = log256' max in let sz = serialize (serialize_bounded_integer lm) (U3...
false
Z3TestGen.fst
Z3TestGen.mk_app_without_paren
val mk_app_without_paren : id: Ast.with_meta_t Ast.ident' -> args: Prims.list Target.expr -> FStar.All.ML Prims.string
let mk_app_without_paren id args = mk_app_without_paren' (ident_to_string id) args
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 49, "end_line": 506, "start_col": 0, "start_line": 505 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
id: Ast.with_meta_t Ast.ident' -> args: Prims.list Target.expr -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Ast.with_meta_t", "Ast.ident'", "Prims.list", "Target.expr", "Z3TestGen.mk_app_without_paren'", "Z3TestGen.ident_to_string", "Prims.string" ]
[]
false
true
false
false
false
let mk_app_without_paren id args =
mk_app_without_paren' (ident_to_string id) args
false
Z3TestGen.fst
Z3TestGen.parse_readable_app
val parse_readable_app (hd: A.ident) (args: list I.expr) : Tot (parser reading)
val parse_readable_app (hd: A.ident) (args: list I.expr) : Tot (parser reading)
let parse_readable_app (hd: A.ident) (args: list I.expr) : Tot (parser reading) = fun _ _ _ _ -> { call = mk_app_without_paren hd args }
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 512, "start_col": 0, "start_line": 508 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
hd: Ast.ident -> args: Prims.list InterpreterTarget.expr -> Z3TestGen.parser Z3TestGen.reading
Prims.Tot
[ "total" ]
[]
[ "Ast.ident", "Prims.list", "InterpreterTarget.expr", "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mkreading", "Z3TestGen.reading", "Z3TestGen.mk_app_without_paren", "Z3TestGen.parser" ]
[]
false
false
false
true
false
let parse_readable_app (hd: A.ident) (args: list I.expr) : Tot (parser reading) =
fun _ _ _ _ -> { call = mk_app_without_paren hd args }
false
Z3TestGen.fst
Z3TestGen.parse_denoted
val parse_denoted (d: I.dtyp) : parser not_reading
val parse_denoted (d: I.dtyp) : parser not_reading
let parse_denoted (d: I.dtyp) : parser not_reading = parse_dtyp d
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 546, "start_col": 0, "start_line": 545 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
d: InterpreterTarget.dtyp -> Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "InterpreterTarget.dtyp", "Z3TestGen.parse_dtyp", "Z3TestGen.parser", "Z3TestGen.not_reading" ]
[]
false
false
false
true
false
let parse_denoted (d: I.dtyp) : parser not_reading =
parse_dtyp d
false
Z3TestGen.fst
Z3TestGen.integer_type_bit_size
val integer_type_bit_size : _: Ast.integer_type -> Prims.int
let integer_type_bit_size = function | A.UInt8 -> 8 | A.UInt16 -> 16 | A.UInt32 -> 32 | A.UInt64 -> 64
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 341, "start_col": 0, "start_line": 337 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Ast.integer_type -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Ast.integer_type", "Prims.int" ]
[]
false
false
false
true
false
let integer_type_bit_size =
function | A.UInt8 -> 8 | A.UInt16 -> 16 | A.UInt32 -> 32 | A.UInt64 -> 64
false
Z3TestGen.fst
Z3TestGen.parse_not_readable_app'
val parse_not_readable_app' (hd: string) (args: list I.expr) : Tot (parser not_reading)
val parse_not_readable_app' (hd: string) (args: list I.expr) : Tot (parser not_reading)
let parse_not_readable_app' (hd: string) (args: list I.expr) : Tot (parser not_reading) = maybe_toplevel_parser (fun _ _ _ _ -> { call = mk_app_without_paren' hd args })
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 81, "end_line": 525, "start_col": 0, "start_line": 521 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
hd: Prims.string -> args: Prims.list InterpreterTarget.expr -> Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Prims.list", "InterpreterTarget.expr", "Z3TestGen.maybe_toplevel_parser", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mknot_reading", "Z3TestGen.not_reading", "Z3TestGen.mk_app_without_paren'", "Z3TestGen.parser" ]
[]
false
false
false
true
false
let parse_not_readable_app' (hd: string) (args: list I.expr) : Tot (parser not_reading) =
maybe_toplevel_parser (fun _ _ _ _ -> { call = mk_app_without_paren' hd args })
false
Z3TestGen.fst
Z3TestGen.mk_maybe_bitwise_arg
val mk_maybe_bitwise_arg (t: option A.integer_type) (arg: string) : Tot string
val mk_maybe_bitwise_arg (t: option A.integer_type) (arg: string) : Tot string
let mk_maybe_bitwise_arg (t: option A.integer_type) (arg: string) : Tot string = match t with | None -> arg | Some t -> mk_bitwise_arg t arg
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 34, "end_line": 382, "start_col": 0, "start_line": 379 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Pervasives.Native.option Ast.integer_type -> arg: Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.option", "Ast.integer_type", "Prims.string", "Z3TestGen.mk_bitwise_arg" ]
[]
false
false
false
true
false
let mk_maybe_bitwise_arg (t: option A.integer_type) (arg: string) : Tot string =
match t with | None -> arg | Some t -> mk_bitwise_arg t arg
false
LowParse.Spec.VLData.fsti
LowParse.Spec.VLData.serialize_bounded_vldata_strong_upd_bw
val serialize_bounded_vldata_strong_upd_bw (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: parse_bounded_vldata_strong_t min max s) (y: t) : Lemma (requires (Seq.length (serialize s y...
val serialize_bounded_vldata_strong_upd_bw (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: parse_bounded_vldata_strong_t min max s) (y: t) : Lemma (requires (Seq.length (serialize s y...
let serialize_bounded_vldata_strong_upd_bw (min: nat) (max: nat { min <= max /\ max > 0 /\ max < 4294967296 } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: parse_bounded_vldata_strong_t min max s) (y: t) : Lemma (requires (Seq.length (serialize s y) == Seq.length (serialize s x...
{ "file_name": "src/lowparse/LowParse.Spec.VLData.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 733, "start_col": 0, "start_line": 714 }
module LowParse.Spec.VLData include LowParse.Spec.FLData include LowParse.Spec.AllIntegers // for bounded_integer, in_bounds, etc. module Seq = FStar.Seq module U32 = FStar.UInt32 module M = LowParse.Math #reset-options "--z3rlimit 64 --max_fuel 64 --max_ifuel 64 --z3refresh --z3cliopt smt.arith.nl=false" let parse_...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.FLData.fst.checked", "LowParse.Spec.AllIntegers.fst.checked", "LowParse.Math.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "LowPars...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
min: Prims.nat -> max: Prims.nat{min <= max /\ max > 0 /\ max < 4294967296} -> s: LowParse.Spec.Base.serializer p -> x: LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max s -> y: t -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length (LowParse.Spec.Base.serialize s y) =...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_GreaterThan", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.VLData.parse_bounded_vldata_strong_t", "LowParse.Spec.VLData.serialize_...
[]
true
false
true
false
false
let serialize_bounded_vldata_strong_upd_bw (min: nat) (max: nat{min <= max /\ max > 0 /\ max < 4294967296}) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p) (x: parse_bounded_vldata_strong_t min max s) (y: t) : Lemma (requires (Seq.length (serialize s y...
serialize_bounded_vldata_strong_upd min max s x y
false
Z3TestGen.fst
Z3TestGen.parse_square
val parse_square (p: parser not_reading) : parser not_reading
val parse_square (p: parser not_reading) : parser not_reading
let parse_square (p: parser not_reading) : parser not_reading = fun name binders _ out -> let body_name = Printf.sprintf "%s-snd" name in let body = p body_name binders false out in out (mk_parse_pair name binders.bind body.call body.call); { call = mk_function_call name binders }
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 44, "end_line": 580, "start_col": 0, "start_line": 575 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Z3TestGen.parser Z3TestGen.not_reading -> Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Z3TestGen.parser", "Z3TestGen.not_reading", "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mknot_reading", "Z3TestGen.mk_function_call", "Z3TestGen.mk_parse_pair", "Z3TestGen.__proj__Mkbinders__item__bind", "Z3TestGen.__proj__Mknot_reading__item__call", "FStar.Pri...
[]
false
false
false
true
false
let parse_square (p: parser not_reading) : parser not_reading =
fun name binders _ out -> let body_name = Printf.sprintf "%s-snd" name in let body = p body_name binders false out in out (mk_parse_pair name binders.bind body.call body.call); { call = mk_function_call name binders }
false
Z3TestGen.fst
Z3TestGen.parse_false
val parse_false:parser not_reading
val parse_false:parser not_reading
let parse_false : parser not_reading = maybe_toplevel_parser (fun _ _ _ _ -> { call = "parse-false" })
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 65, "end_line": 543, "start_col": 0, "start_line": 542 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Z3TestGen.maybe_toplevel_parser", "Prims.string", "Z3TestGen.binders", "Prims.bool", "Prims.unit", "Z3TestGen.Mknot_reading", "Z3TestGen.not_reading" ]
[]
false
false
false
true
false
let parse_false:parser not_reading =
maybe_toplevel_parser (fun _ _ _ _ -> { call = "parse-false" })
false
Z3TestGen.fst
Z3TestGen.parse_refine
val parse_refine (tag: parser reading) (cond_binder: A.ident) (cond: (unit -> ML string)) : parser not_reading
val parse_refine (tag: parser reading) (cond_binder: A.ident) (cond: (unit -> ML string)) : parser not_reading
let parse_refine (tag: parser reading) (cond_binder: A.ident) (cond: unit -> ML string) : parser not_reading = parse_dep_pair_with_refinement tag cond_binder cond cond_binder (parse_itype I.Unit)
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 86, "end_line": 667, "start_col": 0, "start_line": 666 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
tag: Z3TestGen.parser Z3TestGen.reading -> cond_binder: Ast.ident -> cond: (_: Prims.unit -> FStar.All.ML Prims.string) -> Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Z3TestGen.parser", "Z3TestGen.reading", "Ast.ident", "Prims.unit", "Prims.string", "Z3TestGen.parse_dep_pair_with_refinement", "Z3TestGen.parse_itype", "InterpreterTarget.Unit", "Z3TestGen.not_reading" ]
[]
false
false
false
false
false
let parse_refine (tag: parser reading) (cond_binder: A.ident) (cond: (unit -> ML string)) : parser not_reading =
parse_dep_pair_with_refinement tag cond_binder cond cond_binder (parse_itype I.Unit)
false
Z3TestGen.fst
Z3TestGen.parse_ifthenelse_cons
val parse_ifthenelse_cons (cond: (unit -> ML string)) (pthen: parser not_reading) (pelse: (int -> parser not_reading)) (counter: int) : parser not_reading
val parse_ifthenelse_cons (cond: (unit -> ML string)) (pthen: parser not_reading) (pelse: (int -> parser not_reading)) (counter: int) : parser not_reading
let parse_ifthenelse_cons (cond: unit -> ML string) (pthen: parser not_reading) (pelse: int -> parser not_reading) (counter: int) : parser not_reading = fun name binders _ out -> let name_then = Printf.sprintf "%s-then" name in let body_then = pthen name_then binders false out in let name_else = Printf.sp...
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 44, "end_line": 696, "start_col": 0, "start_line": 689 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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
cond: (_: Prims.unit -> FStar.All.ML Prims.string) -> pthen: Z3TestGen.parser Z3TestGen.not_reading -> pelse: (_: Prims.int -> Z3TestGen.parser Z3TestGen.not_reading) -> counter: Prims.int -> Z3TestGen.parser Z3TestGen.not_reading
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.string", "Z3TestGen.parser", "Z3TestGen.not_reading", "Prims.int", "Z3TestGen.binders", "Prims.bool", "Z3TestGen.Mknot_reading", "Z3TestGen.mk_function_call", "Z3TestGen.mk_parse_ifthenelse_cons", "Z3TestGen.__proj__Mkbinders__item__bind", "Z3TestGen.__proj__Mknot_reading_...
[]
false
false
false
false
false
let parse_ifthenelse_cons (cond: (unit -> ML string)) (pthen: parser not_reading) (pelse: (int -> parser not_reading)) (counter: int) : parser not_reading =
fun name binders _ out -> let name_then = Printf.sprintf "%s-then" name in let body_then = pthen name_then binders false out in let name_else = Printf.sprintf "%s-else" name in let body_else = pelse (counter + 1) name_else binders false out in out (mk_parse_ifthenelse_cons counter name binders.bind (cond ()) ...
false
Z3TestGen.fst
Z3TestGen.mk_parse_dep_pair_with_refinement
val mk_parse_dep_pair_with_refinement (name binders dfst cond_binder_name cond dsnd_binder_name dsnd: string) : string
val mk_parse_dep_pair_with_refinement (name binders dfst cond_binder_name cond dsnd_binder_name dsnd: string) : string
let mk_parse_dep_pair_with_refinement (name: string) (binders: string) (dfst: string) (cond_binder_name: string) (cond: string) (dsnd_binder_name: string) (dsnd: string) (* already contains the new argument *) : string = let input = Printf.sprintf "%s-input" name in let tmp = Printf.sprintf "%s-tmp" nam...
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 1, "end_line": 619, "start_col": 0, "start_line": 582 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
name: Prims.string -> binders: Prims.string -> dfst: Prims.string -> cond_binder_name: Prims.string -> cond: Prims.string -> dsnd_binder_name: Prims.string -> dsnd: Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Prims.op_Hat", "FStar.Printf.sprintf" ]
[]
false
false
false
true
false
let mk_parse_dep_pair_with_refinement (name binders dfst cond_binder_name cond dsnd_binder_name dsnd: string) : string =
let input = Printf.sprintf "%s-input" name in let tmp = Printf.sprintf "%s-tmp" name in let condtmp = Printf.sprintf "%s-condtmp" name in "(define-fun " ^ name ^ " (" ^ binders ^ "(" ^ input ^ " State)) State\n (let ((" ^ tmp ^ " (" ^ dfst ^ " " ^ input ^ ")))\n (if (< (input-size (after-state " ^ tmp ^ ")) 0)\n ...
false
Z3TestGen.fst
Z3TestGen.mk_parse_dep_pair
val mk_parse_dep_pair (name binders dfst dsnd_binder_name dsnd: string) : string
val mk_parse_dep_pair (name binders dfst dsnd_binder_name dsnd: string) : string
let mk_parse_dep_pair (name: string) (binders: string) (dfst: string) (dsnd_binder_name: string) (dsnd: string) (* already contains the new argument *) : string = let input = Printf.sprintf "%s-input" name in let tmp = Printf.sprintf "%s-tmp" name in "(define-fun "^name^" ("^binders^"("^input^" State)) Stat...
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 1, "end_line": 653, "start_col": 0, "start_line": 634 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
name: Prims.string -> binders: Prims.string -> dfst: Prims.string -> dsnd_binder_name: Prims.string -> dsnd: Prims.string -> Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Prims.op_Hat", "FStar.Printf.sprintf" ]
[]
false
false
false
true
false
let mk_parse_dep_pair (name binders dfst dsnd_binder_name dsnd: string) : string =
let input = Printf.sprintf "%s-input" name in let tmp = Printf.sprintf "%s-tmp" name in "(define-fun " ^ name ^ " (" ^ binders ^ "(" ^ input ^ " State)) State\n (let ((" ^ tmp ^ " (" ^ dfst ^ " " ^ input ^ ")))\n (if (< (input-size (after-state " ^ tmp ^ ")) 0)\n (after-state " ^ tmp ^ ")\n (let ((" ^...
false
Z3TestGen.fst
Z3TestGen.mk_bitwise_not
val mk_bitwise_not (a: A.integer_type) (bitvec_arg: option string) : ML string
val mk_bitwise_not (a: A.integer_type) (bitvec_arg: option string) : ML string
let mk_bitwise_not (a: A.integer_type) (bitvec_arg: option string) : ML string = match bitvec_arg with | None -> failwith "ill-formed bitwise_not" | Some arg -> "(bv2int (bvxor "^arg^" #b"^String.make (integer_type_bit_size a) '1'^"))"
{ "file_name": "src/3d/Z3TestGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 90, "end_line": 346, "start_col": 0, "start_line": 343 }
module Z3TestGen module Printf = FStar.Printf open FStar.All open FStar.Mul module A = Ast module T = Target module I = InterpreterTarget let prelude : string = " (set-option :produce-models true) (declare-datatypes () ((State (mk-state (input-size Int) (choice-index Int) (branch-index Int))))) (declare-datatypes () ...
{ "checked_file": "/", "dependencies": [ "Z3.fsti.checked", "Target.fsti.checked", "prims.fst.checked", "OS.fsti.checked", "Lisp.fsti.checked", "InterpreterTarget.fsti.checked", "FStar.String.fsti.checked", "FStar.Seq.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasive...
[ { "abbrev": true, "full_module": "InterpreterTarget", "short_module": "I" }, { "abbrev": true, "full_module": "Target", "short_module": "T" }, { "abbrev": true, "full_module": "Ast", "short_module": "A" }, { "abbrev": false, "full_module": "FStar.Mul", "sh...
{ "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: Ast.integer_type -> bitvec_arg: FStar.Pervasives.Native.option Prims.string -> FStar.All.ML Prims.string
FStar.All.ML
[ "ml" ]
[]
[ "Ast.integer_type", "FStar.Pervasives.Native.option", "Prims.string", "FStar.All.failwith", "Prims.op_Hat", "FStar.String.make", "Z3TestGen.integer_type_bit_size" ]
[]
false
true
false
false
false
let mk_bitwise_not (a: A.integer_type) (bitvec_arg: option string) : ML string =
match bitvec_arg with | None -> failwith "ill-formed bitwise_not" | Some arg -> "(bv2int (bvxor " ^ arg ^ " #b" ^ String.make (integer_type_bit_size a) '1' ^ "))"
false