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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_dep_pair | val validate_dep_pair
(name1: string)
(#nz1:_)
(#k1:parser_kind nz1 WeakKindStrongPrefix)
(#t1:Type)
(#[@@@erasable] p1:parser k1 t1)
(#[@@@erasable] inv1:slice_inv)
(#[@@@erasable] disj1:disjointness_pre)
(#[@@@erasable] l1:eloc)
(v1:validate_with_action_t... | val validate_dep_pair
(name1: string)
(#nz1:_)
(#k1:parser_kind nz1 WeakKindStrongPrefix)
(#t1:Type)
(#[@@@erasable] p1:parser k1 t1)
(#[@@@erasable] inv1:slice_inv)
(#[@@@erasable] disj1:disjointness_pre)
(#[@@@erasable] l1:eloc)
(v1:validate_with_action_t... | let validate_dep_pair
(name1: string)
#nz1 (#k1:parser_kind nz1 _) #t1 (#p1:parser k1 t1)
#inv1 #disj1 #l1 (v1:validate_with_action_t p1 inv1 disj1 l1 true) (r1: leaf_reader p1)
#nz2 #wk2 (#k2:parser_kind nz2 wk2) (#t2:t1 -> Type) (#p2:(x:t1 -> parser k2 (t2 x)))
#inv2 #disj2 #l2 #ar2 (v2:... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 74,
"end_line": 474,
"start_col": 0,
"start_line": 452
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Spec.Combinators",
"short_module": "LPC"
},
{
"abbrev": true,
"full_module": "LowParse.Low.Base",
"short_module": "LPL"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Base",
"short_module": "LP"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 |
name1: Prims.string ->
v1: EverParse3d.Actions.Base.validate_with_action_t p1 inv1 disj1 l1 true ->
r1: EverParse3d.Actions.Base.leaf_reader p1 ->
v2:
(x: t1 -> EverParse3d.Actions.Base.validate_with_action_t (p2 x) inv2 disj2 l2 allow_reading2)
-> EverParse3d.Actions.Base.validate_with_action_... | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.bool",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Kinds.WeakKindStrongPrefix",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"EverParse3d.Actions.Base.validate_with_action_t"... | [] | false | false | false | false | false | let validate_dep_pair
(name1: string)
#nz1
(#k1: parser_kind nz1 _)
#t1
(#p1: parser k1 t1)
#inv1
#disj1
#l1
(v1: validate_with_action_t p1 inv1 disj1 l1 true)
(r1: leaf_reader p1)
#nz2
#wk2
(#k2: parser_kind nz2 wk2)
(#t2: (t1 -> Type)... | fun ctxt error_handler_fn input input_length start_position ->
[@@ inline_let ]let pos = start_position in
let h = HST.get () in
LPC.parse_dtuple2_eq p1 p2 (I.get_remaining input h);
[@@ (rename_let ("positionAfter" ^ name1)) ]let pos1 =
v1 ctxt error_handler_fn input input_length pos
in
let h1 = HST.ge... | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.serialize_list_up_to' | val serialize_list_up_to'
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
: Tot (bare_serializer (parse_list_up_to_t cond)) | val serialize_list_up_to'
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
: Tot (bare_serializer (parse_list_up_to_t cond)) | let serialize_list_up_to'
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
: Tot (bare_serializer (parse_list_up_to_t cond))
= fun xy ->
serialize (serialize_list_up_to_fuel cond s (L.length (fst xy) + 1)) (fst xy, snd xy) | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 87,
"end_line": 459,
"start_col": 0,
"start_line": 451
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong }
-> LowParse.Spec.Base.bare_serializer (LowParse.Spec.ListUpTo.parse_list_up_to_t cond) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
... | [] | false | false | false | false | false | let serialize_list_up_to'
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
: Tot (bare_serializer (parse_list_up_to_t cond)) =
| fun xy -> serialize (serialize_list_up_to_fuel cond s (L.length (fst xy) + 1)) (fst xy, snd xy) | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.action_weaken | val action_weaken
(#[@@@erasable] inv:slice_inv)
(#[@@@erasable] disj:disjointness_pre)
(#[@@@erasable] l:eloc)
(#b:_)
(#a:_)
(act:action inv disj l b a)
(#[@@@erasable] inv':slice_inv{inv' `inv_implies` inv})
(#[@@@erasable] disj':disjointness_pre { disj' `imp_di... | val action_weaken
(#[@@@erasable] inv:slice_inv)
(#[@@@erasable] disj:disjointness_pre)
(#[@@@erasable] l:eloc)
(#b:_)
(#a:_)
(act:action inv disj l b a)
(#[@@@erasable] inv':slice_inv{inv' `inv_implies` inv})
(#[@@@erasable] disj':disjointness_pre { disj' `imp_di... | let action_weaken #inv #disj #l #b #a act #inv' #disj' #l' = act | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 64,
"end_line": 1836,
"start_col": 0,
"start_line": 1836
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 | act: EverParse3d.Actions.Base.action inv disj l b a
-> EverParse3d.Actions.Base.action inv' disj' l' b a | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"Prims.bool",
"EverParse3d.Actions.Base.action",
"EverParse3d.Actions.Base.inv_implies",
"EverParse3d.Actions.Base.imp_disjointness",
"EverParse3d.Actions.Base.eloc_includes"
] | [] | false | false | false | false | false | let action_weaken #inv #disj #l #b #a act #inv' #disj' #l' =
| act | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.action_field_pos_64 | val action_field_pos_64
: action true_inv disjointness_trivial eloc_none false U64.t | val action_field_pos_64
: action true_inv disjointness_trivial eloc_none false U64.t | let action_field_pos_64
= fun _ _ _ _ pos _ -> pos | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 1798,
"start_col": 0,
"start_line": 1797
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 | EverParse3d.Actions.Base.action EverParse3d.Actions.Base.true_inv
EverParse3d.Actions.Base.disjointness_trivial
EverParse3d.Actions.Base.eloc_none
false
FStar.UInt64.t | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
"EverParse3d.InputStream.All.inst",
"EverParse3d.Actions.Base.app_ctxt",
"EverParse3d.Actions.Base.error_handler",
"EverParse3d.InputStream.Base.tlen",
"EverParse3d.ErrorCode.pos_t",
"FStar.UInt64.t"
] | [] | false | false | false | false | false | let action_field_pos_64 =
| fun _ _ _ _ pos _ -> pos | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.parse_list_up_to_eq | val parse_list_up_to_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t { k.parser_kind_subkind <> Some ParserConsumesAll })
(prf: consumes_if_not_cond cond p)
(b: bytes)
: Lemma
(parse (parse_list_up_to cond p prf) b == (
match parse p b with
| None -> None
| Some (x, cons... | val parse_list_up_to_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t { k.parser_kind_subkind <> Some ParserConsumesAll })
(prf: consumes_if_not_cond cond p)
(b: bytes)
: Lemma
(parse (parse_list_up_to cond p prf) b == (
match parse p b with
| None -> None
| Some (x, cons... | let parse_list_up_to_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t { k.parser_kind_subkind <> Some ParserConsumesAll })
(prf: consumes_if_not_cond cond p)
(b: bytes)
: Lemma
(parse (parse_list_up_to cond p prf) b == (
match parse p b with
| None -> None
| Some (x, cons... | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 346,
"start_col": 0,
"start_line": 313
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
p:
LowParse.Spec.Base.parser k t
{ Mkparser_kind'?.parser_kind_subkind k <>
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } ->
prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p ->
b: LowParse.Bytes.bytes
-> FStar.Pervasiv... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
"LowParse... | [] | false | false | true | false | false | let parse_list_up_to_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t {k.parser_kind_subkind <> Some ParserConsumesAll})
(prf: consumes_if_not_cond cond p)
(b: bytes)
: Lemma
(parse (parse_list_up_to cond p prf) b ==
(match parse p b with
|... | let fuel = close_parse_list_up_to b in
parse_list_up_to'_eq cond p fuel b;
parse_list_up_to_fuel_eq cond p fuel b;
match parse p b with
| None -> ()
| Some (x, consumed) ->
if cond x
then ()
else
(prf b x consumed;
let b' = Seq.slice b consumed (Seq.length b) in
let fuel' = close_parse_list_up_to ... | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.serialize_list_up_to_correct | val serialize_list_up_to_correct
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(xy: parse_list_up_to_t cond)
: Lemma
(let sq = serialize_list_up_to'... | val serialize_list_up_to_correct
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(xy: parse_list_up_to_t cond)
: Lemma
(let sq = serialize_list_up_to'... | let serialize_list_up_to_correct
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
(xy: parse_list_up_to_t cond)
: Lemma
(
let sq = serialize_list_up_to' cond s xy in
parse (pa... | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 83,
"end_line": 479,
"start_col": 0,
"start_line": 461
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p ->
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
xy: LowParse.Spec.ListUpTo.parse_list_up_to_t ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"LowParse.Spec.ListUpTo.consumes_if_not_cond",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_ki... | [] | true | false | true | false | false | let serialize_list_up_to_correct
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(xy: parse_list_up_to_t cond)
: Lemma
(let sq = serialize_list_up_to'... | let sq = serialize_list_up_to' cond s xy in
let fuel' = close_parse_list_up_to sq in
let fuel = L.length (fst xy) + 1 in
parse_list_up_to'_eq cond p fuel' sq;
parse_list_up_to_fuel_length cond p prf fuel sq;
parse_list_up_to_fuel_indep cond p fuel sq (fst xy, snd xy) (Seq.length sq) fuel' | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.action_assignment | val action_assignment
(#a:_)
(x:bpointer a)
(v:a)
: action (ptr_inv x) disjointness_trivial (ptr_loc x) false unit | val action_assignment
(#a:_)
(x:bpointer a)
(v:a)
: action (ptr_inv x) disjointness_trivial (ptr_loc x) false unit | let action_assignment
(#a:_) (x:B.pointer a) (v:a)
= fun _ _ _ _ _ _ ->
ptr_inv_elim x;
x *= v | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 10,
"end_line": 1832,
"start_col": 0,
"start_line": 1828
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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: EverParse3d.Actions.Base.bpointer a -> v: a
-> EverParse3d.Actions.Base.action (EverParse3d.Actions.Base.ptr_inv x)
EverParse3d.Actions.Base.disjointness_trivial
(EverParse3d.Actions.Base.ptr_loc x)
false
Prims.unit | Prims.Tot | [
"total"
] | [] | [
"LowStar.Buffer.pointer",
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
"EverParse3d.InputStream.All.inst",
"EverParse3d.Actions.Base.app_ctxt",
"EverParse3d.Actions.Base.error_handler",
"EverParse3d.InputStream.Base.tlen",
"EverParse3d.ErrorCode.pos_t",
"LowStar... | [] | false | false | false | false | false | let action_assignment (#a: _) (x: B.pointer a) (v: a) =
| fun _ _ _ _ _ _ ->
ptr_inv_elim x;
x *= v | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.action_deref | val action_deref
(#a:_)
(x:bpointer a)
: action (ptr_inv x) disjointness_trivial eloc_none false a | val action_deref
(#a:_)
(x:bpointer a)
: action (ptr_inv x) disjointness_trivial eloc_none false a | let action_deref
(#a:_) (x:B.pointer a)
= fun _ _ _ _ _ _ ->
ptr_inv_elim x;
!*x | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 1824,
"start_col": 0,
"start_line": 1820
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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: EverParse3d.Actions.Base.bpointer a
-> EverParse3d.Actions.Base.action (EverParse3d.Actions.Base.ptr_inv x)
EverParse3d.Actions.Base.disjointness_trivial
EverParse3d.Actions.Base.eloc_none
false
a | Prims.Tot | [
"total"
] | [] | [
"LowStar.Buffer.pointer",
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
"EverParse3d.InputStream.All.inst",
"EverParse3d.Actions.Base.app_ctxt",
"EverParse3d.Actions.Base.error_handler",
"EverParse3d.InputStream.Base.tlen",
"EverParse3d.ErrorCode.pos_t",
"LowStar... | [] | false | false | false | false | false | let action_deref (#a: _) (x: B.pointer a) =
| fun _ _ _ _ _ _ ->
ptr_inv_elim x;
!*x | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.serialize_list_up_to | val serialize_list_up_to
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
: Tot (serializer (parse_list_up_to cond p prf)) | val serialize_list_up_to
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
: Tot (serializer (parse_list_up_to cond p prf)) | let serialize_list_up_to
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
: Tot (serializer (parse_list_up_to cond p prf))
= Classical.forall_intro (serialize_list_up_to_correct cond prf ... | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 30,
"end_line": 490,
"start_col": 0,
"start_line": 481
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p ->
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong }
-> LowParse.Spec.Base.serializer (LowParse.Spec.Lis... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"LowParse.Spec.ListUpTo.consumes_if_not_cond",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_ki... | [] | false | false | false | false | false | let serialize_list_up_to
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
: Tot (serializer (parse_list_up_to cond p prf)) =
| Classical.forall_intro (serialize_list_up_to_correct cond prf s);
serialize_list_up_to' cond s | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.parse_list_up_to_fuel_eq | val parse_list_up_to_fuel_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t {k.parser_kind_subkind <> Some ParserConsumesAll})
(fuel: nat)
(b: bytes)
: Lemma
(parse (parse_list_up_to_fuel cond p fuel) b ==
(if fuel = 0
then None
else... | val parse_list_up_to_fuel_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t {k.parser_kind_subkind <> Some ParserConsumesAll})
(fuel: nat)
(b: bytes)
: Lemma
(parse (parse_list_up_to_fuel cond p fuel) b ==
(if fuel = 0
then None
else... | let parse_list_up_to_fuel_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t { k.parser_kind_subkind <> Some ParserConsumesAll })
(fuel: nat)
(b: bytes)
: Lemma
(parse (parse_list_up_to_fuel cond p fuel) b == (
if fuel = 0
then None
else match parse p b with
| None -> N... | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 131,
"start_col": 0,
"start_line": 93
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
p:
LowParse.Spec.Base.parser k t
{ Mkparser_kind'?.parser_kind_subkind k <>
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } ->
fuel: Prims.nat ->
b: LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
(ensures
LowParse.Spe... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
"LowParse... | [] | false | false | true | false | false | let parse_list_up_to_fuel_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t {k.parser_kind_subkind <> Some ParserConsumesAll})
(fuel: nat)
(b: bytes)
: Lemma
(parse (parse_list_up_to_fuel cond p fuel) b ==
(if fuel = 0
then None
else... | if fuel = 0
then ()
else
(parse_synth_eq (parse_dtuple2 (weaken (parse_list_up_to_kind k) p)
#(parse_list_up_to_payload_kind k)
#(parse_list_up_to_payload_t cond (fuel - 1))
(parse_list_up_to_payload cond (fuel - 1) k (parse_list_up_to_fuel cond p (fuel - 1))))
(synth_list_up_to_fu... | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.action_abort | val action_abort
: action true_inv disjointness_trivial eloc_none false bool | val action_abort
: action true_inv disjointness_trivial eloc_none false bool | let action_abort
= fun _ _ _ _ _ _ -> false | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 1793,
"start_col": 0,
"start_line": 1792
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 | EverParse3d.Actions.Base.action EverParse3d.Actions.Base.true_inv
EverParse3d.Actions.Base.disjointness_trivial
EverParse3d.Actions.Base.eloc_none
false
Prims.bool | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
"EverParse3d.InputStream.All.inst",
"EverParse3d.Actions.Base.app_ctxt",
"EverParse3d.Actions.Base.error_handler",
"EverParse3d.InputStream.Base.tlen",
"EverParse3d.ErrorCode.pos_t",
"Prims.bool"
] | [] | false | false | false | false | false | let action_abort =
| fun _ _ _ _ _ _ -> false | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.mk_external_action | val mk_external_action
(#l:eloc) ($f: external_action l)
: action true_inv disjointness_trivial l false unit | val mk_external_action
(#l:eloc) ($f: external_action l)
: action true_inv disjointness_trivial l false unit | let mk_external_action #_ f = fun _ _ _ _ _ _ -> f () | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 54,
"end_line": 1843,
"start_col": 0,
"start_line": 1843
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | $f: EverParse3d.Actions.Base.external_action l
-> EverParse3d.Actions.Base.action EverParse3d.Actions.Base.true_inv
EverParse3d.Actions.Base.disjointness_trivial
l
false
Prims.unit | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.Actions.Base.eloc",
"EverParse3d.Actions.Base.external_action",
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
"EverParse3d.InputStream.All.inst",
"EverParse3d.Actions.Base.app_ctxt",
"EverParse3d.Actions.Base.error_handler",
"EverParse3d.InputStream.Ba... | [] | false | false | false | false | false | let mk_external_action #_ f =
| fun _ _ _ _ _ _ -> f () | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.serialize_list_up_to_fuel | val serialize_list_up_to_fuel
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(fuel: nat)
: Tot (serializer (parse_list_up_to_fuel cond p fuel)) (decreases fuel) | val serialize_list_up_to_fuel
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(fuel: nat)
: Tot (serializer (parse_list_up_to_fuel cond p fuel)) (decreases fuel) | let rec serialize_list_up_to_fuel
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
(fuel: nat)
: Tot (serializer (parse_list_up_to_fuel cond p fuel))
(decreases fuel)
= if fuel = 0
then fail_serializer (parse_list_up_t... | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 8,
"end_line": 409,
"start_col": 0,
"start_line": 383
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
fuel: Prims.nat
-> Prims.Tot
(LowParse.Spec.Base.serializer (LowParse.Spec.ListUpTo.parse_list_up_to_fu... | Prims.Tot | [
"total",
""
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
... | [
"recursion"
] | false | false | false | false | false | let rec serialize_list_up_to_fuel
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(fuel: nat)
: Tot (serializer (parse_list_up_to_fuel cond p fuel)) (decreases fuel) =
| if fuel = 0
then fail_serializer (parse_list_up_to_kind k) (parse_list_up_to_fuel_t cond fuel) (fun _ -> ())
else
serialize_synth (parse_dtuple2 (weaken (parse_list_up_to_kind k) p)
#(parse_list_up_to_payload_kind k)
#(parse_list_up_to_payload_t cond (fuel - 1))
(parse_list_up_to_payload cond ... | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.copy_buffer_inv | val copy_buffer_inv (x:CP.copy_buffer_t) : slice_inv | val copy_buffer_inv (x:CP.copy_buffer_t) : slice_inv | let copy_buffer_inv (x:CP.copy_buffer_t)
: slice_inv
= CP.properties x;
F.on HS.mem #prop (CP.inv x) | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 30,
"end_line": 1848,
"start_col": 0,
"start_line": 1845
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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: EverParse3d.CopyBuffer.copy_buffer_t -> EverParse3d.Actions.Base.slice_inv | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.CopyBuffer.copy_buffer_t",
"FStar.FunctionalExtensionality.on",
"FStar.Monotonic.HyperStack.mem",
"Prims.prop",
"EverParse3d.CopyBuffer.inv",
"Prims.unit",
"EverParse3d.CopyBuffer.properties",
"EverParse3d.Actions.Base.slice_inv"
] | [] | false | false | false | true | false | let copy_buffer_inv (x: CP.copy_buffer_t) : slice_inv =
| CP.properties x;
F.on HS.mem #prop (CP.inv x) | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.parse_list_up_to_fuel_ext | val parse_list_up_to_fuel_ext
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t {k.parser_kind_subkind <> Some ParserConsumesAll})
(prf:
(b: bytes -> x: t -> consumed: consumed_length b
-> Lemma (requires (parse p b == Some (x, consumed) /\ (~(cond... | val parse_list_up_to_fuel_ext
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t {k.parser_kind_subkind <> Some ParserConsumesAll})
(prf:
(b: bytes -> x: t -> consumed: consumed_length b
-> Lemma (requires (parse p b == Some (x, consumed) /\ (~(cond... | let rec parse_list_up_to_fuel_ext
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t { k.parser_kind_subkind <> Some ParserConsumesAll })
(prf: (
(b: bytes) ->
(x: t) ->
(consumed: consumed_length b) ->
Lemma
(requires (parse p b == Some (x, consumed) /\ (~ (cond x))))
... | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 230,
"start_col": 0,
"start_line": 197
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
p:
LowParse.Spec.Base.parser k t
{ Mkparser_kind'?.parser_kind_subkind k <>
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserConsumesAll } ->
prf:
(b: LowParse.Bytes.bytes -> x: t -> consumed: LowParse.Spec.Base.consumed_length b
->... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"Prims.b2t",
"Prims.op_disEquality",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
"LowParse... | [
"recursion"
] | false | false | true | false | false | let rec parse_list_up_to_fuel_ext
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(p: parser k t {k.parser_kind_subkind <> Some ParserConsumesAll})
(prf:
(b: bytes -> x: t -> consumed: consumed_length b
-> Lemma (requires (parse p b == Some (x, consumed) /\ (~(... | parse_list_up_to_fuel_eq cond p fuel1 b;
parse_list_up_to_fuel_eq cond p fuel2 b;
match parse p b with
| None -> ()
| Some (x, consumed) ->
if cond x
then ()
else
(prf b x consumed;
parse_list_up_to_fuel_ext cond
p
prf
(fuel1 - 1)
(fuel2 - 1)
(Seq.slice b consumed... | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.copy_buffer_loc | val copy_buffer_loc (x:CP.copy_buffer_t) : eloc | val copy_buffer_loc (x:CP.copy_buffer_t) : eloc | let copy_buffer_loc (x:CP.copy_buffer_t)
: eloc
= CP.loc_of x | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 13,
"end_line": 1851,
"start_col": 0,
"start_line": 1849
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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: EverParse3d.CopyBuffer.copy_buffer_t -> EverParse3d.Actions.Base.eloc | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.CopyBuffer.copy_buffer_t",
"FStar.Ghost.hide",
"LowStar.Monotonic.Buffer.loc",
"EverParse3d.CopyBuffer.loc_of",
"EverParse3d.Actions.Base.eloc"
] | [] | false | false | false | true | false | let copy_buffer_loc (x: CP.copy_buffer_t) : eloc =
| CP.loc_of x | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.action_seq | val action_seq
(#[@@@erasable] invf:slice_inv)
(#[@@@erasable] disjf:disjointness_pre)
(#[@@@erasable] lf:eloc)
(#bf:_)
(#a:Type)
(f: action invf disjf lf bf a)
(#[@@@erasable] invg:slice_inv)
(#[@@@erasable] disjg:disjointness_pre)
(#[@@@erasable] lg:eloc)... | val action_seq
(#[@@@erasable] invf:slice_inv)
(#[@@@erasable] disjf:disjointness_pre)
(#[@@@erasable] lf:eloc)
(#bf:_)
(#a:Type)
(f: action invf disjf lf bf a)
(#[@@@erasable] invg:slice_inv)
(#[@@@erasable] disjg:disjointness_pre)
(#[@@@erasable] lg:eloc)... | let action_seq
(#invf:slice_inv) #disjf (#lf:eloc)
#bf (#a:Type) (f: action invf disjf lf bf a)
(#invg:slice_inv) #disjg (#lg:eloc) #bg
(#b:Type) (g: action invg disjg lg bg b)
= fun ctxt error_handler_fn input input_length pos posf ->
let h0 = HST.get () in
let _ = f ctxt error_handler_... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 55,
"end_line": 1775,
"start_col": 0,
"start_line": 1765
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
f: EverParse3d.Actions.Base.action invf disjf lf bf a ->
g: EverParse3d.Actions.Base.action invg disjg lg bg b
-> EverParse3d.Actions.Base.action (EverParse3d.Actions.Base.conj_inv invf invg)
(EverParse3d.Actions.Base.conj_disjointness disjf disjg)
(EverParse3d.Actions.Base.eloc_union lf lg)
... | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"Prims.bool",
"EverParse3d.Actions.Base.action",
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
"EverParse3d.InputStream.All.inst",
"EverParse3d.Act... | [] | false | false | false | false | false | let action_seq
(#invf: slice_inv)
#disjf
(#lf: eloc)
#bf
(#a: Type)
(f: action invf disjf lf bf a)
(#invg: slice_inv)
#disjg
(#lg: eloc)
#bg
(#b: Type)
(g: action invg disjg lg bg b)
=
| fun ctxt error_handler_fn input input_length pos posf ->
let h0 = HST.get () in
let _ = f ctxt error_handler_fn input input_length pos posf in
let h1 = HST.get () in
modifies_address_liveness_insensitive_unused_in h0 h1;
g ctxt error_handler_fn input input_length pos posf | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.serialize_list_up_to_fuel_eq | val serialize_list_up_to_fuel_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(fuel: nat)
(xy: parse_list_up_to_fuel_t cond fuel)
: Lemma
((serialize (serialize_list_up_to_fuel cond ... | val serialize_list_up_to_fuel_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(fuel: nat)
(xy: parse_list_up_to_fuel_t cond fuel)
: Lemma
((serialize (serialize_list_up_to_fuel cond ... | let serialize_list_up_to_fuel_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
(fuel: nat)
(xy: parse_list_up_to_fuel_t cond fuel)
: Lemma
(serialize (serialize_list_up_to_fuel cond s fuel) xy `Seq.equal` (
let ... | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 52,
"end_line": 449,
"start_col": 0,
"start_line": 411
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
fuel: Prims.nat ->
xy: LowParse.Spec.ListUpTo.parse_list_up_to_fuel_t cond fuel
-> FStar.Pervasives.Lem... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
... | [] | true | false | true | false | false | let serialize_list_up_to_fuel_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(fuel: nat)
(xy: parse_list_up_to_fuel_t cond fuel)
: Lemma
((serialize (serialize_list_up_to_fuel cond ... | serialize_synth_eq (parse_dtuple2 (weaken (parse_list_up_to_kind k) p)
#(parse_list_up_to_payload_kind k)
#(parse_list_up_to_payload_t cond (fuel - 1))
(parse_list_up_to_payload cond (fuel - 1) k (parse_list_up_to_fuel cond p (fuel - 1))))
(synth_list_up_to_fuel cond (fuel - 1))
(serialize_dtuple2... | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_fldata | val validate_fldata
(n: U32.t)
(#k: LP.parser_kind)
(#t: _)
(#p: LP.parser k t)
(#inv #disj #l #ar: _)
(v: validate_with_action_t' p inv disj l ar)
: validate_with_action_t' (LowParse.Spec.FLData.parse_fldata p (U32.v n)) inv disj l false | val validate_fldata
(n: U32.t)
(#k: LP.parser_kind)
(#t: _)
(#p: LP.parser k t)
(#inv #disj #l #ar: _)
(v: validate_with_action_t' p inv disj l ar)
: validate_with_action_t' (LowParse.Spec.FLData.parse_fldata p (U32.v n)) inv disj l false | let validate_fldata
(n:U32.t)
(#k: LP.parser_kind)
#t
(#p: LP.parser k t)
#inv #disj #l #ar
(v: validate_with_action_t' p inv disj l ar)
: validate_with_action_t' (LowParse.Spec.FLData.parse_fldata p (U32.v n)) inv disj l false
= fun ctxt error_handler_fn input input_length start_pos... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 1127,
"start_col": 0,
"start_line": 1090
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Combinators",
"short_module": "LPC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: FStar.UInt32.t -> v: EverParse3d.Actions.Base.validate_with_action_t' p inv disj l ar
-> EverParse3d.Actions.Base.validate_with_action_t' (LowParse.Spec.FLData.parse_fldata p
(FStar.UInt32.v n))
inv
disj
l
false | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"Prims.bool",
"EverParse3d.Actions.Base.validate_with_action_t'",
"EverParse3d.InputStream.Base.extra_t... | [] | false | false | false | false | false | let validate_fldata
(n: U32.t)
(#k: LP.parser_kind)
#t
(#p: LP.parser k t)
#inv
#disj
#l
#ar
(v: validate_with_action_t' p inv disj l ar)
: validate_with_action_t' (LowParse.Spec.FLData.parse_fldata p (U32.v n)) inv disj l false =
| fun ctxt error_handler_fn input input_length start_position ->
[@@ inline_let ]let pos = start_position in
let h = HST.get () in
let hasEnoughBytes = I.has input input_length pos (Cast.uint32_to_uint64 n) in
let h1 = HST.get () in
modifies_address_liveness_insensitive_unused_in h h1;
if not hasEnoughBytes
... | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.action_bind | val action_bind
(name: string)
(#[@@@erasable] invf:slice_inv)
(#[@@@erasable] disjf:disjointness_pre)
(#[@@@erasable] lf:eloc)
(#bf:_)
(#a:Type)
(f: action invf disjf lf bf a)
(#[@@@erasable] invg:slice_inv)
(#[@@@erasable] disjg:disjointness_pre)
(... | val action_bind
(name: string)
(#[@@@erasable] invf:slice_inv)
(#[@@@erasable] disjf:disjointness_pre)
(#[@@@erasable] lf:eloc)
(#bf:_)
(#a:Type)
(f: action invf disjf lf bf a)
(#[@@@erasable] invg:slice_inv)
(#[@@@erasable] disjg:disjointness_pre)
(... | let action_bind
(name: string)
(#invf:slice_inv) #disjf (#lf:eloc)
#bf (#a:Type) (f: action invf disjf lf bf a)
(#invg:slice_inv) #disjg (#lg:eloc) #bg
(#b:Type) (g: (a -> action invg disjg lg bg b))
= fun ctxt error_handler_fn input input_length pos posf ->
let h0 = HST.get () in
... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 57,
"end_line": 1761,
"start_col": 0,
"start_line": 1749
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 ->
f: EverParse3d.Actions.Base.action invf disjf lf bf a ->
g: (_: a -> EverParse3d.Actions.Base.action invg disjg lg bg b)
-> EverParse3d.Actions.Base.action (EverParse3d.Actions.Base.conj_inv invf invg)
(EverParse3d.Actions.Base.conj_disjointness disjf disjg)
(EverParse3d... | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"Prims.bool",
"EverParse3d.Actions.Base.action",
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
"EverParse3d.InputStream.All.inst",
... | [] | false | false | false | false | false | let action_bind
(name: string)
(#invf: slice_inv)
#disjf
(#lf: eloc)
#bf
(#a: Type)
(f: action invf disjf lf bf a)
(#invg: slice_inv)
#disjg
(#lg: eloc)
#bg
(#b: Type)
(g: (a -> action invg disjg lg bg b))
=
| fun ctxt error_handler_fn input input_length pos posf ->
let h0 = HST.get () in
[@@ (rename_let ("" ^ name)) ]let x = f ctxt error_handler_fn input input_length pos posf in
let h1 = HST.get () in
modifies_address_liveness_insensitive_unused_in h0 h1;
g x ctxt error_handler_fn input input_length pos posf | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.action_ite | val action_ite
(#[@@@erasable] invf:slice_inv)
(#[@@@erasable] disjf:disjointness_pre)
(#[@@@erasable] lf:eloc)
(guard:bool)
(#bf:_)
(#a:Type)
(then_: squash guard -> action invf disjf lf bf a)
(#[@@@erasable] invg:slice_inv)
(#[@@@erasable] disjg:disjointn... | val action_ite
(#[@@@erasable] invf:slice_inv)
(#[@@@erasable] disjf:disjointness_pre)
(#[@@@erasable] lf:eloc)
(guard:bool)
(#bf:_)
(#a:Type)
(then_: squash guard -> action invf disjf lf bf a)
(#[@@@erasable] invg:slice_inv)
(#[@@@erasable] disjg:disjointn... | let action_ite
(#invf:slice_inv) #disjf (#lf:eloc)
(guard:bool)
#bf (#a:Type) (then_: squash guard -> action invf disjf lf bf a)
(#invg:slice_inv) #disjg (#lg:eloc) #bg
(else_: squash (not guard) -> action invg disjg lg bg a)
= fun ctxt error_handler_fn input input_length pos posf ->
i... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 67,
"end_line": 1788,
"start_col": 0,
"start_line": 1779
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 |
guard: Prims.bool ->
then_: (_: Prims.squash guard -> EverParse3d.Actions.Base.action invf disjf lf bf a) ->
else_:
(_: Prims.squash (Prims.op_Negation guard)
-> EverParse3d.Actions.Base.action invg disjg lg bg a)
-> EverParse3d.Actions.Base.action (EverParse3d.Actions.Base.conj_inv invf ... | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"Prims.bool",
"Prims.squash",
"Prims.b2t",
"EverParse3d.Actions.Base.action",
"Prims.op_Negation",
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
... | [] | false | false | false | false | false | let action_ite
(#invf: slice_inv)
#disjf
(#lf: eloc)
(guard: bool)
#bf
(#a: Type)
(then_: (squash guard -> action invf disjf lf bf a))
(#invg: slice_inv)
#disjg
(#lg: eloc)
#bg
(else_: (squash (not guard) -> action invg disjg lg bg a))
=
| fun ctxt error_handler_fn input input_length pos posf ->
if guard
then then_ () ctxt error_handler_fn input input_length pos posf
else else_ () ctxt error_handler_fn input input_length pos posf | false |
Steel.SpinLock.fst | Steel.SpinLock.acquire_core | val acquire_core (#p:vprop) (#u:inames) (r:ref bool) (i:inv (lockinv p r))
: SteelAtomicT bool u
(lockinv p r `star` emp)
(fun b -> lockinv p r `star` (if b then p else emp)) | val acquire_core (#p:vprop) (#u:inames) (r:ref bool) (i:inv (lockinv p r))
: SteelAtomicT bool u
(lockinv p r `star` emp)
(fun b -> lockinv p r `star` (if b then p else emp)) | let acquire_core #p #u r i =
let ghost = witness_exists () in
let res = cas_pt_bool r ghost available locked in
(* Not sure we can avoid calling an SMT here. Better force the manual call? *)
rewrite_slprop (if (Ghost.reveal ghost) then emp else p) (if res then p else emp)
(fun _ -> ());
rewrite_slprop (... | {
"file_name": "lib/steel/Steel.SpinLock.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 12,
"end_line": 77,
"start_col": 0,
"start_line": 66
} | (*
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.Reference.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": tr... | [
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.Reference.ref Prims.bool -> i: Steel.Effect.Common.inv (Steel.SpinLock.lockinv p r)
-> Steel.Effect.Atomic.SteelAtomicT Prims.bool | Steel.Effect.Atomic.SteelAtomicT | [] | [] | [
"Steel.Effect.Common.vprop",
"Steel.Memory.inames",
"Steel.Reference.ref",
"Prims.bool",
"Steel.Effect.Common.inv",
"Steel.SpinLock.lockinv",
"Steel.Effect.Atomic.return",
"Steel.Effect.Common.VStar",
"Steel.Effect.Common.emp",
"Prims.unit",
"Steel.SpinLock.intro_lockinv_locked",
"Steel.Effect... | [] | false | true | false | false | false | let acquire_core #p #u r i =
| let ghost = witness_exists () in
let res = cas_pt_bool r ghost available locked in
rewrite_slprop (if (Ghost.reveal ghost) then emp else p) (if res then p else emp) (fun _ -> ());
rewrite_slprop (if res then pts_to r full_perm (Ghost.hide locked) else pts_to r full_perm ghost)
(pts_to r full_perm locked)
(fun _ -> ... | false |
Hacl.P256.PrecompTable.fst | Hacl.P256.PrecompTable.proj_g_pow2_64 | val proj_g_pow2_64:S.proj_point | val proj_g_pow2_64:S.proj_point | let proj_g_pow2_64 : S.proj_point =
[@inline_let]
let rX : S.felem = 0x000931f4ae428a4ad81ee0aa89cf5247ce85d4dd696c61b4bb9d4761e57b7fbe in
[@inline_let]
let rY : S.felem = 0x7e88e5e6a142d5c2269f21a158e82ab2c79fcecb26e397b96fd5b9fbcd0a69a5 in
[@inline_let]
let rZ : S.felem = 0x02626dc2dd5e06cd19de5e6afb6c5db... | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 44,
"start_col": 0,
"start_line": 37
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module SPT = Hacl.Spec.PrecompBaseTable
module SPT256 = Hacl.Spec.Pr... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.Lemmas.fsti.checked",
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hac... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Spec.P256.PointOps.proj_point | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.Mktuple3",
"Prims.nat",
"Spec.P256.PointOps.felem"
] | [] | false | false | false | true | false | let proj_g_pow2_64:S.proj_point =
| [@@ inline_let ]let rX:S.felem =
0x000931f4ae428a4ad81ee0aa89cf5247ce85d4dd696c61b4bb9d4761e57b7fbe
in
[@@ inline_let ]let rY:S.felem =
0x7e88e5e6a142d5c2269f21a158e82ab2c79fcecb26e397b96fd5b9fbcd0a69a5
in
[@@ inline_let ]let rZ:S.felem =
0x02626dc2dd5e06cd19de5e6afb6c5dbdd3e41dc1472e7b8ef11eb0662e41c44b
in
(rX, ... | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_dep_pair_with_refinement_total_zero_parser' | val validate_dep_pair_with_refinement_total_zero_parser'
(name1: string)
(#nz1: _)
(#k1: parser_kind nz1 _)
(#t1: _)
(#p1: parser k1 t1)
(inv1 disj1 l1: _)
(r1: leaf_reader p1)
(f: (t1 -> bool))
(#nz2 #wk2: _)
(#k2: parser_kind nz2 wk2)
(#t2: (refine _ f... | val validate_dep_pair_with_refinement_total_zero_parser'
(name1: string)
(#nz1: _)
(#k1: parser_kind nz1 _)
(#t1: _)
(#p1: parser k1 t1)
(inv1 disj1 l1: _)
(r1: leaf_reader p1)
(f: (t1 -> bool))
(#nz2 #wk2: _)
(#k2: parser_kind nz2 wk2)
(#t2: (refine _ f... | let validate_dep_pair_with_refinement_total_zero_parser'
(name1: string)
#nz1 (#k1:parser_kind nz1 _) #t1 (#p1:parser k1 t1)
(inv1 disj1 l1: _) (r1: leaf_reader p1)
(f: t1 -> bool)
#nz2 #wk2 (#k2:parser_kind nz2 wk2)
(#t2:refine _ f -> Type)
(#p2:(x:refine _ f -> parser k2 (t2 ... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 11,
"end_line": 729,
"start_col": 0,
"start_line": 683
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Spec.Combinators",
"short_module": "LPC"
},
{
"abbrev": true,
"full_module": "LowParse.Low.Base",
"short_module": "LPL"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Base",
"short_module": "LP"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 |
name1: Prims.string ->
inv1: EverParse3d.Actions.Base.slice_inv ->
disj1: EverParse3d.Actions.Base.disjointness_pre ->
l1: EverParse3d.Actions.Base.eloc ->
r1: EverParse3d.Actions.Base.leaf_reader p1 ->
f: (_: t1 -> Prims.bool) ->
v2:
(x: EverParse3d.Prelude.refine t1 f
-> E... | Prims.Pure | [] | [] | [
"Prims.string",
"Prims.bool",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Kinds.WeakKindStrongPrefix",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"EverParse3d.Actions.Base.leaf_reader",
"EverPa... | [] | false | false | false | false | false | let validate_dep_pair_with_refinement_total_zero_parser'
(name1: string)
#nz1
(#k1: parser_kind nz1 _)
#t1
(#p1: parser k1 t1)
(inv1: _)
(disj1: _)
(l1: _)
(r1: leaf_reader p1)
(f: (t1 -> bool))
#nz2
#wk2
(#k2: parser_kind nz2 wk2)
(#t2... | fun ctxt error_handler_fn input input_length startPosition ->
let h0 = HST.get () in
LPC.parse_dtuple2_eq' #_ #_ (p1 `LPC.parse_filter` f) #_ #t2 p2 (I.get_remaining input h0);
LPC.parse_filter_eq p1 f (I.get_remaining input h0);
[@@ inline_let ]let _ = LP.parser_kind_prop_equiv k1 p1 in
LowStar.Comment.comme... | false |
Hacl.P256.PrecompTable.fst | Hacl.P256.PrecompTable.proj_point_to_list | val proj_point_to_list: p:S.proj_point
-> x:list uint64{FStar.List.Tot.length x = 12 /\
mk_to_p256_comm_monoid.BE.linv (Seq.seq_of_list x)} | val proj_point_to_list: p:S.proj_point
-> x:list uint64{FStar.List.Tot.length x = 12 /\
mk_to_p256_comm_monoid.BE.linv (Seq.seq_of_list x)} | let proj_point_to_list p =
SPTK.proj_point_to_list_lemma p;
SPTK.proj_point_to_list p | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 29,
"start_col": 0,
"start_line": 27
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module SPT = Hacl.Spec.PrecompBaseTable
module SPT256 = Hacl.Spec.Pr... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.Lemmas.fsti.checked",
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hac... | [
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.PrecompTable",
"short_module": "SPTK"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.PrecompBaseTable256",
"short_module": "SPT256"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Spec.P256.PointOps.proj_point
-> x:
Prims.list Lib.IntTypes.uint64
{ FStar.List.Tot.Base.length x = 12 /\
Mkto_comm_monoid?.linv Hacl.Impl.P256.Group.mk_to_p256_comm_monoid
(FStar.Seq.Base.seq_of_list x) } | Prims.Tot | [
"total"
] | [] | [
"Spec.P256.PointOps.proj_point",
"Hacl.Spec.P256.PrecompTable.proj_point_to_list",
"Prims.unit",
"Hacl.Spec.P256.PrecompTable.proj_point_to_list_lemma",
"Prims.list",
"Lib.IntTypes.uint64",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Hacl.Impl.E... | [] | false | false | false | false | false | let proj_point_to_list p =
| SPTK.proj_point_to_list_lemma p;
SPTK.proj_point_to_list p | false |
Hacl.P256.PrecompTable.fst | Hacl.P256.PrecompTable.lemma_refl | val lemma_refl: x:S.proj_point ->
Lemma (S.mk_p256_concrete_ops.SE.to.SE.refl x ==
mk_to_p256_comm_monoid.BE.refl (Seq.seq_of_list (proj_point_to_list x))) | val lemma_refl: x:S.proj_point ->
Lemma (S.mk_p256_concrete_ops.SE.to.SE.refl x ==
mk_to_p256_comm_monoid.BE.refl (Seq.seq_of_list (proj_point_to_list x))) | let lemma_refl x =
SPTK.proj_point_to_list_lemma x | {
"file_name": "code/ecdsap256/Hacl.P256.PrecompTable.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 32,
"start_col": 0,
"start_line": 31
} | module Hacl.P256.PrecompTable
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module SPT = Hacl.Spec.PrecompBaseTable
module SPT256 = Hacl.Spec.Pr... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.Lemmas.fsti.checked",
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hac... | [
{
"abbrev": true,
"full_module": "Spec.P256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.PrecompTable",
"short_module": "SPTK"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.PrecompBaseTable256",
"short_module": "SPT256"
},
{
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Spec.P256.PointOps.proj_point
-> FStar.Pervasives.Lemma
(ensures
Mkto_comm_monoid?.refl (Mkconcrete_ops?.to Spec.P256.mk_p256_concrete_ops) x ==
Mkto_comm_monoid?.refl Hacl.Impl.P256.Group.mk_to_p256_comm_monoid
(FStar.Seq.Base.seq_of_list (Hacl.P256.PrecompTable.proj_point_to_list x))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.P256.PointOps.proj_point",
"Hacl.Spec.P256.PrecompTable.proj_point_to_list_lemma",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_refl x =
| SPTK.proj_point_to_list_lemma x | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_t_exact | val validate_t_exact
(n:U32.t)
(#nz:bool)
(#wk: _)
(#k:parser_kind nz wk)
(#[@@@erasable] t:Type)
(#[@@@erasable] p:parser k t)
(#[@@@erasable] inv:slice_inv)
(#[@@@erasable] disj:disjointness_pre)
(#[@@@erasable] l:eloc)
... | val validate_t_exact
(n:U32.t)
(#nz:bool)
(#wk: _)
(#k:parser_kind nz wk)
(#[@@@erasable] t:Type)
(#[@@@erasable] p:parser k t)
(#[@@@erasable] inv:slice_inv)
(#[@@@erasable] disj:disjointness_pre)
(#[@@@erasable] l:eloc)
... | let validate_t_exact
(n:U32.t) #nz #wk (#k:parser_kind nz wk) (#t:_) (#p:parser k t)
#inv #disj #l #ar
(v:validate_with_action_t p inv disj l ar)
: validate_with_action_t (parse_t_exact n p) inv disj l false
= fun ctxt error_handler_fn input input_length start_position ->
[@inline_let] let pos = s... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 1414,
"start_col": 0,
"start_line": 1379
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Combinators",
"short_module": "LPC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: FStar.UInt32.t -> v: EverParse3d.Actions.Base.validate_with_action_t p inv disj l ar
-> EverParse3d.Actions.Base.validate_with_action_t (EverParse3d.Prelude.parse_t_exact n p)
inv
disj
l
false | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.bool",
"EverParse3d.Kinds.weak_kind",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"EverParse3d.Actions.Base.validate_with_action_t",
"Ever... | [] | false | false | false | false | false | let validate_t_exact
(n: U32.t)
#nz
#wk
(#k: parser_kind nz wk)
(#t: _)
(#p: parser k t)
#inv
#disj
#l
#ar
(v: validate_with_action_t p inv disj l ar)
: validate_with_action_t (parse_t_exact n p) inv disj l false =
| fun ctxt error_handler_fn input input_length start_position ->
[@@ inline_let ]let pos = start_position in
let h = HST.get () in
let hasBytes = I.has input input_length pos (Cast.uint32_to_uint64 n) in
let h1 = HST.get () in
modifies_address_liveness_insensitive_unused_in h h1;
if not hasBytes
then LPE.se... | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_list_up_to | val validate_list_up_to
(#k: parser_kind true WeakKindStrongPrefix)
(#t: eqtype)
(#p: parser k t)
(v: validator p)
(r: leaf_reader p)
(terminator: t)
(prf: LUT.consumes_if_not_cond (cond_string_up_to terminator) p)
: validate_with_action_t #true
#WeakKindStrongPrefix
... | val validate_list_up_to
(#k: parser_kind true WeakKindStrongPrefix)
(#t: eqtype)
(#p: parser k t)
(v: validator p)
(r: leaf_reader p)
(terminator: t)
(prf: LUT.consumes_if_not_cond (cond_string_up_to terminator) p)
: validate_with_action_t #true
#WeakKindStrongPrefix
... | let validate_list_up_to
(#k: parser_kind true WeakKindStrongPrefix)
(#t: eqtype)
(#p: parser k t)
(v: validator p)
(r: leaf_reader p)
(terminator: t)
(prf: LUT.consumes_if_not_cond (cond_string_up_to terminator) p)
: validate_with_action_t #true #WeakKindStrongPrefix
(LUT.parse_list_up_to (cond_string... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 10,
"end_line": 1720,
"start_col": 0,
"start_line": 1695
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: EverParse3d.Actions.Base.validator p ->
r: EverParse3d.Actions.Base.leaf_reader p ->
terminator: t ->
prf:
LowParse.Spec.ListUpTo.consumes_if_not_cond (EverParse3d.Prelude.cond_string_up_to terminator)
p
-> EverParse3d.Actions.Base.validate_with_action_t (LowParse.Spec.ListUpTo.parse... | Prims.Tot | [
"total"
] | [] | [
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Kinds.WeakKindStrongPrefix",
"Prims.eqtype",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.validator",
"EverParse3d.Actions.Base.leaf_reader",
"LowParse.Spec.ListUpTo.consumes_if_not_cond",
"EverParse3d.Prelude.cond_string_up_to",
"EverParse3d.... | [] | false | false | false | false | false | let validate_list_up_to
(#k: parser_kind true WeakKindStrongPrefix)
(#t: eqtype)
(#p: parser k t)
(v: validator p)
(r: leaf_reader p)
(terminator: t)
(prf: LUT.consumes_if_not_cond (cond_string_up_to terminator) p)
: validate_with_action_t #true
#WeakKindStrongPrefix
... | fun ctxt error_handler_fn sl sl_len pos ->
let h0 = HST.get () in
HST.push_frame ();
let h1 = HST.get () in
fresh_frame_modifies h0 h1;
let bres = B.alloca pos 1ul in
let h2 = HST.get () in
I.live_not_unused_in sl h0;
C.Loops.do_while (validate_list_up_to_inv p terminator prf ctxt sl h2 bres)
(fun _... | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_t_at_most | val validate_t_at_most
(n:U32.t)
(#nz: _)
(#wk: _)
(#k:parser_kind nz wk)
(#[@@@erasable] t:Type)
(#[@@@erasable] p:parser k t)
(#[@@@erasable] inv:slice_inv)
(#[@@@erasable] disj:disjointness_pre)
(#[@@@erasable] l:eloc)
... | val validate_t_at_most
(n:U32.t)
(#nz: _)
(#wk: _)
(#k:parser_kind nz wk)
(#[@@@erasable] t:Type)
(#[@@@erasable] p:parser k t)
(#[@@@erasable] inv:slice_inv)
(#[@@@erasable] disj:disjointness_pre)
(#[@@@erasable] l:eloc)
... | let validate_t_at_most
(n:U32.t) #nz #wk (#k:parser_kind nz wk) (#t:_) (#p:parser k t)
#inv #disj #l #ar (v:validate_with_action_t p inv disj l ar)
: Tot (validate_with_action_t (parse_t_at_most n p) inv disj l false)
= fun ctxt error_handler_fn input input_length start_position ->
[@inline_let] let... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 1371,
"start_col": 0,
"start_line": 1339
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Combinators",
"short_module": "LPC"
},
{
"abbrev": tr... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: FStar.UInt32.t -> v: EverParse3d.Actions.Base.validate_with_action_t p inv disj l ar
-> EverParse3d.Actions.Base.validate_with_action_t (EverParse3d.Prelude.parse_t_at_most n p)
inv
disj
l
false | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt32.t",
"Prims.bool",
"EverParse3d.Kinds.weak_kind",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"EverParse3d.Actions.Base.validate_with_action_t",
"Ever... | [] | false | false | false | false | false | let validate_t_at_most
(n: U32.t)
#nz
#wk
(#k: parser_kind nz wk)
(#t: _)
(#p: parser k t)
#inv
#disj
#l
#ar
(v: validate_with_action_t p inv disj l ar)
: Tot (validate_with_action_t (parse_t_at_most n p) inv disj l false) =
| fun ctxt error_handler_fn input input_length start_position ->
[@@ inline_let ]let pos = start_position in
let h = HST.get () in
let hasBytes = I.has input input_length pos (Cast.uint32_to_uint64 n) in
let h1 = HST.get () in
modifies_address_liveness_insensitive_unused_in h h1;
if not hasBytes
then LPE.se... | false |
LowParse.Spec.ListUpTo.fst | LowParse.Spec.ListUpTo.serialize_list_up_to_eq | val serialize_list_up_to_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
(xy: parse_list_up_to_t cond)
: Lemma
(serialize (serialize_list_up_to cond prf s) xy == (
let (l, z) ... | val serialize_list_up_to_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
(xy: parse_list_up_to_t cond)
: Lemma
(serialize (serialize_list_up_to cond prf s) xy == (
let (l, z) ... | let serialize_list_up_to_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong })
(xy: parse_list_up_to_t cond)
: Lemma
(serialize (serialize_list_up_to cond prf s) xy == (
let (l, z) ... | {
"file_name": "src/lowparse/LowParse.Spec.ListUpTo.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 78,
"end_line": 507,
"start_col": 0,
"start_line": 492
} | module LowParse.Spec.ListUpTo
open LowParse.Spec.Base
open LowParse.Spec.Fuel
open LowParse.Spec.Combinators
let llist
(t: Type)
(fuel: nat)
: Tot Type
= (l: list t { L.length l < fuel })
let parse_list_up_to_fuel_t
(#t: Type)
(cond: (t -> Tot bool))
(fuel: nat)
: Tot Type
= (llist (refine_with_cond (negate... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Seq.fst.checked",
"LowParse.Spec.Fuel.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar... | [
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Fuel",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Base",
"short_module": null
},
{
"abbrev": true,... | {
"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: (_: t -> Prims.bool) ->
prf: LowParse.Spec.ListUpTo.consumes_if_not_cond cond p ->
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
xy: LowParse.Spec.ListUpTo.parse_list_up_to_t ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.bool",
"LowParse.Spec.Base.parser",
"LowParse.Spec.ListUpTo.consumes_if_not_cond",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_ki... | [] | true | false | true | false | false | let serialize_list_up_to_eq
(#k: parser_kind)
(#t: Type)
(cond: (t -> Tot bool))
(#p: parser k t)
(prf: consumes_if_not_cond cond p)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(xy: parse_list_up_to_t cond)
: Lemma
(serialize (serialize_list_up_to con... | serialize_list_up_to_fuel_eq cond s (L.length (fst xy) + 1) (fst xy, snd xy) | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_list_up_to_body | val validate_list_up_to_body
(#[EverParse3d.Util.solve_from_ctx ()] _extra_t: I.extra_t #input_buffer_t)
(#k: parser_kind true WeakKindStrongPrefix)
(#t: eqtype)
(#p: parser k t)
(terminator: t)
(prf: LUT.consumes_if_not_cond (cond_string_up_to terminator) p)
(v: validator p)
... | val validate_list_up_to_body
(#[EverParse3d.Util.solve_from_ctx ()] _extra_t: I.extra_t #input_buffer_t)
(#k: parser_kind true WeakKindStrongPrefix)
(#t: eqtype)
(#p: parser k t)
(terminator: t)
(prf: LUT.consumes_if_not_cond (cond_string_up_to terminator) p)
(v: validator p)
... | let validate_list_up_to_body
(# [EverParse3d.Util.solve_from_ctx ()] _extra_t : I.extra_t #input_buffer_t )
(#k: parser_kind true WeakKindStrongPrefix)
(#t: eqtype)
(#p: parser k t)
(terminator: t)
(prf: LUT.consumes_if_not_cond (cond_string_up_to terminator) p)
(v: validator p)
(r: leaf_reader p)
(ct... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 1691,
"start_col": 0,
"start_line": 1656
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.List",
"short_module": "LPLL"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 |
terminator: t ->
prf:
LowParse.Spec.ListUpTo.consumes_if_not_cond (EverParse3d.Prelude.cond_string_up_to terminator)
p ->
v: EverParse3d.Actions.Base.validator p ->
r: EverParse3d.Actions.Base.leaf_reader p ->
ctxt: EverParse3d.Actions.Base.app_ctxt ->
error_handler_fn: EverParse3... | FStar.HyperStack.ST.Stack | [] | [] | [
"EverParse3d.InputStream.Base.extra_t",
"EverParse3d.Actions.Base.input_buffer_t",
"EverParse3d.InputStream.All.inst",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Kinds.WeakKindStrongPrefix",
"Prims.eqtype",
"EverParse3d.Prelude.parser",
"LowParse.Spec.ListUpTo.consumes_if_not_cond",
"EverParse3d.... | [] | false | true | false | false | false | let validate_list_up_to_body
(#[EverParse3d.Util.solve_from_ctx ()] _extra_t: I.extra_t #input_buffer_t)
(#k: parser_kind true WeakKindStrongPrefix)
(#t: eqtype)
(#p: parser k t)
(terminator: t)
(prf: LUT.consumes_if_not_cond (cond_string_up_to terminator) p)
(v: validator p)
... | let h = HST.get () in
LUT.parse_list_up_to_eq (cond_string_up_to terminator) p prf (I.get_remaining sl h);
let position = !*bres in
let result = v ctxt error_handler_fn sl sl_len position in
B.upd bres 0ul result;
if LPE.is_error result
then true
else
let value = r sl position in
cond_string_up_to terminator value | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.probe_then_validate | val probe_then_validate
(#nz:bool)
(#wk: _)
(#k:parser_kind nz wk)
(#t:Type)
(#p:parser k t)
(#inv:slice_inv)
(#disj:disjointness_pre)
(#l:eloc)
(#allow_reading:bool)
(v:validate_with_action_t p inv disj l allow_reading)
(src:U64.t)
(le... | val probe_then_validate
(#nz:bool)
(#wk: _)
(#k:parser_kind nz wk)
(#t:Type)
(#p:parser k t)
(#inv:slice_inv)
(#disj:disjointness_pre)
(#l:eloc)
(#allow_reading:bool)
(v:validate_with_action_t p inv disj l allow_reading)
(src:U64.t)
(le... | let probe_then_validate
(#nz:bool)
(#wk: _)
(#k:parser_kind nz wk)
(#t:Type)
(#p:parser k t)
(#inv:slice_inv)
(#disj:_)
(#l:eloc)
(#allow_reading:bool)
(v:validate_with_action_t p inv disj l allow_reading)
(src:U64.t)
(len:U64.t)
(dest:CP.co... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 16,
"end_line": 1881,
"start_col": 0,
"start_line": 1855
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "FStar.Tactics",
"short_module": "T"
},
{
"abbrev": true,
"full_module": "LowParse.Low.ListUpTo",
"short_module": "LUT"
},
{
"abbrev": true,
"full_module": "LowParse.Low.FLData",
"short_module": "LPLF"
},
{
"abbrev": true,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v: EverParse3d.Actions.Base.validate_with_action_t p inv disj l allow_reading ->
src: FStar.UInt64.t ->
len: FStar.UInt64.t ->
dest: EverParse3d.CopyBuffer.copy_buffer_t ->
probe: EverParse3d.CopyBuffer.probe_fn
-> EverParse3d.Actions.Base.action (EverParse3d.Actions.Base.conj_inv inv
(... | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"EverParse3d.Kinds.weak_kind",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"EverParse3d.Actions.Base.validate_with_action_t",
"FStar.UInt64.t",
"Ever... | [] | false | false | false | false | false | let probe_then_validate
(#nz: bool)
(#wk: _)
(#k: parser_kind nz wk)
(#t: Type)
(#p: parser k t)
(#inv: slice_inv)
(#disj: _)
(#l: eloc)
(#allow_reading: bool)
(v: validate_with_action_t p inv disj l allow_reading)
(src len: U64.t)
(dest: CP.copy_b... | fun ctxt error_handler_fn input input_length pos posf ->
CP.properties dest;
let h0 = HST.get () in
let b = probe src len dest in
if b
then
(let h1 = HST.get () in
modifies_address_liveness_insensitive_unused_in h0 h1;
let result = v ctxt error_handler_fn (CP.stream_of dest) (CP.stream_len des... | false |
GenMakefile.fst | GenMakefile.input_dir | val input_dir : Prims.string | let input_dir = "$(EVERPARSE_INPUT_DIR)" | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 40,
"end_line": 16,
"start_col": 0,
"start_line": 16
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
} | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 input_dir =
| "$(EVERPARSE_INPUT_DIR)" | false | |
GenMakefile.fst | GenMakefile.output_dir | val output_dir : Prims.string | let output_dir = "$(EVERPARSE_OUTPUT_DIR)" | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 42,
"end_line": 17,
"start_col": 0,
"start_line": 17
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
} | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 output_dir =
| "$(EVERPARSE_OUTPUT_DIR)" | false | |
Steel.Channel.Simplex.fst | Steel.Channel.Simplex.intro_trace_until | val intro_trace_until (#q: _) (r: trace_ref q) (tr: partial_trace_of q) (v: chan_val)
: Steel unit
(MRef.pts_to r full_perm tr)
(fun _ -> trace_until r v)
(requires fun _ -> until tr == step v.chan_prot v.chan_msg)
(ensures fun _ _ _ -> True) | val intro_trace_until (#q: _) (r: trace_ref q) (tr: partial_trace_of q) (v: chan_val)
: Steel unit
(MRef.pts_to r full_perm tr)
(fun _ -> trace_until r v)
(requires fun _ -> until tr == step v.chan_prot v.chan_msg)
(ensures fun _ _ _ -> True) | let intro_trace_until #q (r:trace_ref q) (tr:partial_trace_of q) (v:chan_val)
: Steel unit (MRef.pts_to r full_perm tr)
(fun _ -> trace_until r v)
(requires fun _ -> until tr == step v.chan_prot v.chan_msg)
(ensures fun _ _ _ -> True)
= intro_pure (until tr == step v.cha... | {
"file_name": "lib/steel/Steel.Channel.Simplex.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 6,
"end_line": 181,
"start_col": 0,
"start_line": 171
} | (*
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.Utils.fst.checked",
"Steel.SpinLock.fsti.checked",
"Steel.MonotonicHigherReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.HigherReference.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "H"
},
{
"abbrev": true,
"full_module": "Steel.MonotonicHigherReference",
"short_module": "MRef"
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: Steel.Channel.Simplex.trace_ref q ->
tr: Steel.Channel.Protocol.partial_trace_of q ->
v: Steel.Channel.Simplex.chan_val
-> Steel.Effect.Steel Prims.unit | Steel.Effect.Steel | [] | [] | [
"Steel.Channel.Simplex.prot",
"Steel.Channel.Simplex.trace_ref",
"Steel.Channel.Protocol.partial_trace_of",
"Steel.Channel.Simplex.chan_val",
"Prims.unit",
"Steel.Effect.Atomic.intro_exists",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.Effect.Common.star"... | [] | false | true | false | false | false | let intro_trace_until #q (r: trace_ref q) (tr: partial_trace_of q) (v: chan_val)
: Steel unit
(MRef.pts_to r full_perm tr)
(fun _ -> trace_until r v)
(requires fun _ -> until tr == step v.chan_prot v.chan_msg)
(ensures fun _ _ _ -> True) =
| intro_pure (until tr == step v.chan_prot v.chan_msg);
intro_exists tr
(fun (tr: partial_trace_of q) ->
(MRef.pts_to r full_perm tr) `star` (pure (until tr == (step v.chan_prot v.chan_msg))));
() | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_dep_pair_with_refinement_and_action_total_zero_parser' | val validate_dep_pair_with_refinement_and_action_total_zero_parser'
(name1: string)
(#nz1: _)
(#k1: parser_kind nz1 WeakKindStrongPrefix)
(#t1: _)
(#p1: parser k1 t1)
(r1: leaf_reader p1)
(inv1 disj1 l1: _)
(f: (t1 -> bool))
(#inv1' #disj1' #l1' #b: _)
(a: (t1... | val validate_dep_pair_with_refinement_and_action_total_zero_parser'
(name1: string)
(#nz1: _)
(#k1: parser_kind nz1 WeakKindStrongPrefix)
(#t1: _)
(#p1: parser k1 t1)
(r1: leaf_reader p1)
(inv1 disj1 l1: _)
(f: (t1 -> bool))
(#inv1' #disj1' #l1' #b: _)
(a: (t1... | let validate_dep_pair_with_refinement_and_action_total_zero_parser'
(name1: string)
(#nz1: _) (#k1:parser_kind nz1 WeakKindStrongPrefix)
(#t1: _) (#p1:parser k1 t1) (r1: leaf_reader p1)
(inv1 disj1 l1: _)
(f: t1 -> bool)
(#inv1' #disj1' #l1' #b: _) (a:t1 -> action inv1' disj1' l1' b ... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 11,
"end_line": 582,
"start_col": 0,
"start_line": 535
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Spec.Combinators",
"short_module": "LPC"
},
{
"abbrev": true,
"full_module": "LowParse.Low.Base",
"short_module": "LPL"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Base",
"short_module": "LP"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 |
name1: Prims.string ->
r1: EverParse3d.Actions.Base.leaf_reader p1 ->
inv1: EverParse3d.Actions.Base.slice_inv ->
disj1: EverParse3d.Actions.Base.disjointness_pre ->
l1: EverParse3d.Actions.Base.eloc ->
f: (_: t1 -> Prims.bool) ->
a: (_: t1 -> EverParse3d.Actions.Base.action inv1' disj1' l1... | Prims.Pure | [] | [] | [
"Prims.string",
"Prims.bool",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Kinds.WeakKindStrongPrefix",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.leaf_reader",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"EverPa... | [] | false | false | false | false | false | let validate_dep_pair_with_refinement_and_action_total_zero_parser'
(name1: string)
(#nz1: _)
(#k1: parser_kind nz1 WeakKindStrongPrefix)
(#t1: _)
(#p1: parser k1 t1)
(r1: leaf_reader p1)
(inv1 disj1 l1: _)
(f: (t1 -> bool))
(#inv1' #disj1' #l1' #b: _)
(a: (t1... | fun ctxt error_handler_fn input input_length startPosition ->
let h0 = HST.get () in
LPC.parse_dtuple2_eq' #_ #_ (p1 `LPC.parse_filter` f) #_ #t2 p2 (I.get_remaining input h0);
LPC.parse_filter_eq p1 f (I.get_remaining input h0);
[@@ inline_let ]let _ = LP.parser_kind_prop_equiv k1 p1 in
LowStar.Comment.comme... | false |
GenMakefile.fst | GenMakefile.mk_input_filename | val mk_input_filename (file: string) : Tot string | val mk_input_filename (file: string) : Tot string | let mk_input_filename
(file: string)
: Tot string
= input_dir `OS.concat` OS.basename file | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 40,
"end_line": 62,
"start_col": 0,
"start_line": 59
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | file: Prims.string -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"OS.concat",
"GenMakefile.input_dir",
"OS.basename"
] | [] | false | false | false | true | false | let mk_input_filename (file: string) : Tot string =
| input_dir `OS.concat` (OS.basename file) | false |
GenMakefile.fst | GenMakefile.mk_filename | val mk_filename (modul ext: string) : Tot string | val mk_filename (modul ext: string) : Tot string | let mk_filename
(modul: string)
(ext: string)
: Tot string
= output_dir `OS.concat` (Printf.sprintf "%s.%s" modul ext) | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 59,
"end_line": 68,
"start_col": 0,
"start_line": 64
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | modul: Prims.string -> ext: Prims.string -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"OS.concat",
"GenMakefile.output_dir",
"FStar.Printf.sprintf"
] | [] | false | false | false | true | false | let mk_filename (modul ext: string) : Tot string =
| output_dir `OS.concat` (Printf.sprintf "%s.%s" modul ext) | false |
GenMakefile.fst | GenMakefile.has_external_types_fsti | val has_external_types_fsti (g: Deps.dep_graph) (modul: string) : Tot bool | val has_external_types_fsti (g: Deps.dep_graph) (modul: string) : Tot bool | let has_external_types_fsti
(g: Deps.dep_graph)
(modul: string)
: Tot bool
=
(Deps.has_output_types g modul ||
Deps.has_extern_types g modul) | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 34,
"end_line": 110,
"start_col": 0,
"start_line": 104
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"Prims.op_BarBar",
"Deps.has_output_types",
"Deps.has_extern_types",
"Prims.bool"
] | [] | false | false | false | true | false | let has_external_types_fsti (g: Deps.dep_graph) (modul: string) : Tot bool =
| (Deps.has_output_types g modul || Deps.has_extern_types g modul) | false |
GenMakefile.fst | GenMakefile.maybe_external_types_fsti_checked | val maybe_external_types_fsti_checked (g: Deps.dep_graph) (modul: string) : Tot (list string) | val maybe_external_types_fsti_checked (g: Deps.dep_graph) (modul: string) : Tot (list string) | let maybe_external_types_fsti_checked
(g: Deps.dep_graph)
(modul: string)
: Tot (list string)
= if has_external_types_fsti g modul
then [mk_filename modul "ExternalTypes.fsti.checked"]
else [] | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 118,
"start_col": 0,
"start_line": 112
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.has_external_types_fsti",
"Prims.Cons",
"GenMakefile.mk_filename",
"Prims.Nil",
"Prims.bool",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_external_types_fsti_checked (g: Deps.dep_graph) (modul: string) : Tot (list string) =
| if has_external_types_fsti g modul then [mk_filename modul "ExternalTypes.fsti.checked"] else [] | false |
GenMakefile.fst | GenMakefile.produce_config_fst_file_rule | val produce_config_fst_file_rule: Prims.unit -> FStar.All.ML (list rule_t) | val produce_config_fst_file_rule: Prims.unit -> FStar.All.ML (list rule_t) | let produce_config_fst_file_rule ()
: FStar.All.ML (list rule_t)
= match Options.config_module_name (), Options.get_config_file() with
| Some module_name, Some cfg_file_name ->
let fst_file_name = mk_filename module_name "fst" in
let checked_file_name = mk_filename module_name "fst.checked" in
let krml_fi... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 11,
"end_line": 102,
"start_col": 0,
"start_line": 76
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.All.ML (Prims.list GenMakefile.rule_t) | FStar.All.ML | [
"ml"
] | [] | [
"Prims.unit",
"Prims.string",
"Prims.Cons",
"GenMakefile.rule_t",
"Prims.Nil",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"FStar.Printf.sprintf",
"GenMakefile.mk_filename",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.option",
"Prims.list",
"FStar.Pervasives.Native.Mktupl... | [] | false | true | false | false | false | let produce_config_fst_file_rule () : FStar.All.ML (list rule_t) =
| match Options.config_module_name (), Options.get_config_file () with
| Some module_name, Some cfg_file_name ->
let fst_file_name = mk_filename module_name "fst" in
let checked_file_name = mk_filename module_name "fst.checked" in
let krml_file_name = mk_filename module_name "krml" in
let fst_rule =
{
t... | false |
GenMakefile.fst | GenMakefile.oext | val oext : _: HashingOptions.makefile_type -> Prims.string | let oext = function
| HashingOptions.MakefileGMake -> "o"
| HashingOptions.MakefileNMake -> "obj" | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 39,
"end_line": 21,
"start_col": 0,
"start_line": 19
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | _: HashingOptions.makefile_type -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"HashingOptions.makefile_type",
"Prims.string"
] | [] | false | false | false | true | false | let oext =
| function
| HashingOptions.MakefileGMake -> "o"
| HashingOptions.MakefileNMake -> "obj" | false | |
GenMakefile.fst | GenMakefile.has_external_api_fsti | val has_external_api_fsti (g: Deps.dep_graph) (modul: string) : Tot bool | val has_external_api_fsti (g: Deps.dep_graph) (modul: string) : Tot bool | let has_external_api_fsti
(g: Deps.dep_graph)
(modul: string)
: Tot bool
=
Deps.has_extern_probe g modul ||
Deps.has_out_exprs g modul ||
Deps.has_extern_types g modul ||
Deps.has_extern_functions g modul | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 35,
"end_line": 128,
"start_col": 0,
"start_line": 120
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"Prims.op_BarBar",
"Deps.has_extern_probe",
"Deps.has_out_exprs",
"Deps.has_extern_types",
"Deps.has_extern_functions",
"Prims.bool"
] | [] | false | false | false | true | false | let has_external_api_fsti (g: Deps.dep_graph) (modul: string) : Tot bool =
| Deps.has_extern_probe g modul || Deps.has_out_exprs g modul || Deps.has_extern_types g modul ||
Deps.has_extern_functions g modul | false |
GenMakefile.fst | GenMakefile.produce_external_api_fsti_checked_rule | val produce_external_api_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : list rule_t | val produce_external_api_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : list rule_t | let produce_external_api_fsti_checked_rule
(g: Deps.dep_graph)
(modul: string)
: list rule_t
= if not (has_external_api_fsti g modul) then []
else
let external_api_fsti = mk_filename modul "ExternalAPI.fsti" in
[{
ty = EverParse;
from = external_api_fsti :: (maybe_external_types_fsti_checked... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 142,
"start_col": 0,
"start_line": 130
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.list GenMakefile.rule_t | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"Prims.op_Negation",
"GenMakefile.has_external_api_fsti",
"Prims.Nil",
"GenMakefile.rule_t",
"Prims.bool",
"Prims.Cons",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"FStar.List.Tot.Base.append",
"GenMakefile.maybe_external_types_fsti_checked",
"FStar.Li... | [] | false | false | false | true | false | let produce_external_api_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : list rule_t =
| if not (has_external_api_fsti g modul)
then []
else
let external_api_fsti = mk_filename modul "ExternalAPI.fsti" in
[
{
ty = EverParse;
from
=
external_api_fsti ::
((maybe_external_types_fsti_checked g modul)
`List.Tot.append`
(List.Tot.map (fun m -> mk_filename m "... | false |
GenMakefile.fst | GenMakefile.produce_external_types_fsti_checked_rule | val produce_external_types_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : list rule_t | val produce_external_types_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : list rule_t | let produce_external_types_fsti_checked_rule
(g: Deps.dep_graph)
(modul: string)
: list rule_t
= if not (has_external_types_fsti g modul) then []
else
let external_types_fsti = mk_filename modul "ExternalTypes.fsti" in
[{
ty = EverParse;
from = external_types_fsti :: List.Tot.map (fun m -> ... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 156,
"start_col": 0,
"start_line": 144
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.list GenMakefile.rule_t | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"Prims.op_Negation",
"GenMakefile.has_external_types_fsti",
"Prims.Nil",
"GenMakefile.rule_t",
"Prims.bool",
"Prims.Cons",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"FStar.List.Tot.Base.map",
"GenMakefile.mk_filename",
"Deps.dependencies",
"FStar.Pr... | [] | false | false | false | true | false | let produce_external_types_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : list rule_t =
| if not (has_external_types_fsti g modul)
then []
else
let external_types_fsti = mk_filename modul "ExternalTypes.fsti" in
[
{
ty = EverParse;
from
=
external_types_fsti ::
List.Tot.map (fun m -> mk_filename m "ExternalTypes.fsti.checked") (Deps.dependencies g modul);
to = mk_... | false |
GenMakefile.fst | GenMakefile.maybe_external_api_fsti_checked | val maybe_external_api_fsti_checked (g: Deps.dep_graph) (modul: string) : Tot (list string) | val maybe_external_api_fsti_checked (g: Deps.dep_graph) (modul: string) : Tot (list string) | let maybe_external_api_fsti_checked
(g: Deps.dep_graph)
(modul: string)
: Tot (list string)
= if has_external_api_fsti g modul
then [mk_filename modul "ExternalAPI.fsti.checked"]
else [] | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 164,
"start_col": 0,
"start_line": 158
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.has_external_api_fsti",
"Prims.Cons",
"GenMakefile.mk_filename",
"Prims.Nil",
"Prims.bool",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_external_api_fsti_checked (g: Deps.dep_graph) (modul: string) : Tot (list string) =
| if has_external_api_fsti g modul then [mk_filename modul "ExternalAPI.fsti.checked"] else [] | false |
GenMakefile.fst | GenMakefile.external_deps | val external_deps (g: Deps.dep_graph) (modul: string) : Tot (list string) | val external_deps (g: Deps.dep_graph) (modul: string) : Tot (list string) | let external_deps
(g: Deps.dep_graph)
(modul: string)
: Tot (list string)
= maybe_external_types_fsti_checked g modul `List.Tot.append`
maybe_external_api_fsti_checked g modul | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 41,
"end_line": 171,
"start_col": 0,
"start_line": 166
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"FStar.List.Tot.Base.append",
"GenMakefile.maybe_external_types_fsti_checked",
"GenMakefile.maybe_external_api_fsti_checked",
"Prims.list"
] | [] | false | false | false | true | false | let external_deps (g: Deps.dep_graph) (modul: string) : Tot (list string) =
| (maybe_external_types_fsti_checked g modul)
`List.Tot.append`
(maybe_external_api_fsti_checked g modul) | false |
GenMakefile.fst | GenMakefile.produce_fsti_checked_rule | val produce_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : Tot rule_t | val produce_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : Tot rule_t | let produce_fsti_checked_rule
(g: Deps.dep_graph)
(modul: string)
: Tot rule_t
= let fsti = mk_filename modul "fsti" in
{
ty = EverParse;
from = fsti :: (external_deps g modul `List.Tot.append` List.Tot.map (fun m -> mk_filename m "fsti.checked") (Deps.dependencies g modul));
to = mk_filename modul "f... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 183,
"start_col": 0,
"start_line": 173
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> GenMakefile.rule_t | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"Prims.Cons",
"FStar.List.Tot.Base.append",
"GenMakefile.external_deps",
"FStar.List.Tot.Base.map",
"GenMakefile.mk_filename",
"Deps.dependencies",
"FStar.Printf.sprintf",
"GenMakefile.rule_t"
] | [] | false | false | false | true | false | let produce_fsti_checked_rule (g: Deps.dep_graph) (modul: string) : Tot rule_t =
| let fsti = mk_filename modul "fsti" in
{
ty = EverParse;
from
=
fsti ::
((external_deps g modul)
`List.Tot.append`
(List.Tot.map (fun m -> mk_filename m "fsti.checked") (Deps.dependencies g modul)));
to = mk_filename modul "fsti.checked";
args = Printf.sprintf "--__micro_step verify %s" fsti
} | false |
GenMakefile.fst | GenMakefile.produce_fst_checked_rule | val produce_fst_checked_rule (g: Deps.dep_graph) (modul: string) : FStar.All.ML rule_t | val produce_fst_checked_rule (g: Deps.dep_graph) (modul: string) : FStar.All.ML rule_t | let produce_fst_checked_rule
(g: Deps.dep_graph)
(modul: string)
: FStar.All.ML rule_t
= let fst = mk_filename modul "fst" in
{
ty = EverParse;
from = add_cfg_file_dep "fst.checked" (fst :: mk_filename modul "fsti.checked" :: List.Tot.map (fun m -> mk_filename m "fsti.checked") (Deps.dependencies g modul)... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 195,
"start_col": 0,
"start_line": 185
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> FStar.All.ML GenMakefile.rule_t | FStar.All.ML | [
"ml"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"GenMakefile.mk_filename",
"FStar.Printf.sprintf",
"GenMakefile.rule_t",
"Prims.list",
"GenMakefile.add_cfg_file_dep",
"Prims.Cons",
"FStar.List.Tot.Base.map",
"Deps.dependencies"
] | [] | false | true | false | false | false | let produce_fst_checked_rule (g: Deps.dep_graph) (modul: string) : FStar.All.ML rule_t =
| let fst = mk_filename modul "fst" in
{
ty = EverParse;
from
=
add_cfg_file_dep "fst.checked"
(fst ::
mk_filename modul "fsti.checked" ::
List.Tot.map (fun m -> mk_filename m "fsti.checked") (Deps.dependencies g modul));
to = mk_filename modul "fst.checked";
args = Printf.sprintf "--__micro_s... | false |
GenMakefile.fst | GenMakefile.produce_external_types_krml_rule | val produce_external_types_krml_rule (g: Deps.dep_graph) (modul: string) : list rule_t | val produce_external_types_krml_rule (g: Deps.dep_graph) (modul: string) : list rule_t | let produce_external_types_krml_rule
(g: Deps.dep_graph)
(modul: string)
: list rule_t
= if not (has_external_types_fsti g modul) then []
else
let external_types_fsti_checked = mk_filename modul "ExternalTypes.fsti.checked" in
[{
ty = EverParse;
from = external_types_fsti_checked :: List.To... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 209,
"start_col": 0,
"start_line": 197
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.list GenMakefile.rule_t | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"Prims.op_Negation",
"GenMakefile.has_external_types_fsti",
"Prims.Nil",
"GenMakefile.rule_t",
"Prims.bool",
"Prims.Cons",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"FStar.List.Tot.Base.map",
"GenMakefile.mk_filename",
"Deps.dependencies",
"FStar.Pr... | [] | false | false | false | true | false | let produce_external_types_krml_rule (g: Deps.dep_graph) (modul: string) : list rule_t =
| if not (has_external_types_fsti g modul)
then []
else
let external_types_fsti_checked = mk_filename modul "ExternalTypes.fsti.checked" in
[
{
ty = EverParse;
from
=
external_types_fsti_checked ::
List.Tot.map (fun m -> mk_filename m "fst.checked") (Deps.dependencies g modul);
... | false |
Steel.SpinLock.fst | Steel.SpinLock.release_core | val release_core (#p:vprop) (#u:inames) (r:ref bool) (i:inv (lockinv p r))
: SteelAtomicT bool u
(lockinv p r `star` p)
(fun b -> lockinv p r `star` (if b then emp else p)) | val release_core (#p:vprop) (#u:inames) (r:ref bool) (i:inv (lockinv p r))
: SteelAtomicT bool u
(lockinv p r `star` p)
(fun b -> lockinv p r `star` (if b then emp else p)) | let release_core #p #u r i =
let v = witness_exists () in
let res = cas_pt_bool r v locked available in
(* Not sure we can avoid calling an SMT here. Better force the manual call? *)
rewrite_slprop (if (Ghost.reveal v) then emp else p) (if res then emp else p)
(fun _ -> ());
rewrite_slprop (if res then ... | {
"file_name": "lib/steel/Steel.SpinLock.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 12,
"end_line": 107,
"start_col": 0,
"start_line": 96
} | (*
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.Reference.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": tr... | [
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.Reference.ref Prims.bool -> i: Steel.Effect.Common.inv (Steel.SpinLock.lockinv p r)
-> Steel.Effect.Atomic.SteelAtomicT Prims.bool | Steel.Effect.Atomic.SteelAtomicT | [] | [] | [
"Steel.Effect.Common.vprop",
"Steel.Memory.inames",
"Steel.Reference.ref",
"Prims.bool",
"Steel.Effect.Common.inv",
"Steel.SpinLock.lockinv",
"Steel.Effect.Atomic.return",
"Steel.Effect.Common.VStar",
"Steel.Effect.Common.emp",
"Prims.unit",
"Steel.SpinLock.intro_lockinv_available",
"Steel.Eff... | [] | false | true | false | false | false | let release_core #p #u r i =
| let v = witness_exists () in
let res = cas_pt_bool r v locked available in
rewrite_slprop (if (Ghost.reveal v) then emp else p) (if res then emp else p) (fun _ -> ());
rewrite_slprop (if res then pts_to r full_perm (Ghost.hide available) else pts_to r full_perm v)
(pts_to r full_perm available)
(fun _ -> ());
intro... | false |
GenMakefile.fst | GenMakefile.produce_krml_rule | val produce_krml_rule (g: Deps.dep_graph) (modul: string) : FStar.All.ML rule_t | val produce_krml_rule (g: Deps.dep_graph) (modul: string) : FStar.All.ML rule_t | let produce_krml_rule
(g: Deps.dep_graph)
(modul: string)
: FStar.All.ML rule_t
=
{
ty = EverParse;
from = add_cfg_file_dep "fst.checked"
(mk_filename modul "fst.checked" ::
List.Tot.map (fun m -> mk_filename m "fst.checked") (Deps.dependencies g modul));
to = mk_filename m... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 237,
"start_col": 0,
"start_line": 225
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> FStar.All.ML GenMakefile.rule_t | FStar.All.ML | [
"ml"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"GenMakefile.mk_filename",
"FStar.Printf.sprintf",
"GenMakefile.rule_t",
"Prims.list",
"GenMakefile.add_cfg_file_dep",
"Prims.Cons",
"FStar.List.Tot.Base.map",
"Deps.dependencies"
] | [] | false | true | false | false | false | let produce_krml_rule (g: Deps.dep_graph) (modul: string) : FStar.All.ML rule_t =
| {
ty = EverParse;
from
=
add_cfg_file_dep "fst.checked"
(mk_filename modul "fst.checked" ::
List.Tot.map (fun m -> mk_filename m "fst.checked") (Deps.dependencies g modul));
to = mk_filename modul "krml";
args = Printf.sprintf "--__micro_step extract %s" (mk_filename modul "fst")
} | false |
GenMakefile.fst | GenMakefile.produce_external_api_krml_rule | val produce_external_api_krml_rule (g: Deps.dep_graph) (modul: string) : list rule_t | val produce_external_api_krml_rule (g: Deps.dep_graph) (modul: string) : list rule_t | let produce_external_api_krml_rule
(g: Deps.dep_graph)
(modul: string)
: list rule_t
= if not (has_external_api_fsti g modul) then []
else
let external_api_fsti_checked = mk_filename modul "ExternalAPI.fsti.checked" in
[{
ty = EverParse;
from = external_api_fsti_checked :: List.Tot.map (fun... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 223,
"start_col": 0,
"start_line": 211
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> modul: Prims.string -> Prims.list GenMakefile.rule_t | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"Prims.op_Negation",
"GenMakefile.has_external_api_fsti",
"Prims.Nil",
"GenMakefile.rule_t",
"Prims.bool",
"Prims.Cons",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"FStar.List.Tot.Base.map",
"GenMakefile.mk_filename",
"Deps.dependencies",
"FStar.Prin... | [] | false | false | false | true | false | let produce_external_api_krml_rule (g: Deps.dep_graph) (modul: string) : list rule_t =
| if not (has_external_api_fsti g modul)
then []
else
let external_api_fsti_checked = mk_filename modul "ExternalAPI.fsti.checked" in
[
{
ty = EverParse;
from
=
external_api_fsti_checked ::
List.Tot.map (fun m -> mk_filename m "fst.checked") (Deps.dependencies g modul);
to = mk... | false |
GenMakefile.fst | GenMakefile.maybe_external_typedefs_h | val maybe_external_typedefs_h (emit_output_types_defs: bool) (g: Deps.dep_graph) (modul: string)
: Tot (list string) | val maybe_external_typedefs_h (emit_output_types_defs: bool) (g: Deps.dep_graph) (modul: string)
: Tot (list string) | let maybe_external_typedefs_h
(emit_output_types_defs: bool)
(g:Deps.dep_graph)
(modul: string)
: Tot (list string)
= if (Deps.has_output_types g modul && not (Deps.has_extern_types g modul)) && emit_output_types_defs
then [mk_filename (Printf.sprintf "%s_ExternalTypedefs" modul) "h"]
else [] | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 258,
"start_col": 0,
"start_line": 251
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | emit_output_types_defs: Prims.bool -> g: Deps.dep_graph -> modul: Prims.string
-> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Deps.dep_graph",
"Prims.string",
"Prims.op_AmpAmp",
"Deps.has_output_types",
"Prims.op_Negation",
"Deps.has_extern_types",
"Prims.Cons",
"GenMakefile.mk_filename",
"FStar.Printf.sprintf",
"Prims.Nil",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_external_typedefs_h (emit_output_types_defs: bool) (g: Deps.dep_graph) (modul: string)
: Tot (list string) =
| if (Deps.has_output_types g modul && not (Deps.has_extern_types g modul)) && emit_output_types_defs
then [mk_filename (Printf.sprintf "%s_ExternalTypedefs" modul) "h"]
else [] | false |
GenMakefile.fst | GenMakefile.produce_nop_rule | val produce_nop_rule (from: list string) (to: string) : Tot rule_t | val produce_nop_rule (from: list string) (to: string) : Tot rule_t | let produce_nop_rule
(from: list string)
(to: string)
: Tot rule_t
=
{
ty = Nop;
from = from;
to = to;
args = "";
} | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 249,
"start_col": 0,
"start_line": 239
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | from: Prims.list Prims.string -> to: Prims.string -> GenMakefile.rule_t | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Prims.string",
"GenMakefile.Mkrule_t",
"GenMakefile.Nop",
"GenMakefile.rule_t"
] | [] | false | false | false | true | false | let produce_nop_rule (from: list string) (to: string) : Tot rule_t =
| { ty = Nop; from = from; to = to; args = "" } | false |
GenMakefile.fst | GenMakefile.maybe_external_api_krml | val maybe_external_api_krml (g: Deps.dep_graph) (m: string) : Tot (list string) | val maybe_external_api_krml (g: Deps.dep_graph) (m: string) : Tot (list string) | let maybe_external_api_krml
(g: Deps.dep_graph)
(m: string)
: Tot (list string)
= if has_external_api_fsti g m
then [mk_filename (Printf.sprintf "%s_ExternalAPI" m) "krml"]
else [] | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 340,
"start_col": 0,
"start_line": 334
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> m: Prims.string -> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.has_external_api_fsti",
"Prims.Cons",
"GenMakefile.mk_filename",
"FStar.Printf.sprintf",
"Prims.Nil",
"Prims.bool",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_external_api_krml (g: Deps.dep_graph) (m: string) : Tot (list string) =
| if has_external_api_fsti g m then [mk_filename (Printf.sprintf "%s_ExternalAPI" m) "krml"] else [] | false |
GenMakefile.fst | GenMakefile.maybe_external_types_krml | val maybe_external_types_krml (g: Deps.dep_graph) (m: string) : Tot (list string) | val maybe_external_types_krml (g: Deps.dep_graph) (m: string) : Tot (list string) | let maybe_external_types_krml
(g: Deps.dep_graph)
(m: string)
: Tot (list string)
= if has_external_types_fsti g m
then [mk_filename (Printf.sprintf "%s_ExternalTypes" m) "krml"]
else [] | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 348,
"start_col": 0,
"start_line": 342
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> m: Prims.string -> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.has_external_types_fsti",
"Prims.Cons",
"GenMakefile.mk_filename",
"FStar.Printf.sprintf",
"Prims.Nil",
"Prims.bool",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_external_types_krml (g: Deps.dep_graph) (m: string) : Tot (list string) =
| if has_external_types_fsti g m
then [mk_filename (Printf.sprintf "%s_ExternalTypes" m) "krml"]
else [] | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_dep_pair_with_action | val validate_dep_pair_with_action
(#nz1:_)
(#k1:parser_kind nz1 WeakKindStrongPrefix)
(#t1:Type)
(#[@@@erasable] p1:parser k1 t1)
(#[@@@erasable] inv1:slice_inv)
(#[@@@erasable] disj1:disjointness_pre)
(#[@@@erasable] l1:eloc)
(v1:validate_with_action_t p1 inv1 di... | val validate_dep_pair_with_action
(#nz1:_)
(#k1:parser_kind nz1 WeakKindStrongPrefix)
(#t1:Type)
(#[@@@erasable] p1:parser k1 t1)
(#[@@@erasable] inv1:slice_inv)
(#[@@@erasable] disj1:disjointness_pre)
(#[@@@erasable] l1:eloc)
(v1:validate_with_action_t p1 inv1 di... | let validate_dep_pair_with_action
#nz1 (#k1:parser_kind nz1 _) #t1 (#p1:parser k1 t1)
#inv1 #disj1 #l1 (v1:validate_with_action_t p1 inv1 disj1 l1 true) (r1: leaf_reader p1)
#inv1' #disj1' #l1' #b (a:t1 -> action inv1' disj1' l1' b bool)
#nz2 #wk2 (#k2:parser_kind nz2 wk2) (#t2:t1 -> Type) (#p2:... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 633,
"start_col": 0,
"start_line": 606
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Spec.Combinators",
"short_module": "LPC"
},
{
"abbrev": true,
"full_module": "LowParse.Low.Base",
"short_module": "LPL"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Base",
"short_module": "LP"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 |
v1: EverParse3d.Actions.Base.validate_with_action_t p1 inv1 disj1 l1 true ->
r1: EverParse3d.Actions.Base.leaf_reader p1 ->
a: (_: t1 -> EverParse3d.Actions.Base.action inv1' disj1' l1' b Prims.bool) ->
v2:
(x: t1 -> EverParse3d.Actions.Base.validate_with_action_t (p2 x) inv2 disj2 l2 allow_readi... | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Kinds.WeakKindStrongPrefix",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"EverParse3d.Actions.Base.validate_with_action_t",
"EverParse3d.A... | [] | false | false | false | false | false | let validate_dep_pair_with_action
#nz1
(#k1: parser_kind nz1 _)
#t1
(#p1: parser k1 t1)
#inv1
#disj1
#l1
(v1: validate_with_action_t p1 inv1 disj1 l1 true)
(r1: leaf_reader p1)
#inv1'
#disj1'
#l1'
#b
(a: (t1 -> action inv1' disj1' l1' b... | fun ctxt error_handler_fn input input_length startPosition ->
let h0 = HST.get () in
LPC.parse_dtuple2_eq' #_ #_ p1 #_ #t2 p2 (I.get_remaining input h0);
let res = v1 ctxt error_handler_fn input input_length startPosition in
let h1 = HST.get () in
modifies_address_liveness_insensitive_unused_in h0 h1;
if LP... | false |
GenMakefile.fst | GenMakefile.maybe_external_types_h | val maybe_external_types_h (g: Deps.dep_graph) (m: string) : Tot (list string) | val maybe_external_types_h (g: Deps.dep_graph) (m: string) : Tot (list string) | let maybe_external_types_h
(g: Deps.dep_graph)
(m: string)
: Tot (list string)
= if has_external_types_fsti g m
then [mk_filename (Printf.sprintf "%s_ExternalTypes" m) "h"]
else [] | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 356,
"start_col": 0,
"start_line": 350
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> m: Prims.string -> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.has_external_types_fsti",
"Prims.Cons",
"GenMakefile.mk_filename",
"FStar.Printf.sprintf",
"Prims.Nil",
"Prims.bool",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_external_types_h (g: Deps.dep_graph) (m: string) : Tot (list string) =
| if has_external_types_fsti g m then [mk_filename (Printf.sprintf "%s_ExternalTypes" m) "h"] else [] | false |
GenMakefile.fst | GenMakefile.maybe_external_api_h | val maybe_external_api_h (g: Deps.dep_graph) (m: string) : Tot (list string) | val maybe_external_api_h (g: Deps.dep_graph) (m: string) : Tot (list string) | let maybe_external_api_h
(g: Deps.dep_graph)
(m: string)
: Tot (list string)
= if has_external_api_fsti g m
then [mk_filename (Printf.sprintf "%s_ExternalAPI" m) "h"]
else [] | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 364,
"start_col": 0,
"start_line": 358
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> m: Prims.string -> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"GenMakefile.has_external_api_fsti",
"Prims.Cons",
"GenMakefile.mk_filename",
"FStar.Printf.sprintf",
"Prims.Nil",
"Prims.bool",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_external_api_h (g: Deps.dep_graph) (m: string) : Tot (list string) =
| if has_external_api_fsti g m then [mk_filename (Printf.sprintf "%s_ExternalAPI" m) "h"] else [] | false |
GenMakefile.fst | GenMakefile.maybe_krml_generated_h | val maybe_krml_generated_h (g: Deps.dep_graph) (m: string) : Tot (list string) | val maybe_krml_generated_h (g: Deps.dep_graph) (m: string) : Tot (list string) | let maybe_krml_generated_h
(g: Deps.dep_graph)
(m: string)
: Tot (list string)
= maybe_external_types_h g m `List.Tot.append`
maybe_external_api_h g m | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 371,
"start_col": 0,
"start_line": 366
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> m: Prims.string -> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Deps.dep_graph",
"Prims.string",
"FStar.List.Tot.Base.append",
"GenMakefile.maybe_external_types_h",
"GenMakefile.maybe_external_api_h",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_krml_generated_h (g: Deps.dep_graph) (m: string) : Tot (list string) =
| (maybe_external_types_h g m) `List.Tot.append` (maybe_external_api_h g m) | false |
GenMakefile.fst | GenMakefile.maybe_h | val maybe_h (emit_output_types_defs: bool) (g: Deps.dep_graph) (m: string) : Tot (list string) | val maybe_h (emit_output_types_defs: bool) (g: Deps.dep_graph) (m: string) : Tot (list string) | let maybe_h
(emit_output_types_defs: bool)
(g: Deps.dep_graph)
(m: string)
: Tot (list string)
= maybe_krml_generated_h g m `List.Tot.append`
maybe_external_typedefs_h emit_output_types_defs g m | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 54,
"end_line": 379,
"start_col": 0,
"start_line": 373
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | emit_output_types_defs: Prims.bool -> g: Deps.dep_graph -> m: Prims.string
-> Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Deps.dep_graph",
"Prims.string",
"FStar.List.Tot.Base.append",
"GenMakefile.maybe_krml_generated_h",
"GenMakefile.maybe_external_typedefs_h",
"Prims.list"
] | [] | false | false | false | true | false | let maybe_h (emit_output_types_defs: bool) (g: Deps.dep_graph) (m: string) : Tot (list string) =
| (maybe_krml_generated_h g m)
`List.Tot.append`
(maybe_external_typedefs_h emit_output_types_defs g m) | false |
GenMakefile.fst | GenMakefile.produce_h_rules | val produce_h_rules (g: Deps.dep_graph) (clang_format: bool) (file: string)
: FStar.All.ML (list rule_t) | val produce_h_rules (g: Deps.dep_graph) (clang_format: bool) (file: string)
: FStar.All.ML (list rule_t) | let produce_h_rules
(g: Deps.dep_graph)
(clang_format: bool)
(file: string)
: FStar.All.ML (list rule_t)
=
let all_files = Deps.collect_and_sort_dependencies_from_graph g [file] in
let to = mk_filename (Options.get_module_name file) "c" in
let copyright = mk_input_filename (Printf.sprintf "%s.3d.copyright.t... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 13,
"end_line": 411,
"start_col": 0,
"start_line": 381
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | g: Deps.dep_graph -> clang_format: Prims.bool -> file: Prims.string
-> FStar.All.ML (Prims.list GenMakefile.rule_t) | FStar.All.ML | [
"ml"
] | [] | [
"Deps.dep_graph",
"Prims.bool",
"Prims.string",
"Prims.Cons",
"GenMakefile.rule_t",
"Prims.list",
"FStar.List.concatMap",
"FStar.List.Tot.Base.map",
"GenMakefile.produce_nop_rule",
"Prims.Nil",
"GenMakefile.maybe_krml_generated_h",
"Options.get_module_name",
"GenMakefile.mk_filename",
"Gen... | [] | false | true | false | false | false | let produce_h_rules (g: Deps.dep_graph) (clang_format: bool) (file: string)
: FStar.All.ML (list rule_t) =
| let all_files = Deps.collect_and_sort_dependencies_from_graph g [file] in
let to = mk_filename (Options.get_module_name file) "c" in
let copyright =
mk_input_filename (Printf.sprintf "%s.3d.copyright.txt" (Options.get_module_name file))
in
{
ty = EverParse;
from
=
add_cfg_file_dep "krml"
((((if clang_form... | false |
GenMakefile.fst | GenMakefile.produce_clang_format_rule | val produce_clang_format_rule (clang_format: bool) : Tot (list rule_t) | val produce_clang_format_rule (clang_format: bool) : Tot (list rule_t) | let produce_clang_format_rule
(clang_format: bool)
: Tot (list rule_t)
=
if clang_format
then [{
ty = EverParse;
from = [];
to = mk_filename "" "clang-format";
args = "--__micro_step copy_clang_format";
}] else [] | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 12,
"end_line": 504,
"start_col": 0,
"start_line": 494
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | clang_format: Prims.bool -> Prims.list GenMakefile.rule_t | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Prims.Cons",
"GenMakefile.rule_t",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"Prims.Nil",
"Prims.string",
"GenMakefile.mk_filename",
"Prims.list"
] | [] | false | false | false | true | false | let produce_clang_format_rule (clang_format: bool) : Tot (list rule_t) =
| if clang_format
then
[
{
ty = EverParse;
from = [];
to = mk_filename "" "clang-format";
args = "--__micro_step copy_clang_format"
}
]
else [] | false |
GenMakefile.fst | GenMakefile.produce_everparse_h_rule | val produce_everparse_h_rule (everparse_h: bool) : Tot (list rule_t) | val produce_everparse_h_rule (everparse_h: bool) : Tot (list rule_t) | let produce_everparse_h_rule
(everparse_h: bool)
: Tot (list rule_t)
=
if everparse_h
then [
{
ty = EverParse;
from = [];
to = mk_filename "EverParseEndianness" "h";
args = "--__micro_step copy_everparse_h";
};
{
ty = Nop;
from = [mk_filename "EverParseEndianness" "... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 11,
"end_line": 524,
"start_col": 0,
"start_line": 506
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | everparse_h: Prims.bool -> Prims.list GenMakefile.rule_t | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Prims.Cons",
"GenMakefile.rule_t",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"Prims.Nil",
"Prims.string",
"GenMakefile.mk_filename",
"GenMakefile.Nop",
"Prims.list"
] | [] | false | false | false | true | false | let produce_everparse_h_rule (everparse_h: bool) : Tot (list rule_t) =
| if everparse_h
then
[
{
ty = EverParse;
from = [];
to = mk_filename "EverParseEndianness" "h";
args = "--__micro_step copy_everparse_h"
};
{
ty = Nop;
from = [mk_filename "EverParseEndianness" "h"];
to = mk_filename "EverParse" "h";
args = ""
}
]
else ... | false |
GenMakefile.fst | GenMakefile.write_makefile | val write_makefile
(mtype: HashingOptions.makefile_type)
(_: HashingOptions.input_stream_binding_t)
(everparse_h: bool)
(emit_output_types_defs: bool)
(skip_o_rules: bool)
(clang_format: bool)
(files: list string)
: FStar.All.ML unit | val write_makefile
(mtype: HashingOptions.makefile_type)
(_: HashingOptions.input_stream_binding_t)
(everparse_h: bool)
(emit_output_types_defs: bool)
(skip_o_rules: bool)
(clang_format: bool)
(files: list string)
: FStar.All.ML unit | let write_makefile
mtype
input_stream_binding
(everparse_h: bool)
(emit_output_types_defs: bool)
(skip_o_rules: bool)
(clang_format: bool)
(files: list string)
: FStar.All.ML unit
=
let makefile = Options.get_makefile_name () in
let file = FStar.IO.open_write_file makefile in
let {graph = g; rules; ... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 32,
"end_line": 616,
"start_col": 0,
"start_line": 570
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 |
mtype: HashingOptions.makefile_type ->
input_stream_binding: HashingOptions.input_stream_binding_t ->
everparse_h: Prims.bool ->
emit_output_types_defs: Prims.bool ->
skip_o_rules: Prims.bool ->
clang_format: Prims.bool ->
files: Prims.list Prims.string
-> FStar.All.ML Prims.unit | FStar.All.ML | [
"ml"
] | [] | [
"HashingOptions.makefile_type",
"HashingOptions.input_stream_binding_t",
"Prims.bool",
"Prims.list",
"Prims.string",
"GenMakefile.rule_t",
"Deps.dep_graph",
"FStar.IO.close_write_file",
"Prims.unit",
"GenMakefile.oext",
"FStar.IO.write_string",
"FStar.Printf.sprintf",
"FStar.String.concat",
... | [] | false | true | false | false | false | let write_makefile
mtype
input_stream_binding
(everparse_h: bool)
(emit_output_types_defs: bool)
(skip_o_rules: bool)
(clang_format: bool)
(files: list string)
: FStar.All.ML unit =
| let makefile = Options.get_makefile_name () in
let file = FStar.IO.open_write_file makefile in
let { graph = g ; rules = rules ; all_files = all_files } =
produce_makefile mtype everparse_h emit_output_types_defs skip_o_rules clang_format files
in
FStar.IO.write_string file
(String.concat "" (List.Tot.map (print_ma... | false |
GenMakefile.fst | GenMakefile.produce_fst_rules | val produce_fst_rules
(emit_output_types_defs: bool)
(g: Deps.dep_graph)
(clang_format: bool)
(file: string)
: FStar.All.ML (list rule_t) | val produce_fst_rules
(emit_output_types_defs: bool)
(g: Deps.dep_graph)
(clang_format: bool)
(file: string)
: FStar.All.ML (list rule_t) | let produce_fst_rules
(emit_output_types_defs: bool)
(g: Deps.dep_graph)
(clang_format: bool)
(file: string)
: FStar.All.ML (list rule_t)
=
let modul = Options.get_module_name file in
(* follow the order prescribed by Main.process_file *)
(* fst* files generated by 3d (cf. Main.emit_fstar_code_for_interpr... | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 88,
"end_line": 332,
"start_col": 0,
"start_line": 260
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 |
emit_output_types_defs: Prims.bool ->
g: Deps.dep_graph ->
clang_format: Prims.bool ->
file: Prims.string
-> FStar.All.ML (Prims.list GenMakefile.rule_t) | FStar.All.ML | [
"ml"
] | [] | [
"Prims.bool",
"Deps.dep_graph",
"Prims.string",
"Prims.list",
"Prims.Cons",
"GenMakefile.rule_t",
"FStar.List.Tot.Base.map",
"GenMakefile.produce_nop_rule",
"Prims.Nil",
"FStar.List.Tot.Base.append",
"GenMakefile.Mkrule_t",
"GenMakefile.EverParse",
"FStar.Printf.sprintf",
"GenMakefile.mk_i... | [] | false | true | false | false | false | let produce_fst_rules
(emit_output_types_defs: bool)
(g: Deps.dep_graph)
(clang_format: bool)
(file: string)
: FStar.All.ML (list rule_t) =
| let modul = Options.get_module_name file in
let first_fst :: other_fst =
((if has_external_types_fsti g modul then [mk_filename modul "ExternalTypes.fsti"] else [])
`List.Tot.append`
(if has_external_api_fsti g modul then [mk_filename modul "ExternalAPI.fsti"] else []))
`List.Tot.append`
[mk_filename modu... | false |
GenMakefile.fst | GenMakefile.c_to_o | val c_to_o : mtype: HashingOptions.makefile_type -> o: Prims.string -> c: Prims.string -> Prims.string | let c_to_o mtype o c =
let oflag = match mtype with
| HashingOptions.MakefileGMake -> "-o"
| HashingOptions.MakefileNMake -> "/Fo:"
in
Printf.sprintf "%s %s %s" oflag o c | {
"file_name": "src/3d/GenMakefile.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 37,
"end_line": 418,
"start_col": 0,
"start_line": 413
} | module GenMakefile
module OS = OS
type rule_type =
| EverParse
| CC
| Nop (* to simulate multiple-target rules *)
type rule_t = {
ty: rule_type;
from: list string;
to: string;
args: string;
}
let input_dir = "$(EVERPARSE_INPUT_DIR)"
let output_dir = "$(EVERPARSE_OUTPUT_DIR)"
let oext = function
| Hash... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OS.fsti.checked",
"Options.fsti.checked",
"HashingOptions.fst.checked",
"FStar.String.fsti.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.... | [
{
"abbrev": true,
"full_module": "OS",
"short_module": "OS"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"shor... | {
"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 | mtype: HashingOptions.makefile_type -> o: Prims.string -> c: Prims.string -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"HashingOptions.makefile_type",
"Prims.string",
"FStar.Printf.sprintf"
] | [] | false | false | false | true | false | let c_to_o mtype o c =
| let oflag =
match mtype with
| HashingOptions.MakefileGMake -> "-o"
| HashingOptions.MakefileNMake -> "/Fo:"
in
Printf.sprintf "%s %s %s" oflag o c | false | |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.t_post | val t_post : Type | let t_post = state -> prop | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 55,
"start_col": 0,
"start_line": 55
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type | Prims.Tot | [
"total"
] | [] | [
"OPLSS2021.Vale.state",
"Prims.prop"
] | [] | false | false | false | true | true | let t_post =
| state -> prop | false | |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.t_pre | val t_pre : Type | let t_pre = state -> prop | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 58,
"start_col": 0,
"start_line": 58
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type | Prims.Tot | [
"total"
] | [] | [
"OPLSS2021.Vale.state",
"Prims.prop"
] | [] | false | false | false | true | true | let t_pre =
| state -> prop | false | |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.nonce | val nonce : a: Spec.Agile.Cipher.cipher_alg -> Type0 | let nonce a = b:bytes { nonce_bound a (length b) } | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 57,
"start_col": 0,
"start_line": 57
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | a: Spec.Agile.Cipher.cipher_alg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Agile.Cipher.cipher_alg",
"Lib.ByteSequence.bytes",
"Spec.Agile.Cipher.nonce_bound",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC"
] | [] | false | false | false | true | true | let nonce a =
| b: bytes{nonce_bound a (length b)} | false | |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.t_wp | val t_wp : Type | let t_wp = t_post -> t_pre | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 61,
"start_col": 0,
"start_line": 61
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type | Prims.Tot | [
"total"
] | [] | [
"OPLSS2021.ValeVC.t_post",
"OPLSS2021.ValeVC.t_pre"
] | [] | false | false | false | true | true | let t_wp =
| t_post -> t_pre | false | |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.ctr | val ctr : Type0 | let ctr = size_nat | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 18,
"end_line": 59,
"start_col": 0,
"start_line": 59
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat"
] | [] | false | false | false | true | true | let ctr =
| size_nat | false | |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.t_lemma | val t_lemma : pre: Prims.prop -> post: Prims.prop -> Type0 | let t_lemma (pre:prop) (post:prop) =
unit -> Lemma (requires pre) (ensures post) | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 75,
"start_col": 0,
"start_line": 74
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | pre: Prims.prop -> post: Prims.prop -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.prop",
"Prims.unit",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | false | false | false | true | true | let t_lemma (pre post: prop) =
| unit -> Lemma (requires pre) (ensures post) | false | |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.vc_sound' | val vc_sound' (cs: list code) (qcs: with_wps cs) : has_wp (Block cs) (vc_gen cs qcs) | val vc_sound' (cs: list code) (qcs: with_wps cs) : has_wp (Block cs) (vc_gen cs qcs) | let vc_sound' (cs:list code) (qcs:with_wps cs)
: has_wp (Block cs) (vc_gen cs qcs)
= vc_sound cs qcs | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 142,
"start_col": 0,
"start_line": 140
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | cs: Prims.list OPLSS2021.Vale.code -> qcs: OPLSS2021.ValeVC.with_wps cs
-> OPLSS2021.ValeVC.has_wp (OPLSS2021.Vale.Block cs) (OPLSS2021.ValeVC.vc_gen cs qcs) | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"OPLSS2021.Vale.code",
"OPLSS2021.ValeVC.with_wps",
"OPLSS2021.ValeVC.vc_sound",
"OPLSS2021.ValeVC.has_wp",
"OPLSS2021.Vale.Block",
"OPLSS2021.ValeVC.vc_gen"
] | [] | false | false | false | false | false | let vc_sound' (cs: list code) (qcs: with_wps cs) : has_wp (Block cs) (vc_gen cs qcs) =
| vc_sound cs qcs | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.inst_Move | val inst_Move (dst src: operand) : with_wp (Ins (Mov64 dst src)) | val inst_Move (dst src: operand) : with_wp (Ins (Mov64 dst src)) | let inst_Move (dst:operand) (src:operand) : with_wp (Ins (Mov64 dst src)) =
QProc (Ins (Mov64 dst src)) (wp_Move dst src) (hasWp_Move dst src) | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 68,
"end_line": 167,
"start_col": 0,
"start_line": 166
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dst: OPLSS2021.Vale.operand -> src: OPLSS2021.Vale.operand
-> OPLSS2021.ValeVC.with_wp (OPLSS2021.Vale.Ins (OPLSS2021.Vale.Mov64 dst src)) | Prims.Tot | [
"total"
] | [] | [
"OPLSS2021.Vale.operand",
"OPLSS2021.ValeVC.QProc",
"OPLSS2021.Vale.Ins",
"OPLSS2021.Vale.Mov64",
"OPLSS2021.ValeVC.wp_Move",
"OPLSS2021.ValeVC.hasWp_Move",
"OPLSS2021.ValeVC.with_wp"
] | [] | false | false | false | false | false | let inst_Move (dst src: operand) : with_wp (Ins (Mov64 dst src)) =
| QProc (Ins (Mov64 dst src)) (wp_Move dst src) (hasWp_Move dst src) | false |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.aes_alg_of_alg | val aes_alg_of_alg : a: Spec.Agile.Cipher.cipher_alg{a = Spec.Agile.Cipher.AES128 \/ a = Spec.Agile.Cipher.AES256}
-> Spec.AES.variant | let aes_alg_of_alg (a: cipher_alg { a = AES128 \/ a = AES256 }) =
match a with
| AES128 -> Spec.AES.AES128
| AES256 -> Spec.AES.AES256 | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 30,
"start_col": 0,
"start_line": 27
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | a: Spec.Agile.Cipher.cipher_alg{a = Spec.Agile.Cipher.AES128 \/ a = Spec.Agile.Cipher.AES256}
-> Spec.AES.variant | Prims.Tot | [
"total"
] | [] | [
"Spec.Agile.Cipher.cipher_alg",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Spec.Agile.Cipher.AES128",
"Spec.Agile.Cipher.AES256",
"Spec.AES.AES128",
"Spec.AES.AES256",
"Spec.AES.variant"
] | [] | false | false | false | false | false | let aes_alg_of_alg (a: cipher_alg{a = AES128 \/ a = AES256}) =
| match a with
| AES128 -> Spec.AES.AES128
| AES256 -> Spec.AES.AES256 | false | |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.vc_sound | val vc_sound (cs: list code) (qcs: with_wps cs) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires vc_gen cs qcs k s0)
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) | val vc_sound (cs: list code) (qcs: with_wps cs) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires vc_gen cs qcs k s0)
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) | let rec vc_sound (cs:list code)
(qcs:with_wps cs)
(k:state -> prop)
(s0:state)
: Pure (state & fuel)
(requires vc_gen cs qcs k s0)
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN)
= match qcs with
| QEmpty -> (s0, 0)
| QSeq qc... | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 27,
"end_line": 138,
"start_col": 0,
"start_line": 121
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cs: Prims.list OPLSS2021.Vale.code ->
qcs: OPLSS2021.ValeVC.with_wps cs ->
k: (_: OPLSS2021.Vale.state -> Prims.prop) ->
s0: OPLSS2021.Vale.state
-> Prims.Pure (OPLSS2021.Vale.state * OPLSS2021.Vale.fuel) | Prims.Pure | [] | [] | [
"Prims.list",
"OPLSS2021.Vale.code",
"OPLSS2021.ValeVC.with_wps",
"OPLSS2021.Vale.state",
"Prims.prop",
"FStar.Pervasives.Native.Mktuple2",
"OPLSS2021.Vale.fuel",
"OPLSS2021.ValeVC.with_wp",
"OPLSS2021.Vale.lemma_merge",
"FStar.Pervasives.Native.tuple2",
"OPLSS2021.ValeVC.vc_sound",
"OPLSS2021... | [
"recursion"
] | false | false | false | false | false | let rec vc_sound (cs: list code) (qcs: with_wps cs) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires vc_gen cs qcs k s0)
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) =
| match qcs with
| QEmpty -> (s0, 0)
| QSeq qc qcs ->
let Cons c cs' = cs in
let sM, fM = qc.hasWp (vc_gen cs' qcs k) s0 in
let sN, fN = vc_sound cs' qcs k sM in
let fN' = lemma_merge c cs' s0 fM sM fN sN in
(sN, fN')
| QLemma pre post lem qcs' ->
lem ();
vc_sound cs qcs' k s0 | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.vc_gen | val vc_gen (cs: list code) (qcs: with_wps cs) (k: t_post) : Tot (state -> Tot prop (decreases qcs)) | val vc_gen (cs: list code) (qcs: with_wps cs) (k: t_post) : Tot (state -> Tot prop (decreases qcs)) | let rec vc_gen (cs:list code) (qcs:with_wps cs) (k:t_post)
: Tot (state -> Tot prop (decreases qcs))
=
fun s0 ->
match qcs with
| QEmpty ->
k s0 //no instructions; prove the postcondition right away
| QSeq qc qcs ->
qc.wp (vc_gen (Cons?.tl cs) qcs k) s0
| QLemma pre post _ qcs ->
pre /\ //pr... | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 118,
"start_col": 0,
"start_line": 105
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cs: Prims.list OPLSS2021.Vale.code ->
qcs: OPLSS2021.ValeVC.with_wps cs ->
k: OPLSS2021.ValeVC.t_post ->
_: OPLSS2021.Vale.state
-> Prims.Tot Prims.prop | Prims.Tot | [
"total",
""
] | [] | [
"Prims.list",
"OPLSS2021.Vale.code",
"OPLSS2021.ValeVC.with_wps",
"OPLSS2021.ValeVC.t_post",
"OPLSS2021.Vale.state",
"OPLSS2021.ValeVC.with_wp",
"OPLSS2021.ValeVC.__proj__QProc__item__wp",
"OPLSS2021.ValeVC.vc_gen",
"Prims.__proj__Cons__item__tl",
"Prims.prop",
"OPLSS2021.ValeVC.t_lemma",
"Pri... | [
"recursion"
] | false | false | false | false | true | let rec vc_gen (cs: list code) (qcs: with_wps cs) (k: t_post)
: Tot (state -> Tot prop (decreases qcs)) =
| fun s0 ->
match qcs with
| QEmpty -> k s0
| QSeq qc qcs -> qc.wp (vc_gen (Cons?.tl cs) qcs k) s0
| QLemma pre post _ qcs -> pre /\ (post ==> vc_gen cs qcs k s0) | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.inst_Add | val inst_Add (dst src: operand) : with_wp (Ins (Add64 dst src)) | val inst_Add (dst src: operand) : with_wp (Ins (Add64 dst src)) | let inst_Add (dst:operand) (src:operand) : with_wp (Ins (Add64 dst src)) =
QProc (Ins (Add64 dst src)) (wp_Add dst src) (hasWp_Add dst src) | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 188,
"start_col": 0,
"start_line": 187
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | dst: OPLSS2021.Vale.operand -> src: OPLSS2021.Vale.operand
-> OPLSS2021.ValeVC.with_wp (OPLSS2021.Vale.Ins (OPLSS2021.Vale.Add64 dst src)) | Prims.Tot | [
"total"
] | [] | [
"OPLSS2021.Vale.operand",
"OPLSS2021.ValeVC.QProc",
"OPLSS2021.Vale.Ins",
"OPLSS2021.Vale.Add64",
"OPLSS2021.ValeVC.wp_Add",
"OPLSS2021.ValeVC.hasWp_Add",
"OPLSS2021.ValeVC.with_wp"
] | [] | false | false | false | false | false | let inst_Add (dst src: operand) : with_wp (Ins (Add64 dst src)) =
| QProc (Ins (Add64 dst src)) (wp_Add dst src) (hasWp_Add dst src) | false |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.nonce_bound | val nonce_bound (a: cipher_alg) (n_len: nat) : Type0 | val nonce_bound (a: cipher_alg) (n_len: nat) : Type0 | let nonce_bound (a: cipher_alg) (n_len: nat): Type0 =
match a with
| AES128 | AES256 -> n_len <= block_length a
| CHACHA20 -> n_len == 12 | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 55,
"start_col": 0,
"start_line": 52
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | a: Spec.Agile.Cipher.cipher_alg -> n_len: Prims.nat -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Agile.Cipher.cipher_alg",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Spec.Agile.Cipher.block_length",
"Prims.eq2",
"Prims.int"
] | [] | false | false | false | true | true | let nonce_bound (a: cipher_alg) (n_len: nat) : Type0 =
| match a with
| AES128 | AES256 -> n_len <= block_length a
| CHACHA20 -> n_len == 12 | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.normal_steps | val normal_steps:list string | val normal_steps:list string | let normal_steps : list string =
[
`%OReg?;
`%OReg?.r;
`%QProc?.wp;
`%eval_operand;
`%update_reg;
`%update_state;
] | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 202,
"start_col": 0,
"start_line": 194
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.list Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.Cons",
"Prims.string",
"Prims.Nil"
] | [] | false | false | false | true | false | let normal_steps:list string =
| [`%OReg?; `%OReg?.r; `%QProc?.wp; `%eval_operand; `%update_reg; `%update_state] | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.wp_Move | val wp_Move (dst src: operand) (k: (state -> prop)) (s0: state) : prop | val wp_Move (dst src: operand) (k: (state -> prop)) (s0: state) : prop | let wp_Move (dst:operand) (src:operand) (k:state -> prop) (s0:state)
: prop
= OReg? dst /\
(forall (x:nat64).
let sM = update_reg s0 (OReg?.r dst) x in
eval_operand dst sM == eval_operand src s0 ==> k sM
) | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 157,
"start_col": 0,
"start_line": 151
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: OPLSS2021.Vale.operand ->
src: OPLSS2021.Vale.operand ->
k: (_: OPLSS2021.Vale.state -> Prims.prop) ->
s0: OPLSS2021.Vale.state
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"OPLSS2021.Vale.operand",
"OPLSS2021.Vale.state",
"Prims.prop",
"Prims.l_and",
"Prims.b2t",
"OPLSS2021.Vale.uu___is_OReg",
"Prims.l_Forall",
"OPLSS2021.Vale.nat64",
"Prims.l_imp",
"Prims.eq2",
"OPLSS2021.Vale.eval_operand",
"OPLSS2021.Vale.update_reg",
"OPLSS2021.Vale.__proj__OReg__item__r"
... | [] | false | false | false | true | true | let wp_Move (dst src: operand) (k: (state -> prop)) (s0: state) : prop =
| OReg? dst /\
(forall (x: nat64).
let sM = update_reg s0 (OReg?.r dst) x in
eval_operand dst sM == eval_operand src s0 ==> k sM) | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.normal | val normal (x: Type0) : Type0 | val normal (x: Type0) : Type0 | let normal (x:Type0) : Type0 =
norm [nbe;
iota;
zeta;
simplify;
primops;
delta_attr [`%qattr];
delta_only normal_steps] x | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 212,
"start_col": 0,
"start_line": 205
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Type0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.norm",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.nbe",
"FStar.Pervasives.iota",
"FStar.Pervasives.zeta",
"FStar.Pervasives.simplify",
"FStar.Pervasives.primops",
"FStar.Pervasives.delta_attr",
"Prims.string",
"Prims.Nil",
"FStar.Pervasives.delta_only",
"... | [] | false | false | false | true | true | let normal (x: Type0) : Type0 =
| norm [nbe; iota; zeta; simplify; primops; delta_attr [`%qattr]; delta_only normal_steps] x | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.hasWp_Move | val hasWp_Move (dst src: operand) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires wp_Move dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Mov64 dst src)) f0 s0 == Some sM /\ k sM) | val hasWp_Move (dst src: operand) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires wp_Move dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Mov64 dst src)) f0 s0 == Some sM /\ k sM) | let hasWp_Move (dst:operand) (src:operand) (k:state -> prop) (s0:state)
: Pure (state & fuel)
(requires wp_Move dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Mov64 dst src)) f0 s0 == Some sM /\ k sM)
= lemma_Move s0 dst src | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 163,
"start_col": 0,
"start_line": 159
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: OPLSS2021.Vale.operand ->
src: OPLSS2021.Vale.operand ->
k: (_: OPLSS2021.Vale.state -> Prims.prop) ->
s0: OPLSS2021.Vale.state
-> Prims.Pure (OPLSS2021.Vale.state * OPLSS2021.Vale.fuel) | Prims.Pure | [] | [] | [
"OPLSS2021.Vale.operand",
"OPLSS2021.Vale.state",
"Prims.prop",
"OPLSS2021.Vale.lemma_Move",
"FStar.Pervasives.Native.tuple2",
"OPLSS2021.Vale.fuel",
"OPLSS2021.ValeVC.wp_Move",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"OPLSS2021.Vale.eval_code",
"OPLSS2021.Vale.Ins",
"O... | [] | false | false | false | false | false | let hasWp_Move (dst src: operand) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires wp_Move dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Mov64 dst src)) f0 s0 == Some sM /\ k sM) =
| lemma_Move s0 dst src | false |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.key | val key : a: Spec.Agile.Cipher.cipher_alg -> Type0 | let key (a: cipher_alg) =
match a with
| AES128 | AES256 -> Spec.AES.aes_key (aes_alg_of_alg a)
| CHACHA20 -> Spec.Chacha20.key | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 33,
"end_line": 42,
"start_col": 0,
"start_line": 39
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | a: Spec.Agile.Cipher.cipher_alg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Agile.Cipher.cipher_alg",
"Spec.AES.aes_key",
"Spec.Agile.Cipher.aes_alg_of_alg",
"Spec.Chacha20.key"
] | [] | false | false | false | true | true | let key (a: cipher_alg) =
| match a with
| AES128 | AES256 -> Spec.AES.aes_key (aes_alg_of_alg a)
| CHACHA20 -> Spec.Chacha20.key | false | |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.key_length | val key_length (a: cipher_alg) : size_nat | val key_length (a: cipher_alg) : size_nat | let key_length (a: cipher_alg): size_nat =
match a with
| AES128 | AES256 -> Spec.AES.key_size (aes_alg_of_alg a)
| CHACHA20 -> Spec.Chacha20.size_key | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 37,
"start_col": 0,
"start_line": 34
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | a: Spec.Agile.Cipher.cipher_alg -> Lib.IntTypes.size_nat | Prims.Tot | [
"total"
] | [] | [
"Spec.Agile.Cipher.cipher_alg",
"Spec.AES.key_size",
"Spec.Agile.Cipher.aes_alg_of_alg",
"Spec.Chacha20.size_key",
"Lib.IntTypes.size_nat"
] | [] | false | false | false | true | false | let key_length (a: cipher_alg) : size_nat =
| match a with
| AES128 | AES256 -> Spec.AES.key_size (aes_alg_of_alg a)
| CHACHA20 -> Spec.Chacha20.size_key | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.wp_Add | val wp_Add (dst src: operand) (k: (state -> prop)) (s0: state) : prop | val wp_Add (dst src: operand) (k: (state -> prop)) (s0: state) : prop | let wp_Add (dst:operand) (src:operand) (k:state -> prop) (s0:state) : prop =
OReg? dst /\ eval_operand dst s0 + eval_operand src s0 < pow2_64 /\
(forall (x:nat64).
let sM = update_reg s0 (OReg?.r dst) x in
eval_operand dst sM == eval_operand dst s0 + eval_operand src s0 ==> k sM
) | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 178,
"start_col": 0,
"start_line": 173
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: OPLSS2021.Vale.operand ->
src: OPLSS2021.Vale.operand ->
k: (_: OPLSS2021.Vale.state -> Prims.prop) ->
s0: OPLSS2021.Vale.state
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"OPLSS2021.Vale.operand",
"OPLSS2021.Vale.state",
"Prims.prop",
"Prims.l_and",
"Prims.b2t",
"OPLSS2021.Vale.uu___is_OReg",
"Prims.op_LessThan",
"Prims.op_Addition",
"OPLSS2021.Vale.eval_operand",
"OPLSS2021.Vale.pow2_64",
"Prims.l_Forall",
"OPLSS2021.Vale.nat64",
"Prims.l_imp",
"Prims.eq2"... | [] | false | false | false | true | true | let wp_Add (dst src: operand) (k: (state -> prop)) (s0: state) : prop =
| OReg? dst /\ eval_operand dst s0 + eval_operand src s0 < pow2_64 /\
(forall (x: nat64).
let sM = update_reg s0 (OReg?.r dst) x in
eval_operand dst sM == eval_operand dst s0 + eval_operand src s0 ==> k sM) | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.inst_Triple | val inst_Triple:with_wps codes_Triple | val inst_Triple:with_wps codes_Triple | let inst_Triple : with_wps codes_Triple = //A typeclass instance for our program
QSeq (inst_Move (OReg Rbx) (OReg Rax)) (
QSeq (inst_Add (OReg Rax) (OReg Rbx)) (
QSeq (inst_Add (OReg Rbx) (OReg Rax)) (
QEmpty))) | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 236,
"start_col": 0,
"start_line": 231
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | OPLSS2021.ValeVC.with_wps OPLSS2021.Vale.codes_Triple | Prims.Tot | [
"total"
] | [] | [
"OPLSS2021.ValeVC.QSeq",
"OPLSS2021.Vale.Ins",
"OPLSS2021.Vale.Mov64",
"OPLSS2021.Vale.OReg",
"OPLSS2021.Vale.Rbx",
"OPLSS2021.Vale.Rax",
"Prims.Cons",
"OPLSS2021.Vale.code",
"OPLSS2021.Vale.Add64",
"Prims.Nil",
"OPLSS2021.ValeVC.inst_Move",
"OPLSS2021.ValeVC.inst_Add",
"OPLSS2021.ValeVC.QEm... | [] | false | false | false | true | false | let inst_Triple:with_wps codes_Triple =
| QSeq (inst_Move (OReg Rbx) (OReg Rax))
(QSeq (inst_Add (OReg Rax) (OReg Rbx)) (QSeq (inst_Add (OReg Rbx) (OReg Rax)) (QEmpty))) | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.hasWp_Add | val hasWp_Add (dst src: operand) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires wp_Add dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Add64 dst src)) f0 s0 == Some sM /\ k sM) | val hasWp_Add (dst src: operand) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires wp_Add dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Add64 dst src)) f0 s0 == Some sM /\ k sM) | let hasWp_Add (dst:operand) (src:operand) (k:state -> prop) (s0:state)
: Pure (state & fuel)
(requires wp_Add dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Add64 dst src)) f0 s0 == Some sM /\ k sM)
= lemma_Add s0 dst src | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 184,
"start_col": 0,
"start_line": 180
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
dst: OPLSS2021.Vale.operand ->
src: OPLSS2021.Vale.operand ->
k: (_: OPLSS2021.Vale.state -> Prims.prop) ->
s0: OPLSS2021.Vale.state
-> Prims.Pure (OPLSS2021.Vale.state * OPLSS2021.Vale.fuel) | Prims.Pure | [] | [] | [
"OPLSS2021.Vale.operand",
"OPLSS2021.Vale.state",
"Prims.prop",
"OPLSS2021.Vale.lemma_Add",
"FStar.Pervasives.Native.tuple2",
"OPLSS2021.Vale.fuel",
"OPLSS2021.ValeVC.wp_Add",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"OPLSS2021.Vale.eval_code",
"OPLSS2021.Vale.Ins",
"OPL... | [] | false | false | false | false | false | let hasWp_Add (dst src: operand) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires wp_Add dst src k s0)
(ensures fun (sM, f0) -> eval_code (Ins (Add64 dst src)) f0 s0 == Some sM /\ k sM) =
| lemma_Add s0 dst src | false |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.block | val block : a: Spec.Agile.Cipher.cipher_alg -> Type0 | let block a = lbytes (block_length a) | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 49,
"start_col": 0,
"start_line": 49
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | a: Spec.Agile.Cipher.cipher_alg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Agile.Cipher.cipher_alg",
"Lib.ByteSequence.lbytes",
"Spec.Agile.Cipher.block_length"
] | [] | false | false | false | true | true | let block a =
| lbytes (block_length a) | false | |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.block_length | val block_length : a: Spec.Agile.Cipher.cipher_alg -> Prims.int | let block_length (a:cipher_alg) =
match a with
| AES128 | AES256 -> 16
| CHACHA20 -> 64 | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 18,
"end_line": 47,
"start_col": 0,
"start_line": 44
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 | a: Spec.Agile.Cipher.cipher_alg -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Spec.Agile.Cipher.cipher_alg",
"Prims.int"
] | [] | false | false | false | true | false | let block_length (a: cipher_alg) =
| match a with
| AES128 | AES256 -> 16
| CHACHA20 -> 64 | false | |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.vc_sound_norm | val vc_sound_norm (cs: list code) (qcs: with_wps cs) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires normal (vc_gen cs qcs k s0))
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) | val vc_sound_norm (cs: list code) (qcs: with_wps cs) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires normal (vc_gen cs qcs k s0))
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) | let vc_sound_norm
(cs:list code)
(qcs:with_wps cs)
(k:state -> prop)
(s0:state)
: Pure (state & fuel)
(requires
normal (vc_gen cs qcs k s0))
(ensures fun (sN, fN) ->
eval_code (Block cs) fN s0 == Some sN /\ k sN)
= vc_sound cs qcs k s0 | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 24,
"end_line": 224,
"start_col": 0,
"start_line": 214
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
cs: Prims.list OPLSS2021.Vale.code ->
qcs: OPLSS2021.ValeVC.with_wps cs ->
k: (_: OPLSS2021.Vale.state -> Prims.prop) ->
s0: OPLSS2021.Vale.state
-> Prims.Pure (OPLSS2021.Vale.state * OPLSS2021.Vale.fuel) | Prims.Pure | [] | [] | [
"Prims.list",
"OPLSS2021.Vale.code",
"OPLSS2021.ValeVC.with_wps",
"OPLSS2021.Vale.state",
"Prims.prop",
"OPLSS2021.ValeVC.vc_sound",
"FStar.Pervasives.Native.tuple2",
"OPLSS2021.Vale.fuel",
"OPLSS2021.ValeVC.normal",
"OPLSS2021.ValeVC.vc_gen",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Na... | [] | false | false | false | false | false | let vc_sound_norm (cs: list code) (qcs: with_wps cs) (k: (state -> prop)) (s0: state)
: Pure (state & fuel)
(requires normal (vc_gen cs qcs k s0))
(ensures fun (sN, fN) -> eval_code (Block cs) fN s0 == Some sN /\ k sN) =
| vc_sound cs qcs k s0 | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.lemma_Triple_opt | val lemma_Triple_opt (s0: state)
: Pure (state & fuel)
(requires s0 Rax < 100)
(ensures
fun (sM, f0) ->
eval_code (Block codes_Triple) f0 s0 == Some sM /\ sM Rbx == 3 * s0 Rax /\
sM `feq` (update_state Rbx sM (update_state Rax sM s0))) | val lemma_Triple_opt (s0: state)
: Pure (state & fuel)
(requires s0 Rax < 100)
(ensures
fun (sM, f0) ->
eval_code (Block codes_Triple) f0 s0 == Some sM /\ sM Rbx == 3 * s0 Rax /\
sM `feq` (update_state Rbx sM (update_state Rax sM s0))) | let lemma_Triple_opt (s0:state)
: Pure (state & fuel)
(requires
s0 Rax < 100)
(ensures fun (sM, f0) ->
eval_code (Block codes_Triple) f0 s0 == Some sM /\
sM Rbx == 3 * s0 Rax /\
sM `feq` update_state Rbx sM (update_state Rax sM s0))
=
// Optimized VC generation:
vc_sound_norm
... | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 6,
"end_line": 275,
"start_col": 0,
"start_line": 261
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s0: OPLSS2021.Vale.state -> Prims.Pure (OPLSS2021.Vale.state * OPLSS2021.Vale.fuel) | Prims.Pure | [] | [] | [
"OPLSS2021.Vale.state",
"OPLSS2021.ValeVC.vc_sound_norm",
"OPLSS2021.Vale.codes_Triple",
"OPLSS2021.ValeVC.inst_Triple",
"Prims.l_and",
"Prims.eq2",
"Prims.int",
"OPLSS2021.Vale.Rbx",
"FStar.Mul.op_Star",
"OPLSS2021.Vale.Rax",
"OPLSS2021.ValeVC.state_eq",
"OPLSS2021.Vale.update_state",
"Prim... | [] | false | false | false | false | false | let lemma_Triple_opt (s0: state)
: Pure (state & fuel)
(requires s0 Rax < 100)
(ensures
fun (sM, f0) ->
eval_code (Block codes_Triple) f0 s0 == Some sM /\ sM Rbx == 3 * s0 Rax /\
sM `feq` (update_state Rbx sM (update_state Rax sM s0))) =
| vc_sound_norm codes_Triple
inst_Triple
(fun sM -> sM Rbx == 3 * s0 Rax /\ state_eq sM (update_state Rax sM (update_state Rbx sM s0)))
s0 | false |
OPLSS2021.ValeVC.fst | OPLSS2021.ValeVC.state_eq | val state_eq (s0 s1: state) : Pure Type0 (requires True) (ensures fun b -> b ==> s0 `feq` s1) | val state_eq (s0 s1: state) : Pure Type0 (requires True) (ensures fun b -> b ==> s0 `feq` s1) | let state_eq (s0 s1:state) : Pure Type0
(requires True)
(ensures fun b -> b ==> s0 `feq` s1)
=
s0 Rax == s1 Rax /\
s0 Rbx == s1 Rbx /\
s0 Rcx == s1 Rcx /\
s0 Rdx == s1 Rdx | {
"file_name": "examples/oplss2021/OPLSS2021.ValeVC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 18,
"end_line": 259,
"start_col": 0,
"start_line": 252
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"OPLSS2021.Vale.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.FunctionalExtensionality.fsti.checked"
],
"interface_file": false,
"source_file": "OPLSS20... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.FunctionalExtensionality",
"short_module": null
},
{
"abbrev": false,
"full_module": "OPLSS2021.Vale",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s0: OPLSS2021.Vale.state -> s1: OPLSS2021.Vale.state -> Prims.Pure Type0 | Prims.Pure | [] | [] | [
"OPLSS2021.Vale.state",
"Prims.l_and",
"Prims.eq2",
"OPLSS2021.Vale.nat64",
"OPLSS2021.Vale.Rax",
"OPLSS2021.Vale.Rbx",
"OPLSS2021.Vale.Rcx",
"OPLSS2021.Vale.Rdx",
"Prims.l_True",
"Prims.l_imp",
"FStar.FunctionalExtensionality.feq",
"OPLSS2021.Vale.reg"
] | [] | false | false | false | false | true | let state_eq (s0 s1: state) : Pure Type0 (requires True) (ensures fun b -> b ==> s0 `feq` s1) =
| s0 Rax == s1 Rax /\ s0 Rbx == s1 Rbx /\ s0 Rcx == s1 Rcx /\ s0 Rdx == s1 Rdx | false |
Spec.Agile.Cipher.fsti | Spec.Agile.Cipher.ctr_stream | val ctr_stream (a: cipher_alg) (k: key a) (iv: nonce a) (len: size_nat) : b: bytes{length b = len} | val ctr_stream (a: cipher_alg) (k: key a) (iv: nonce a) (len: size_nat) : b: bytes{length b = len} | let ctr_stream (a: cipher_alg) (k: key a) (iv: nonce a) (len: size_nat):
b:bytes { length b = len }
=
// JP: useful? be overconservative and always do + 1? would necessitate a
// little bit of reasoning on the implementation side, perhaps better to have
// a tighter bound here
let n_blocks: n:nat { n * block_... | {
"file_name": "specs/Spec.Agile.Cipher.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 24,
"end_line": 90,
"start_col": 0,
"start_line": 70
} | module Spec.Agile.Cipher
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
#reset-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 1"
/// This module is concerned with defining an agile stream cipher, i.e. a
/// function that given: a key; an iv (nonce); a counter, produces a fresh
/// block. W... | {
"checked_file": "/",
"dependencies": [
"Spec.Chacha20.fst.checked",
"Spec.AES.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Per... | [
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"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 |
a: Spec.Agile.Cipher.cipher_alg ->
k: Spec.Agile.Cipher.key a ->
iv: Spec.Agile.Cipher.nonce a ->
len: Lib.IntTypes.size_nat
-> b: Lib.ByteSequence.bytes{Lib.Sequence.length b = len} | Prims.Tot | [
"total"
] | [] | [
"Spec.Agile.Cipher.cipher_alg",
"Spec.Agile.Cipher.key",
"Spec.Agile.Cipher.nonce",
"Lib.IntTypes.size_nat",
"Lib.Sequence.seq",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.eq2",
"Prims.int",
"Lib.Sequence.length",
"FStar.Mul.op_Star",
"Spec.Agile.Cipher.block_length... | [] | false | false | false | false | false | let ctr_stream (a: cipher_alg) (k: key a) (iv: nonce a) (len: size_nat) : b: bytes{length b = len} =
| let n_blocks:n: nat{n * block_length a >= len} =
if len % block_length a = 0 then len / block_length a else len / block_length a + 1
in
let (), blocks =
generate_blocks (block_length a)
max_size_t
n_blocks
(fun _ -> unit)
(fun i _ -> (), ctr_block a k iv i)
()
in
Seq.slice blocks 0 len | false |
FStar.Tactics.Simplifier.fst | FStar.Tactics.Simplifier.step | val step: Prims.unit -> Tac unit | val step: Prims.unit -> Tac unit | let step () : Tac unit =
apply_lemma (`lem_iff_trans) | {
"file_name": "ulib/FStar.Tactics.Simplifier.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 38,
"start_col": 0,
"start_line": 37
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Formula.fst.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file":... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.Const",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Formula",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.unit",
"FStar.Tactics.V2.Derived.apply_lemma"
] | [] | false | true | false | false | false | let step () : Tac unit =
| apply_lemma (`lem_iff_trans) | false |
EverParse3d.Actions.Base.fst | EverParse3d.Actions.Base.validate_dep_pair_with_refinement_and_action' | val validate_dep_pair_with_refinement_and_action'
(name1: string)
(#nz1: _)
(#k1: parser_kind nz1 _)
(#t1: _)
(#p1: parser k1 t1)
(#inv1 #disj1 #l1: _)
(v1: validate_with_action_t p1 inv1 disj1 l1 true)
(r1: leaf_reader p1)
(f: (t1 -> bool))
(#inv1' #disj1' #l... | val validate_dep_pair_with_refinement_and_action'
(name1: string)
(#nz1: _)
(#k1: parser_kind nz1 _)
(#t1: _)
(#p1: parser k1 t1)
(#inv1 #disj1 #l1: _)
(v1: validate_with_action_t p1 inv1 disj1 l1 true)
(r1: leaf_reader p1)
(f: (t1 -> bool))
(#inv1' #disj1' #l... | let validate_dep_pair_with_refinement_and_action'
(name1: string)
(#nz1: _) (#k1:parser_kind nz1 _) (#t1: _) (#p1:parser k1 t1)
(#inv1 #disj1 #l1: _) (v1:validate_with_action_t p1 inv1 disj1 l1 true) (r1: leaf_reader p1)
(f: t1 -> bool)
(#inv1' #disj1' #l1' #b: _) (a:t1 -> action inv1' dis... | {
"file_name": "src/3d/prelude/EverParse3d.Actions.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 9,
"end_line": 532,
"start_col": 0,
"start_line": 482
} | module EverParse3d.Actions.Base
friend EverParse3d.Kinds
friend EverParse3d.Prelude
open FStar.HyperStack.ST
open LowStar.Buffer
open LowStar.BufferOps
module B = LowStar.Buffer
module I = EverParse3d.InputStream.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module CP = EverParse3d.CopyBuffer
modul... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Comment.fsti.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.List.fsti.checked",
"LowParse.Spec.FLData.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec... | [
{
"abbrev": true,
"full_module": "LowParse.Spec.Combinators",
"short_module": "LPC"
},
{
"abbrev": true,
"full_module": "LowParse.Low.Base",
"short_module": "LPL"
},
{
"abbrev": true,
"full_module": "LowParse.Spec.Base",
"short_module": "LP"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"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 |
name1: Prims.string ->
v1: EverParse3d.Actions.Base.validate_with_action_t p1 inv1 disj1 l1 true ->
r1: EverParse3d.Actions.Base.leaf_reader p1 ->
f: (_: t1 -> Prims.bool) ->
a: (_: t1 -> EverParse3d.Actions.Base.action inv1' disj1' l1' b Prims.bool) ->
v2:
(x: EverParse3d.Prelude.refine ... | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"Prims.bool",
"EverParse3d.Kinds.parser_kind",
"EverParse3d.Kinds.WeakKindStrongPrefix",
"EverParse3d.Prelude.parser",
"EverParse3d.Actions.Base.slice_inv",
"EverParse3d.Actions.Base.disjointness_pre",
"EverParse3d.Actions.Base.eloc",
"EverParse3d.Actions.Base.validate_with_action_t"... | [] | false | false | false | false | false | let validate_dep_pair_with_refinement_and_action'
(name1: string)
(#nz1: _)
(#k1: parser_kind nz1 _)
(#t1: _)
(#p1: parser k1 t1)
(#inv1 #disj1 #l1: _)
(v1: validate_with_action_t p1 inv1 disj1 l1 true)
(r1: leaf_reader p1)
(f: (t1 -> bool))
(#inv1' #disj1' #l... | fun ctxt error_handler_fn input input_length startPosition ->
let h0 = HST.get () in
LPC.parse_dtuple2_eq' #_ #_ (p1 `LPC.parse_filter` f) #_ #t2 p2 (I.get_remaining input h0);
LPC.parse_filter_eq p1 f (I.get_remaining input h0);
[@@ (rename_let ("positionAfter" ^ name1)) ]let res =
v1 ctxt error_handler_fn... | false |
FStar.Tactics.Simplifier.fst | FStar.Tactics.Simplifier.tiff | val tiff: Prims.unit -> Tac unit | val tiff: Prims.unit -> Tac unit | let tiff () : Tac unit =
apply_lemma (`lem_iff_refl) | {
"file_name": "ulib/FStar.Tactics.Simplifier.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 35,
"start_col": 0,
"start_line": 34
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Formula.fst.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file":... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.Const",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Formula",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.unit",
"FStar.Tactics.V2.Derived.apply_lemma"
] | [] | false | true | false | false | false | let tiff () : Tac unit =
| apply_lemma (`lem_iff_refl) | false |
FStar.Tactics.Simplifier.fst | FStar.Tactics.Simplifier.is_true | val is_true : term -> Tac bool | val is_true : term -> Tac bool | let is_true t =
begin match term_as_formula' t with
| True_ -> true
| _ -> begin match inspect t with
| Tv_App l r ->
begin match inspect l with
| Tv_Abs b t ->
begin match term_as_formula' t with
| True_ -> true
| _ -> false... | {
"file_name": "ulib/FStar.Tactics.Simplifier.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 173,
"start_col": 0,
"start_line": 158
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Reflection.V2.Formula.fst.checked",
"FStar.Reflection.Const.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file":... | [
{
"abbrev": false,
"full_module": "FStar.Reflection.Const",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2.Formula",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac Prims.bool | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.NamedView.term",
"Prims.bool",
"FStar.Reflection.V2.Formula.formula",
"FStar.Stubs.Reflection.V2.Data.argv",
"FStar.Tactics.NamedView.binder",
"FStar.Reflection.V2.Formula.term_as_formula'",
"FStar.Tactics.NamedView.named_term_view",
"FStar.Tactics.NamedView.inspect"
] | [] | false | true | false | false | false | let is_true t =
| match term_as_formula' t with
| True_ -> true
| _ ->
match inspect t with
| Tv_App l r ->
(match inspect l with
| Tv_Abs b t ->
(match term_as_formula' t with
| True_ -> true
| _ -> false)
| _ -> false)
| _ -> false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.