effect
stringclasses 48
values | original_source_type
stringlengths 0
23k
| opens_and_abbrevs
listlengths 2
92
| isa_cross_project_example
bool 1
class | source_definition
stringlengths 9
57.9k
| partial_definition
stringlengths 7
23.3k
| is_div
bool 2
classes | is_type
null | is_proof
bool 2
classes | completed_definiton
stringlengths 1
250k
| dependencies
dict | effect_flags
sequencelengths 0
2
| ideal_premises
sequencelengths 0
236
| mutual_with
sequencelengths 0
11
| file_context
stringlengths 0
407k
| interleaved
bool 1
class | is_simply_typed
bool 2
classes | file_name
stringlengths 5
48
| vconfig
dict | is_simple_lemma
null | source_type
stringlengths 10
23k
| proof_features
sequencelengths 0
1
| name
stringlengths 8
95
| source
dict | verbose_type
stringlengths 1
7.42k
| source_range
dict |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let vale_save_xmm (r:MS.reg_xmm) (s0 s1:V.va_state) =
VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1 | let vale_save_xmm (r: MS.reg_xmm) (s0 s1: V.va_state) = | false | null | false | VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1 | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Vale.X64.Machine_s.reg_xmm",
"Vale.X64.Decls.va_state",
"Prims.eq2",
"Vale.X64.Memory.quad32",
"Vale.X64.State.eval_reg_xmm",
"Prims.logical"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__]
let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom
let vale_save_reg (r:MS.reg_64) (s0 s1:V.va_state) =
VS.eval_reg_64 r s0 == VS.eval_reg_64 r s1 | false | true | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val vale_save_xmm : r: Vale.X64.Machine_s.reg_xmm -> s0: Vale.X64.Decls.va_state -> s1: Vale.X64.Decls.va_state
-> Prims.logical | [] | Vale.AsLowStar.ValeSig.vale_save_xmm | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | r: Vale.X64.Machine_s.reg_xmm -> s0: Vale.X64.Decls.va_state -> s1: Vale.X64.Decls.va_state
-> Prims.logical | {
"end_col": 46,
"end_line": 42,
"start_col": 2,
"start_line": 42
} |
|
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom | let vale_pre (dom: list td) = | false | null | false | code: V.va_code -> vale_pre_tl dom | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Prims.list",
"Vale.Interop.Base.td",
"Vale.X64.Decls.va_code",
"Vale.AsLowStar.ValeSig.vale_pre_tl"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__] | false | true | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val vale_pre : dom: Prims.list Vale.Interop.Base.td -> Type | [] | Vale.AsLowStar.ValeSig.vale_pre | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dom: Prims.list Vale.Interop.Base.td -> Type | {
"end_col": 19,
"end_line": 26,
"start_col": 4,
"start_line": 25
} |
|
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let vale_calling_conventions
(s0 s1:V.va_state)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool) =
let open MS in
s1.VS.vs_ok /\
vale_save_reg MS.rRsp s0 s1 /\
(forall (r:MS.reg_64).
not (regs_modified r) ==> vale_save_reg r s0 s1) /\
(forall (x:MS.reg_xmm).
not (xmms_modified x) ==> vale_save_xmm x s0 s1) | let vale_calling_conventions
(s0 s1: V.va_state)
(regs_modified: (MS.reg_64 -> bool))
(xmms_modified: (MS.reg_xmm -> bool))
= | false | null | false | let open MS in
s1.VS.vs_ok /\ vale_save_reg MS.rRsp s0 s1 /\
(forall (r: MS.reg_64). not (regs_modified r) ==> vale_save_reg r s0 s1) /\
(forall (x: MS.reg_xmm). not (xmms_modified x) ==> vale_save_xmm x s0 s1) | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Vale.X64.Decls.va_state",
"Vale.X64.Machine_s.reg_64",
"Prims.bool",
"Vale.X64.Machine_s.reg_xmm",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.State.__proj__Mkvale_state__item__vs_ok",
"Vale.AsLowStar.ValeSig.vale_save_reg",
"Vale.X64.Machine_s.rRsp",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.op_Negation",
"Vale.AsLowStar.ValeSig.vale_save_xmm",
"Prims.logical"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__]
let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom
let vale_save_reg (r:MS.reg_64) (s0 s1:V.va_state) =
VS.eval_reg_64 r s0 == VS.eval_reg_64 r s1
let vale_save_xmm (r:MS.reg_xmm) (s0 s1:V.va_state) =
VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1
let vale_calling_conventions
(s0 s1:V.va_state)
(regs_modified:MS.reg_64 -> bool) | false | true | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val vale_calling_conventions : s0: Vale.X64.Decls.va_state ->
s1: Vale.X64.Decls.va_state ->
regs_modified: (_: Vale.X64.Machine_s.reg_64 -> Prims.bool) ->
xmms_modified: (_: Vale.X64.Machine_s.reg_xmm -> Prims.bool)
-> Prims.logical | [] | Vale.AsLowStar.ValeSig.vale_calling_conventions | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
s0: Vale.X64.Decls.va_state ->
s1: Vale.X64.Decls.va_state ->
regs_modified: (_: Vale.X64.Machine_s.reg_64 -> Prims.bool) ->
xmms_modified: (_: Vale.X64.Machine_s.reg_xmm -> Prims.bool)
-> Prims.logical | {
"end_col": 52,
"end_line": 54,
"start_col": 2,
"start_line": 48
} |
|
Prims.Tot | val elim_vale_sig_nil
(#code: _)
(#regs_modified: (MS.reg_64 -> bool))
(#xmms_modified: (MS.reg_xmm -> bool))
(#args: list arg)
(#pre: vale_pre_tl [])
(#post: vale_post_tl [])
(v: vale_sig_tl regs_modified xmms_modified #[] args code pre post)
: vale_sig_nil regs_modified xmms_modified args code pre post | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let elim_vale_sig_nil #code
(#regs_modified:MS.reg_64 -> bool)
(#xmms_modified:MS.reg_xmm -> bool)
(#args:list arg)
(#pre:vale_pre_tl [])
(#post:vale_post_tl [])
(v:vale_sig_tl regs_modified xmms_modified #[] args code pre post)
: vale_sig_nil regs_modified xmms_modified args code pre post
= v | val elim_vale_sig_nil
(#code: _)
(#regs_modified: (MS.reg_64 -> bool))
(#xmms_modified: (MS.reg_xmm -> bool))
(#args: list arg)
(#pre: vale_pre_tl [])
(#post: vale_post_tl [])
(v: vale_sig_tl regs_modified xmms_modified #[] args code pre post)
: vale_sig_nil regs_modified xmms_modified args code pre post
let elim_vale_sig_nil
#code
(#regs_modified: (MS.reg_64 -> bool))
(#xmms_modified: (MS.reg_xmm -> bool))
(#args: list arg)
(#pre: vale_pre_tl [])
(#post: vale_post_tl [])
(v: vale_sig_tl regs_modified xmms_modified #[] args code pre post)
: vale_sig_nil regs_modified xmms_modified args code pre post = | false | null | false | v | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Machine_s.reg_64",
"Prims.bool",
"Vale.X64.Machine_s.reg_xmm",
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.ValeSig.vale_pre_tl",
"Prims.Nil",
"Vale.Interop.Base.td",
"Vale.AsLowStar.ValeSig.vale_post_tl",
"Vale.AsLowStar.ValeSig.vale_sig_tl",
"Vale.AsLowStar.ValeSig.vale_sig_nil"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__]
let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom
let vale_save_reg (r:MS.reg_64) (s0 s1:V.va_state) =
VS.eval_reg_64 r s0 == VS.eval_reg_64 r s1
let vale_save_xmm (r:MS.reg_xmm) (s0 s1:V.va_state) =
VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1
let vale_calling_conventions
(s0 s1:V.va_state)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool) =
let open MS in
s1.VS.vs_ok /\
vale_save_reg MS.rRsp s0 s1 /\
(forall (r:MS.reg_64).
not (regs_modified r) ==> vale_save_reg r s0 s1) /\
(forall (x:MS.reg_xmm).
not (xmms_modified x) ==> vale_save_xmm x s0 s1)
[@__reduce__]
let modified_arg_mloc (x:arg) : GTot ME.loc =
match x with
| (|TD_Buffer src t {modified=true}, x|) -> ME.loc_buffer (as_vale_buffer #src #t x)
| _ -> ME.loc_none
[@__reduce__]
let mloc_modified_args (args:list arg) : GTot ME.loc =
List.fold_right_gtot (List.map_gtot modified_arg_mloc args) ME.loc_union ME.loc_none
let state_of (x:(V.va_state & V.va_fuel)) = fst x
let fuel_of (x:(V.va_state & V.va_fuel)) = snd x
let sprop = VS.vale_state -> prop
[@__reduce__]
let readable_one (s:ME.vale_heap) (arg:arg) : prop =
match arg with
| (|TD_Buffer src bt _, x |) ->
ME.buffer_readable s (as_vale_buffer #src #bt x) /\
ME.buffer_writeable (as_vale_buffer #src #bt x)
/\ True //promote to prop
| (|TD_ImmBuffer src bt _, x |) ->
ME.buffer_readable s (as_vale_immbuffer #src #bt x) /\
True
| _ -> True
[@__reduce__]
let readable (args:list arg) (s:ME.vale_heap) : prop =
BigOps.big_and' (readable_one s) args
[@__reduce__]
let disjoint_or_eq_1 (a:arg) (b:arg) =
match a, b with
| (| TD_Buffer srcx tx {strict_disjointness=true}, xb |), (| TD_Buffer srcy ty _, yb |)
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_ImmBuffer srcx tx {strict_disjointness=true}, xb |), (| TD_ImmBuffer srcy ty _, yb |)
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
// An immutable buffer and a trivial buffer should not be equal
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb)) \/
xb === yb
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb)) \/
xb === yb
| _ -> True
[@__reduce__]
let disjoint_or_eq (l:list arg) =
BigOps.pairwise_and' disjoint_or_eq_1 l
[@__reduce__] unfold
let vale_sig_nil
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(args:list arg)
(code:V.va_code)
(pre:vale_pre_tl [])
(post:vale_post_tl []) =
va_s0:V.va_state ->
Ghost (V.va_state & V.va_fuel)
(requires
elim_nil pre va_s0)
(ensures (fun r ->
let va_s1 = state_of r in
let f = fuel_of r in
V.eval_code code va_s0 f va_s1 /\
vale_calling_conventions va_s0 va_s1 regs_modified xmms_modified /\
elim_nil post va_s0 va_s1 f /\
readable args (ME.get_vale_heap va_s1.VS.vs_heap) /\
ME.modifies (mloc_modified_args args) (VS.vs_get_vale_heap va_s0) (VS.vs_get_vale_heap va_s1)))
[@__reduce__]
let rec vale_sig_tl (regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(#dom:list td)
(args:list arg)
(code:V.va_code)
(pre:vale_pre_tl dom)
(post:vale_post_tl dom)
: Type =
match dom with
| [] ->
vale_sig_nil regs_modified xmms_modified args code pre post
| hd::tl ->
x:td_as_type hd ->
vale_sig_tl regs_modified xmms_modified #tl ((|hd,x|)::args) code (elim_1 pre x) (elim_1 post x)
[@__reduce__]
let elim_vale_sig_nil #code
(#regs_modified:MS.reg_64 -> bool)
(#xmms_modified:MS.reg_xmm -> bool)
(#args:list arg)
(#pre:vale_pre_tl [])
(#post:vale_post_tl [])
(v:vale_sig_tl regs_modified xmms_modified #[] args code pre post) | false | false | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val elim_vale_sig_nil
(#code: _)
(#regs_modified: (MS.reg_64 -> bool))
(#xmms_modified: (MS.reg_xmm -> bool))
(#args: list arg)
(#pre: vale_pre_tl [])
(#post: vale_post_tl [])
(v: vale_sig_tl regs_modified xmms_modified #[] args code pre post)
: vale_sig_nil regs_modified xmms_modified args code pre post | [] | Vale.AsLowStar.ValeSig.elim_vale_sig_nil | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | v: Vale.AsLowStar.ValeSig.vale_sig_tl regs_modified xmms_modified args code pre post
-> Vale.AsLowStar.ValeSig.vale_sig_nil regs_modified xmms_modified args code pre post | {
"end_col": 7,
"end_line": 161,
"start_col": 6,
"start_line": 161
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom | let vale_post (dom: list td) = | false | null | false | code: V.va_code -> vale_post_tl dom | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Prims.list",
"Vale.Interop.Base.td",
"Vale.X64.Decls.va_code",
"Vale.AsLowStar.ValeSig.vale_post_tl"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__] | false | true | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val vale_post : dom: Prims.list Vale.Interop.Base.td -> Type | [] | Vale.AsLowStar.ValeSig.vale_post | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dom: Prims.list Vale.Interop.Base.td -> Type | {
"end_col": 20,
"end_line": 36,
"start_col": 4,
"start_line": 35
} |
|
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let vale_sig_stdcall #dom = vale_sig #dom IX64.regs_modified_stdcall IX64.xmms_modified_stdcall | let vale_sig_stdcall #dom = | false | null | false | vale_sig #dom IX64.regs_modified_stdcall IX64.xmms_modified_stdcall | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Prims.list",
"Vale.Interop.Base.td",
"Vale.AsLowStar.ValeSig.vale_sig",
"Vale.Interop.X64.regs_modified_stdcall",
"Vale.Interop.X64.xmms_modified_stdcall",
"Vale.AsLowStar.ValeSig.vale_pre",
"Vale.AsLowStar.ValeSig.vale_post"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__]
let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom
let vale_save_reg (r:MS.reg_64) (s0 s1:V.va_state) =
VS.eval_reg_64 r s0 == VS.eval_reg_64 r s1
let vale_save_xmm (r:MS.reg_xmm) (s0 s1:V.va_state) =
VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1
let vale_calling_conventions
(s0 s1:V.va_state)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool) =
let open MS in
s1.VS.vs_ok /\
vale_save_reg MS.rRsp s0 s1 /\
(forall (r:MS.reg_64).
not (regs_modified r) ==> vale_save_reg r s0 s1) /\
(forall (x:MS.reg_xmm).
not (xmms_modified x) ==> vale_save_xmm x s0 s1)
[@__reduce__]
let modified_arg_mloc (x:arg) : GTot ME.loc =
match x with
| (|TD_Buffer src t {modified=true}, x|) -> ME.loc_buffer (as_vale_buffer #src #t x)
| _ -> ME.loc_none
[@__reduce__]
let mloc_modified_args (args:list arg) : GTot ME.loc =
List.fold_right_gtot (List.map_gtot modified_arg_mloc args) ME.loc_union ME.loc_none
let state_of (x:(V.va_state & V.va_fuel)) = fst x
let fuel_of (x:(V.va_state & V.va_fuel)) = snd x
let sprop = VS.vale_state -> prop
[@__reduce__]
let readable_one (s:ME.vale_heap) (arg:arg) : prop =
match arg with
| (|TD_Buffer src bt _, x |) ->
ME.buffer_readable s (as_vale_buffer #src #bt x) /\
ME.buffer_writeable (as_vale_buffer #src #bt x)
/\ True //promote to prop
| (|TD_ImmBuffer src bt _, x |) ->
ME.buffer_readable s (as_vale_immbuffer #src #bt x) /\
True
| _ -> True
[@__reduce__]
let readable (args:list arg) (s:ME.vale_heap) : prop =
BigOps.big_and' (readable_one s) args
[@__reduce__]
let disjoint_or_eq_1 (a:arg) (b:arg) =
match a, b with
| (| TD_Buffer srcx tx {strict_disjointness=true}, xb |), (| TD_Buffer srcy ty _, yb |)
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_ImmBuffer srcx tx {strict_disjointness=true}, xb |), (| TD_ImmBuffer srcy ty _, yb |)
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
// An immutable buffer and a trivial buffer should not be equal
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb)) \/
xb === yb
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb)) \/
xb === yb
| _ -> True
[@__reduce__]
let disjoint_or_eq (l:list arg) =
BigOps.pairwise_and' disjoint_or_eq_1 l
[@__reduce__] unfold
let vale_sig_nil
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(args:list arg)
(code:V.va_code)
(pre:vale_pre_tl [])
(post:vale_post_tl []) =
va_s0:V.va_state ->
Ghost (V.va_state & V.va_fuel)
(requires
elim_nil pre va_s0)
(ensures (fun r ->
let va_s1 = state_of r in
let f = fuel_of r in
V.eval_code code va_s0 f va_s1 /\
vale_calling_conventions va_s0 va_s1 regs_modified xmms_modified /\
elim_nil post va_s0 va_s1 f /\
readable args (ME.get_vale_heap va_s1.VS.vs_heap) /\
ME.modifies (mloc_modified_args args) (VS.vs_get_vale_heap va_s0) (VS.vs_get_vale_heap va_s1)))
[@__reduce__]
let rec vale_sig_tl (regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(#dom:list td)
(args:list arg)
(code:V.va_code)
(pre:vale_pre_tl dom)
(post:vale_post_tl dom)
: Type =
match dom with
| [] ->
vale_sig_nil regs_modified xmms_modified args code pre post
| hd::tl ->
x:td_as_type hd ->
vale_sig_tl regs_modified xmms_modified #tl ((|hd,x|)::args) code (elim_1 pre x) (elim_1 post x)
[@__reduce__]
let elim_vale_sig_nil #code
(#regs_modified:MS.reg_64 -> bool)
(#xmms_modified:MS.reg_xmm -> bool)
(#args:list arg)
(#pre:vale_pre_tl [])
(#post:vale_post_tl [])
(v:vale_sig_tl regs_modified xmms_modified #[] args code pre post)
: vale_sig_nil regs_modified xmms_modified args code pre post
= v
[@__reduce__]
let elim_vale_sig_cons #code
(#regs_modified:MS.reg_64 -> bool)
(#xmms_modified:MS.reg_xmm -> bool)
(hd:td)
(tl:list td)
(args:list arg)
(pre:vale_pre_tl (hd::tl))
(post:vale_post_tl (hd::tl))
(v:vale_sig_tl regs_modified xmms_modified args code pre post)
: x:td_as_type hd
-> vale_sig_tl regs_modified xmms_modified ((|hd, x|)::args) code (elim_1 pre x) (elim_1 post x)
= v
[@__reduce__]
let vale_sig (#dom:list td)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(pre:vale_pre dom)
(post:vale_post dom)
: Type =
code:V.va_code ->
win:bool ->
vale_sig_tl
regs_modified
xmms_modified
[]
code
(pre code)
(post code) | false | false | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val vale_sig_stdcall : pre: Vale.AsLowStar.ValeSig.vale_pre dom -> post: Vale.AsLowStar.ValeSig.vale_post dom -> Type | [] | Vale.AsLowStar.ValeSig.vale_sig_stdcall | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | pre: Vale.AsLowStar.ValeSig.vale_pre dom -> post: Vale.AsLowStar.ValeSig.vale_post dom -> Type | {
"end_col": 95,
"end_line": 195,
"start_col": 28,
"start_line": 195
} |
|
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let vale_calling_conventions_stdcall (s0 s1:VS.vale_state) =
vale_calling_conventions s0 s1 IX64.regs_modified_stdcall IX64.xmms_modified_stdcall | let vale_calling_conventions_stdcall (s0 s1: VS.vale_state) = | false | null | false | vale_calling_conventions s0 s1 IX64.regs_modified_stdcall IX64.xmms_modified_stdcall | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Vale.X64.State.vale_state",
"Vale.AsLowStar.ValeSig.vale_calling_conventions",
"Vale.Interop.X64.regs_modified_stdcall",
"Vale.Interop.X64.xmms_modified_stdcall",
"Prims.logical"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__]
let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom
let vale_save_reg (r:MS.reg_64) (s0 s1:V.va_state) =
VS.eval_reg_64 r s0 == VS.eval_reg_64 r s1
let vale_save_xmm (r:MS.reg_xmm) (s0 s1:V.va_state) =
VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1
let vale_calling_conventions
(s0 s1:V.va_state)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool) =
let open MS in
s1.VS.vs_ok /\
vale_save_reg MS.rRsp s0 s1 /\
(forall (r:MS.reg_64).
not (regs_modified r) ==> vale_save_reg r s0 s1) /\
(forall (x:MS.reg_xmm).
not (xmms_modified x) ==> vale_save_xmm x s0 s1)
[@__reduce__]
let modified_arg_mloc (x:arg) : GTot ME.loc =
match x with
| (|TD_Buffer src t {modified=true}, x|) -> ME.loc_buffer (as_vale_buffer #src #t x)
| _ -> ME.loc_none
[@__reduce__]
let mloc_modified_args (args:list arg) : GTot ME.loc =
List.fold_right_gtot (List.map_gtot modified_arg_mloc args) ME.loc_union ME.loc_none
let state_of (x:(V.va_state & V.va_fuel)) = fst x
let fuel_of (x:(V.va_state & V.va_fuel)) = snd x
let sprop = VS.vale_state -> prop
[@__reduce__]
let readable_one (s:ME.vale_heap) (arg:arg) : prop =
match arg with
| (|TD_Buffer src bt _, x |) ->
ME.buffer_readable s (as_vale_buffer #src #bt x) /\
ME.buffer_writeable (as_vale_buffer #src #bt x)
/\ True //promote to prop
| (|TD_ImmBuffer src bt _, x |) ->
ME.buffer_readable s (as_vale_immbuffer #src #bt x) /\
True
| _ -> True
[@__reduce__]
let readable (args:list arg) (s:ME.vale_heap) : prop =
BigOps.big_and' (readable_one s) args
[@__reduce__]
let disjoint_or_eq_1 (a:arg) (b:arg) =
match a, b with
| (| TD_Buffer srcx tx {strict_disjointness=true}, xb |), (| TD_Buffer srcy ty _, yb |)
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_ImmBuffer srcx tx {strict_disjointness=true}, xb |), (| TD_ImmBuffer srcy ty _, yb |)
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
// An immutable buffer and a trivial buffer should not be equal
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb)) \/
xb === yb
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb)) \/
xb === yb
| _ -> True
[@__reduce__]
let disjoint_or_eq (l:list arg) =
BigOps.pairwise_and' disjoint_or_eq_1 l
[@__reduce__] unfold
let vale_sig_nil
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(args:list arg)
(code:V.va_code)
(pre:vale_pre_tl [])
(post:vale_post_tl []) =
va_s0:V.va_state ->
Ghost (V.va_state & V.va_fuel)
(requires
elim_nil pre va_s0)
(ensures (fun r ->
let va_s1 = state_of r in
let f = fuel_of r in
V.eval_code code va_s0 f va_s1 /\
vale_calling_conventions va_s0 va_s1 regs_modified xmms_modified /\
elim_nil post va_s0 va_s1 f /\
readable args (ME.get_vale_heap va_s1.VS.vs_heap) /\
ME.modifies (mloc_modified_args args) (VS.vs_get_vale_heap va_s0) (VS.vs_get_vale_heap va_s1)))
[@__reduce__]
let rec vale_sig_tl (regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(#dom:list td)
(args:list arg)
(code:V.va_code)
(pre:vale_pre_tl dom)
(post:vale_post_tl dom)
: Type =
match dom with
| [] ->
vale_sig_nil regs_modified xmms_modified args code pre post
| hd::tl ->
x:td_as_type hd ->
vale_sig_tl regs_modified xmms_modified #tl ((|hd,x|)::args) code (elim_1 pre x) (elim_1 post x)
[@__reduce__]
let elim_vale_sig_nil #code
(#regs_modified:MS.reg_64 -> bool)
(#xmms_modified:MS.reg_xmm -> bool)
(#args:list arg)
(#pre:vale_pre_tl [])
(#post:vale_post_tl [])
(v:vale_sig_tl regs_modified xmms_modified #[] args code pre post)
: vale_sig_nil regs_modified xmms_modified args code pre post
= v
[@__reduce__]
let elim_vale_sig_cons #code
(#regs_modified:MS.reg_64 -> bool)
(#xmms_modified:MS.reg_xmm -> bool)
(hd:td)
(tl:list td)
(args:list arg)
(pre:vale_pre_tl (hd::tl))
(post:vale_post_tl (hd::tl))
(v:vale_sig_tl regs_modified xmms_modified args code pre post)
: x:td_as_type hd
-> vale_sig_tl regs_modified xmms_modified ((|hd, x|)::args) code (elim_1 pre x) (elim_1 post x)
= v
[@__reduce__]
let vale_sig (#dom:list td)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(pre:vale_pre dom)
(post:vale_post dom)
: Type =
code:V.va_code ->
win:bool ->
vale_sig_tl
regs_modified
xmms_modified
[]
code
(pre code)
(post code)
[@__reduce__]
let vale_sig_stdcall #dom = vale_sig #dom IX64.regs_modified_stdcall IX64.xmms_modified_stdcall
[@__reduce__] | false | true | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val vale_calling_conventions_stdcall : s0: Vale.X64.State.vale_state -> s1: Vale.X64.State.vale_state -> Prims.logical | [] | Vale.AsLowStar.ValeSig.vale_calling_conventions_stdcall | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s0: Vale.X64.State.vale_state -> s1: Vale.X64.State.vale_state -> Prims.logical | {
"end_col": 86,
"end_line": 199,
"start_col": 2,
"start_line": 199
} |
|
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let disjoint_or_eq_1 (a:arg) (b:arg) =
match a, b with
| (| TD_Buffer srcx tx {strict_disjointness=true}, xb |), (| TD_Buffer srcy ty _, yb |)
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_ImmBuffer srcx tx {strict_disjointness=true}, xb |), (| TD_ImmBuffer srcy ty _, yb |)
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
// An immutable buffer and a trivial buffer should not be equal
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb)) \/
xb === yb
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb)) \/
xb === yb
| _ -> True | let disjoint_or_eq_1 (a b: arg) = | false | null | false | match a, b with
| (| TD_Buffer srcx tx { strict_disjointness = true } , xb |), (| TD_Buffer srcy ty _ , yb |)
| (| TD_Buffer srcx tx _ , xb |), (| TD_Buffer srcy ty { strict_disjointness = true } , yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb))
(ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_ImmBuffer srcx tx { strict_disjointness = true } , xb |), (| TD_ImmBuffer srcy ty _ , yb |)
| (| TD_ImmBuffer srcx tx _ , xb |), (| TD_ImmBuffer srcy ty { strict_disjointness = true } , yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb))
(ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
| (| TD_ImmBuffer srcx tx _ , xb |), (| TD_Buffer srcy ty _ , yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb))
(ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_Buffer srcx tx _ , xb |), (| TD_ImmBuffer srcy ty _ , yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb))
(ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
| (| TD_Buffer srcx tx _ , xb |), (| TD_Buffer srcy ty _ , yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb))
(ME.loc_buffer (as_vale_buffer #srcy #ty yb)) \/ xb === yb
| (| TD_ImmBuffer srcx tx _ , xb |), (| TD_ImmBuffer srcy ty _ , yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb))
(ME.loc_buffer (as_vale_immbuffer #srcy #ty yb)) \/ xb === yb
| _ -> True | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Vale.Interop.Base.arg",
"FStar.Pervasives.Native.Mktuple2",
"Prims.dtuple2",
"Vale.Interop.Base.td",
"Vale.Interop.Base.td_as_type",
"Vale.Arch.HeapTypes_s.base_typ",
"Prims.bool",
"Vale.Arch.HeapTypes_s.taint",
"Vale.Interop.Base.TD_Buffer",
"Vale.Interop.Base.Mkbuffer_qualifiers",
"Vale.Interop.Base.buffer_qualifiers",
"Vale.X64.Memory.loc_disjoint",
"Vale.X64.Memory.loc_buffer",
"Vale.X64.MemoryAdapters.as_vale_buffer",
"Vale.Interop.Base.TD_ImmBuffer",
"Vale.X64.MemoryAdapters.as_vale_immbuffer",
"Prims.l_or",
"Prims.op_Equals_Equals_Equals",
"FStar.Pervasives.Native.tuple2",
"Prims.l_True"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__]
let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom
let vale_save_reg (r:MS.reg_64) (s0 s1:V.va_state) =
VS.eval_reg_64 r s0 == VS.eval_reg_64 r s1
let vale_save_xmm (r:MS.reg_xmm) (s0 s1:V.va_state) =
VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1
let vale_calling_conventions
(s0 s1:V.va_state)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool) =
let open MS in
s1.VS.vs_ok /\
vale_save_reg MS.rRsp s0 s1 /\
(forall (r:MS.reg_64).
not (regs_modified r) ==> vale_save_reg r s0 s1) /\
(forall (x:MS.reg_xmm).
not (xmms_modified x) ==> vale_save_xmm x s0 s1)
[@__reduce__]
let modified_arg_mloc (x:arg) : GTot ME.loc =
match x with
| (|TD_Buffer src t {modified=true}, x|) -> ME.loc_buffer (as_vale_buffer #src #t x)
| _ -> ME.loc_none
[@__reduce__]
let mloc_modified_args (args:list arg) : GTot ME.loc =
List.fold_right_gtot (List.map_gtot modified_arg_mloc args) ME.loc_union ME.loc_none
let state_of (x:(V.va_state & V.va_fuel)) = fst x
let fuel_of (x:(V.va_state & V.va_fuel)) = snd x
let sprop = VS.vale_state -> prop
[@__reduce__]
let readable_one (s:ME.vale_heap) (arg:arg) : prop =
match arg with
| (|TD_Buffer src bt _, x |) ->
ME.buffer_readable s (as_vale_buffer #src #bt x) /\
ME.buffer_writeable (as_vale_buffer #src #bt x)
/\ True //promote to prop
| (|TD_ImmBuffer src bt _, x |) ->
ME.buffer_readable s (as_vale_immbuffer #src #bt x) /\
True
| _ -> True
[@__reduce__]
let readable (args:list arg) (s:ME.vale_heap) : prop =
BigOps.big_and' (readable_one s) args
[@__reduce__] | false | true | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val disjoint_or_eq_1 : a: Vale.Interop.Base.arg -> b: Vale.Interop.Base.arg -> Type0 | [] | Vale.AsLowStar.ValeSig.disjoint_or_eq_1 | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | a: Vale.Interop.Base.arg -> b: Vale.Interop.Base.arg -> Type0 | {
"end_col": 15,
"end_line": 108,
"start_col": 4,
"start_line": 90
} |
|
Prims.Tot | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let vale_sig_nil
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(args:list arg)
(code:V.va_code)
(pre:vale_pre_tl [])
(post:vale_post_tl []) =
va_s0:V.va_state ->
Ghost (V.va_state & V.va_fuel)
(requires
elim_nil pre va_s0)
(ensures (fun r ->
let va_s1 = state_of r in
let f = fuel_of r in
V.eval_code code va_s0 f va_s1 /\
vale_calling_conventions va_s0 va_s1 regs_modified xmms_modified /\
elim_nil post va_s0 va_s1 f /\
readable args (ME.get_vale_heap va_s1.VS.vs_heap) /\
ME.modifies (mloc_modified_args args) (VS.vs_get_vale_heap va_s0) (VS.vs_get_vale_heap va_s1))) | let vale_sig_nil
(regs_modified: (MS.reg_64 -> bool))
(xmms_modified: (MS.reg_xmm -> bool))
(args: list arg)
(code: V.va_code)
(pre: vale_pre_tl [])
(post: vale_post_tl [])
= | false | null | false | va_s0: V.va_state
-> Ghost (V.va_state & V.va_fuel)
(requires elim_nil pre va_s0)
(ensures
(fun r ->
let va_s1 = state_of r in
let f = fuel_of r in
V.eval_code code va_s0 f va_s1 /\
vale_calling_conventions va_s0 va_s1 regs_modified xmms_modified /\
elim_nil post va_s0 va_s1 f /\ readable args (ME.get_vale_heap va_s1.VS.vs_heap) /\
ME.modifies (mloc_modified_args args)
(VS.vs_get_vale_heap va_s0)
(VS.vs_get_vale_heap va_s1))) | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Vale.X64.Machine_s.reg_64",
"Prims.bool",
"Vale.X64.Machine_s.reg_xmm",
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.X64.Decls.va_code",
"Vale.AsLowStar.ValeSig.vale_pre_tl",
"Prims.Nil",
"Vale.Interop.Base.td",
"Vale.AsLowStar.ValeSig.vale_post_tl",
"Vale.X64.Decls.va_state",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.Decls.va_fuel",
"Vale.Interop.Base.elim_nil",
"Prims.prop",
"Prims.l_and",
"Vale.X64.Decls.eval_code",
"Vale.AsLowStar.ValeSig.vale_calling_conventions",
"Vale.AsLowStar.ValeSig.readable",
"Vale.X64.Memory.get_vale_heap",
"Vale.X64.State.__proj__Mkvale_state__item__vs_heap",
"Vale.X64.Memory.modifies",
"Vale.AsLowStar.ValeSig.mloc_modified_args",
"Vale.X64.State.vs_get_vale_heap",
"Vale.AsLowStar.ValeSig.fuel_of",
"Vale.X64.State.vale_state",
"Vale.AsLowStar.ValeSig.state_of"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__]
let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom
let vale_save_reg (r:MS.reg_64) (s0 s1:V.va_state) =
VS.eval_reg_64 r s0 == VS.eval_reg_64 r s1
let vale_save_xmm (r:MS.reg_xmm) (s0 s1:V.va_state) =
VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1
let vale_calling_conventions
(s0 s1:V.va_state)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool) =
let open MS in
s1.VS.vs_ok /\
vale_save_reg MS.rRsp s0 s1 /\
(forall (r:MS.reg_64).
not (regs_modified r) ==> vale_save_reg r s0 s1) /\
(forall (x:MS.reg_xmm).
not (xmms_modified x) ==> vale_save_xmm x s0 s1)
[@__reduce__]
let modified_arg_mloc (x:arg) : GTot ME.loc =
match x with
| (|TD_Buffer src t {modified=true}, x|) -> ME.loc_buffer (as_vale_buffer #src #t x)
| _ -> ME.loc_none
[@__reduce__]
let mloc_modified_args (args:list arg) : GTot ME.loc =
List.fold_right_gtot (List.map_gtot modified_arg_mloc args) ME.loc_union ME.loc_none
let state_of (x:(V.va_state & V.va_fuel)) = fst x
let fuel_of (x:(V.va_state & V.va_fuel)) = snd x
let sprop = VS.vale_state -> prop
[@__reduce__]
let readable_one (s:ME.vale_heap) (arg:arg) : prop =
match arg with
| (|TD_Buffer src bt _, x |) ->
ME.buffer_readable s (as_vale_buffer #src #bt x) /\
ME.buffer_writeable (as_vale_buffer #src #bt x)
/\ True //promote to prop
| (|TD_ImmBuffer src bt _, x |) ->
ME.buffer_readable s (as_vale_immbuffer #src #bt x) /\
True
| _ -> True
[@__reduce__]
let readable (args:list arg) (s:ME.vale_heap) : prop =
BigOps.big_and' (readable_one s) args
[@__reduce__]
let disjoint_or_eq_1 (a:arg) (b:arg) =
match a, b with
| (| TD_Buffer srcx tx {strict_disjointness=true}, xb |), (| TD_Buffer srcy ty _, yb |)
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_ImmBuffer srcx tx {strict_disjointness=true}, xb |), (| TD_ImmBuffer srcy ty _, yb |)
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty {strict_disjointness=true}, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
// An immutable buffer and a trivial buffer should not be equal
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb))
| (| TD_Buffer srcx tx _, xb |), (| TD_Buffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_buffer #srcx #tx xb)) (ME.loc_buffer (as_vale_buffer #srcy #ty yb)) \/
xb === yb
| (| TD_ImmBuffer srcx tx _, xb |), (| TD_ImmBuffer srcy ty _, yb |) ->
ME.loc_disjoint (ME.loc_buffer (as_vale_immbuffer #srcx #tx xb)) (ME.loc_buffer (as_vale_immbuffer #srcy #ty yb)) \/
xb === yb
| _ -> True
[@__reduce__]
let disjoint_or_eq (l:list arg) =
BigOps.pairwise_and' disjoint_or_eq_1 l
[@__reduce__] unfold
let vale_sig_nil
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool)
(args:list arg)
(code:V.va_code)
(pre:vale_pre_tl []) | false | true | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val vale_sig_nil : regs_modified: (_: Vale.X64.Machine_s.reg_64 -> Prims.bool) ->
xmms_modified: (_: Vale.X64.Machine_s.reg_xmm -> Prims.bool) ->
args: Prims.list Vale.Interop.Base.arg ->
code: Vale.X64.Decls.va_code ->
pre: Vale.AsLowStar.ValeSig.vale_pre_tl [] ->
post: Vale.AsLowStar.ValeSig.vale_post_tl []
-> Type | [] | Vale.AsLowStar.ValeSig.vale_sig_nil | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
regs_modified: (_: Vale.X64.Machine_s.reg_64 -> Prims.bool) ->
xmms_modified: (_: Vale.X64.Machine_s.reg_xmm -> Prims.bool) ->
args: Prims.list Vale.Interop.Base.arg ->
code: Vale.X64.Decls.va_code ->
pre: Vale.AsLowStar.ValeSig.vale_pre_tl [] ->
post: Vale.AsLowStar.ValeSig.vale_post_tl []
-> Type | {
"end_col": 102,
"end_line": 133,
"start_col": 4,
"start_line": 122
} |
|
Prims.Tot | val readable (args: list arg) (s: ME.vale_heap) : prop | [
{
"abbrev": false,
"full_module": "Vale.X64.MemoryAdapters",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "List"
},
{
"abbrev": true,
"full_module": "Vale.Interop.X64",
"short_module": "IX64"
},
{
"abbrev": true,
"full_module": "Vale.X64.State",
"short_module": "VS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Decls",
"short_module": "V"
},
{
"abbrev": true,
"full_module": "Vale.Interop.Assumptions",
"short_module": "IA"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "LowStar.BufferView",
"short_module": "BV"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AsLowStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let readable (args:list arg) (s:ME.vale_heap) : prop =
BigOps.big_and' (readable_one s) args | val readable (args: list arg) (s: ME.vale_heap) : prop
let readable (args: list arg) (s: ME.vale_heap) : prop = | false | null | false | BigOps.big_and' (readable_one s) args | {
"checked_file": "Vale.AsLowStar.ValeSig.fst.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Interop.Assumptions.fst.checked",
"Vale.Arch.HeapImpl.fsti.checked",
"prims.fst.checked",
"LowStar.BufferView.fsti.checked",
"LowStar.Buffer.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked",
"FStar.BigOps.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.AsLowStar.ValeSig.fst"
} | [
"total"
] | [
"Prims.list",
"Vale.Interop.Base.arg",
"Vale.X64.Memory.vale_heap",
"FStar.BigOps.big_and'",
"Vale.AsLowStar.ValeSig.readable_one",
"Prims.prop"
] | [] | module Vale.AsLowStar.ValeSig
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.Interop.Base
module B = LowStar.Buffer
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module MS = Vale.X64.Machine_s
module IA = Vale.Interop.Assumptions
module V = Vale.X64.Decls
module VS = Vale.X64.State
module IX64 = Vale.Interop.X64
module List = FStar.List.Tot
module Map16 = Vale.Lib.Map16
open Vale.X64.MemoryAdapters
[@__reduce__]
let vale_pre_tl (dom:list td) =
n_arrow dom (V.va_state -> prop)
[@__reduce__]
let vale_pre (dom:list td) =
code:V.va_code ->
vale_pre_tl dom
[@__reduce__]
let vale_post_tl (dom:list td) =
n_arrow dom
(s0:V.va_state -> s1:V.va_state -> f:V.va_fuel -> prop)
[@__reduce__]
let vale_post (dom:list td) =
code:V.va_code ->
vale_post_tl dom
let vale_save_reg (r:MS.reg_64) (s0 s1:V.va_state) =
VS.eval_reg_64 r s0 == VS.eval_reg_64 r s1
let vale_save_xmm (r:MS.reg_xmm) (s0 s1:V.va_state) =
VS.eval_reg_xmm r s0 == VS.eval_reg_xmm r s1
let vale_calling_conventions
(s0 s1:V.va_state)
(regs_modified:MS.reg_64 -> bool)
(xmms_modified:MS.reg_xmm -> bool) =
let open MS in
s1.VS.vs_ok /\
vale_save_reg MS.rRsp s0 s1 /\
(forall (r:MS.reg_64).
not (regs_modified r) ==> vale_save_reg r s0 s1) /\
(forall (x:MS.reg_xmm).
not (xmms_modified x) ==> vale_save_xmm x s0 s1)
[@__reduce__]
let modified_arg_mloc (x:arg) : GTot ME.loc =
match x with
| (|TD_Buffer src t {modified=true}, x|) -> ME.loc_buffer (as_vale_buffer #src #t x)
| _ -> ME.loc_none
[@__reduce__]
let mloc_modified_args (args:list arg) : GTot ME.loc =
List.fold_right_gtot (List.map_gtot modified_arg_mloc args) ME.loc_union ME.loc_none
let state_of (x:(V.va_state & V.va_fuel)) = fst x
let fuel_of (x:(V.va_state & V.va_fuel)) = snd x
let sprop = VS.vale_state -> prop
[@__reduce__]
let readable_one (s:ME.vale_heap) (arg:arg) : prop =
match arg with
| (|TD_Buffer src bt _, x |) ->
ME.buffer_readable s (as_vale_buffer #src #bt x) /\
ME.buffer_writeable (as_vale_buffer #src #bt x)
/\ True //promote to prop
| (|TD_ImmBuffer src bt _, x |) ->
ME.buffer_readable s (as_vale_immbuffer #src #bt x) /\
True
| _ -> True
[@__reduce__] | false | true | Vale.AsLowStar.ValeSig.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val readable (args: list arg) (s: ME.vale_heap) : prop | [] | Vale.AsLowStar.ValeSig.readable | {
"file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.ValeSig.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | args: Prims.list Vale.Interop.Base.arg -> s: Vale.X64.Memory.vale_heap -> Prims.prop | {
"end_col": 41,
"end_line": 85,
"start_col": 4,
"start_line": 85
} |
Prims.Tot | val ref (a:Type u#1) (p:Preorder.preorder a)
: Type u#0 | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let ref a p = M.ref (history a p) pcm_history | val ref (a:Type u#1) (p:Preorder.preorder a)
: Type u#0
let ref a p = | false | null | false | M.ref (history a p) pcm_history | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [
"total"
] | [
"FStar.Preorder.preorder",
"Steel.Memory.ref",
"Steel.Preorder.history",
"Steel.Preorder.pcm_history"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off" | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val ref (a:Type u#1) (p:Preorder.preorder a)
: Type u#0 | [] | Steel.MonotonicHigherReference.ref | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | a: Type -> p: FStar.Preorder.preorder a -> Type0 | {
"end_col": 45,
"end_line": 36,
"start_col": 14,
"start_line": 36
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v) | let pts_to' (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: Ghost.erased a) = | false | null | false | h_exists (pts_to_body r f v) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [
"total"
] | [
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.Effect.Atomic.h_exists",
"Steel.Preorder.history",
"Steel.MonotonicHigherReference.pts_to_body",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val pts_to' : r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a
-> Steel.Effect.Common.vprop | [] | Steel.MonotonicHigherReference.pts_to' | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a
-> Steel.Effect.Common.vprop | {
"end_col": 32,
"end_line": 44,
"start_col": 4,
"start_line": 44
} |
|
Prims.Tot | val pts_to_sl (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:erased a)
: slprop u#1 | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let pts_to_sl r f v = hp_of (pts_to' r f v) | val pts_to_sl (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:erased a)
: slprop u#1
let pts_to_sl r f v = | false | null | false | hp_of (pts_to' r f v) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [
"total"
] | [
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.Effect.Common.hp_of",
"Steel.MonotonicHigherReference.pts_to'",
"Steel.Memory.slprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val pts_to_sl (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:erased a)
: slprop u#1 | [] | Steel.MonotonicHigherReference.pts_to_sl | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a
-> Steel.Memory.slprop | {
"end_col": 43,
"end_line": 46,
"start_col": 22,
"start_line": 46
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f) | let pts_to_body #a #p (r: ref a p) (f: perm) (v: Ghost.erased a) (h: history a p) = | false | null | false | (PR.pts_to r h) `star` (pure (history_val h v f)) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [
"total"
] | [
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.Preorder.history",
"Steel.Effect.Common.star",
"Steel.PCMReference.pts_to",
"Steel.Preorder.pcm_history",
"Steel.Effect.Common.pure",
"Steel.Preorder.history_val",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__] | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val pts_to_body : r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a ->
h: Steel.Preorder.history a p
-> Steel.Effect.Common.vprop | [] | Steel.MonotonicHigherReference.pts_to_body | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a ->
h: Steel.Preorder.history a p
-> Steel.Effect.Common.vprop | {
"end_col": 30,
"end_line": 41,
"start_col": 6,
"start_line": 40
} |
|
Prims.Tot | val witnessed (#a:Type u#1) (#p:Preorder.preorder a) (r:ref a p) (fact:property a)
: Type0 | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let witnessed #a #p r fact =
M.witnessed r (lift_fact fact) | val witnessed (#a:Type u#1) (#p:Preorder.preorder a) (r:ref a p) (fact:property a)
: Type0
let witnessed #a #p r fact = | false | null | false | M.witnessed r (lift_fact fact) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [
"total"
] | [
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Steel.MonotonicHigherReference.property",
"Steel.Memory.witnessed",
"Steel.Preorder.history",
"Steel.Preorder.pcm_history",
"Steel.Preorder.lift_fact"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
= let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h: history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val witnessed (#a:Type u#1) (#p:Preorder.preorder a) (r:ref a p) (fact:property a)
: Type0 | [] | Steel.MonotonicHigherReference.witnessed | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.MonotonicHigherReference.ref a p -> fact: Steel.MonotonicHigherReference.property a
-> Type0 | {
"end_col": 32,
"end_line": 160,
"start_col": 2,
"start_line": 160
} |
Steel.Effect.Atomic.SteelGhostT | val intro_pts_to
(#o: _)
(#a: Type)
(#p: Preorder.preorder a)
(r: ref a p)
(f: perm)
(v: Ghost.erased a)
: SteelGhostT unit o (pts_to' r f v) (fun _ -> pts_to' r f v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let intro_pts_to #o (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit o
(pts_to' r f v)
(fun _ -> pts_to' r f v)
= rewrite_slprop _ _ (fun _ -> ()) | val intro_pts_to
(#o: _)
(#a: Type)
(#p: Preorder.preorder a)
(r: ref a p)
(f: perm)
(v: Ghost.erased a)
: SteelGhostT unit o (pts_to' r f v) (fun _ -> pts_to' r f v)
let intro_pts_to #o (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: Ghost.erased a)
: SteelGhostT unit o (pts_to' r f v) (fun _ -> pts_to' r f v) = | true | null | false | rewrite_slprop _ _ (fun _ -> ()) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Memory.inames",
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.MonotonicHigherReference.pts_to'",
"Steel.Memory.mem",
"Prims.unit",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
= let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h: history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h
let witnessed #a #p r fact =
M.witnessed r (lift_fact fact)
let get_squash (#p:prop) (_:unit{p}) : squash p = ()
let witness_thunk (#inames: _) (#a:Type) (#pcm:FStar.PCM.pcm a)
(r:Ghost.erased (M.ref a pcm))
(fact:M.stable_property pcm)
(v:Ghost.erased a)
(_:squash (fact_valid_compat #_ #pcm fact v))
(_:unit)
: SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v)
(fun _ -> PR.pts_to r v)
= witness r fact v ()
#push-options "--print_implicits"
let witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:Ghost.erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v)
(fun _ -> pts_to r q v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
assert (forall h'. compatible pcm_history h h' ==> lift_fact fact h');
lift_fact_is_stable #a #p fact;
let w = witness_thunk #_ #_ #(pcm_history #a #p) r (lift_fact fact) h () _ in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
return w
let recall (#inames: _) (#a:Type u#1) (#q:perm) (#p:Preorder.preorder a) (fact:property a)
(r:Ghost.erased (ref a p)) (v:erased a) (w:witnessed r fact)
: SteelAtomicU unit inames (pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True)
(ensures fun _ _ _ -> fact v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
let h1 = recall (lift_fact fact) r h w in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v)
let elim_pts_to #o (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit o
(pts_to r f v)
(fun _ -> pts_to' r f v)
= rewrite_slprop _ _ (fun _ -> ())
let intro_pts_to #o (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit o
(pts_to' r f v) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val intro_pts_to
(#o: _)
(#a: Type)
(#p: Preorder.preorder a)
(r: ref a p)
(f: perm)
(v: Ghost.erased a)
: SteelGhostT unit o (pts_to' r f v) (fun _ -> pts_to' r f v) | [] | Steel.MonotonicHigherReference.intro_pts_to | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a
-> Steel.Effect.Atomic.SteelGhostT Prims.unit | {
"end_col": 38,
"end_line": 234,
"start_col": 6,
"start_line": 234
} |
Steel.Effect.Steel | val rewrite_erased (#a: _) (p: (erased a -> vprop)) (x: erased a) (y: a)
: Steel unit
(p x)
(fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ()) | val rewrite_erased (#a: _) (p: (erased a -> vprop)) (x: erased a) (y: a)
: Steel unit
(p x)
(fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
let rewrite_erased #a (p: (erased a -> vprop)) (x: erased a) (y: a)
: Steel unit
(p x)
(fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True) = | true | null | false | rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ()) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"FStar.Ghost.erased",
"Steel.Effect.Common.vprop",
"Steel.Effect.Atomic.rewrite_slprop",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.Memory.mem",
"Prims.unit",
"Steel.Effect.Common.rmem",
"Prims.eq2",
"FStar.Ghost.reveal",
"Prims.l_True"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val rewrite_erased (#a: _) (p: (erased a -> vprop)) (x: erased a) (y: a)
: Steel unit
(p x)
(fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True) | [] | Steel.MonotonicHigherReference.rewrite_erased | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | p: (_: FStar.Ghost.erased a -> Steel.Effect.Common.vprop) -> x: FStar.Ghost.erased a -> y: a
-> Steel.Effect.Steel Prims.unit | {
"end_col": 57,
"end_line": 110,
"start_col": 4,
"start_line": 110
} |
Steel.Effect.Atomic.SteelGhostT | val elim_pts_to
(#o: _)
(#a: Type)
(#p: Preorder.preorder a)
(r: ref a p)
(f: perm)
(v: Ghost.erased a)
: SteelGhostT unit o (pts_to r f v) (fun _ -> pts_to' r f v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let elim_pts_to #o (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit o
(pts_to r f v)
(fun _ -> pts_to' r f v)
= rewrite_slprop _ _ (fun _ -> ()) | val elim_pts_to
(#o: _)
(#a: Type)
(#p: Preorder.preorder a)
(r: ref a p)
(f: perm)
(v: Ghost.erased a)
: SteelGhostT unit o (pts_to r f v) (fun _ -> pts_to' r f v)
let elim_pts_to #o (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: Ghost.erased a)
: SteelGhostT unit o (pts_to r f v) (fun _ -> pts_to' r f v) = | true | null | false | rewrite_slprop _ _ (fun _ -> ()) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Memory.inames",
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.MonotonicHigherReference.pts_to",
"Steel.MonotonicHigherReference.pts_to'",
"Steel.Memory.mem",
"Prims.unit",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
= let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h: history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h
let witnessed #a #p r fact =
M.witnessed r (lift_fact fact)
let get_squash (#p:prop) (_:unit{p}) : squash p = ()
let witness_thunk (#inames: _) (#a:Type) (#pcm:FStar.PCM.pcm a)
(r:Ghost.erased (M.ref a pcm))
(fact:M.stable_property pcm)
(v:Ghost.erased a)
(_:squash (fact_valid_compat #_ #pcm fact v))
(_:unit)
: SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v)
(fun _ -> PR.pts_to r v)
= witness r fact v ()
#push-options "--print_implicits"
let witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:Ghost.erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v)
(fun _ -> pts_to r q v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
assert (forall h'. compatible pcm_history h h' ==> lift_fact fact h');
lift_fact_is_stable #a #p fact;
let w = witness_thunk #_ #_ #(pcm_history #a #p) r (lift_fact fact) h () _ in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
return w
let recall (#inames: _) (#a:Type u#1) (#q:perm) (#p:Preorder.preorder a) (fact:property a)
(r:Ghost.erased (ref a p)) (v:erased a) (w:witnessed r fact)
: SteelAtomicU unit inames (pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True)
(ensures fun _ _ _ -> fact v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
let h1 = recall (lift_fact fact) r h w in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v)
let elim_pts_to #o (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit o
(pts_to r f v) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val elim_pts_to
(#o: _)
(#a: Type)
(#p: Preorder.preorder a)
(r: ref a p)
(f: perm)
(v: Ghost.erased a)
: SteelGhostT unit o (pts_to r f v) (fun _ -> pts_to' r f v) | [] | Steel.MonotonicHigherReference.elim_pts_to | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a
-> Steel.Effect.Atomic.SteelGhostT Prims.unit | {
"end_col": 38,
"end_line": 223,
"start_col": 6,
"start_line": 223
} |
Steel.Effect.SteelT | val rewrite_reveal_hide: #a: _ -> x: a -> p: (a -> vprop) -> Prims.unit
-> SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ()) | val rewrite_reveal_hide: #a: _ -> x: a -> p: (a -> vprop) -> Prims.unit
-> SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
let rewrite_reveal_hide #a (x: a) (p: (a -> vprop)) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x) = | true | null | false | rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ()) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Effect.Common.vprop",
"Prims.unit",
"Steel.Effect.Atomic.rewrite_slprop",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"FStar.Ghost.reveal",
"Steel.Memory.mem"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) () | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val rewrite_reveal_hide: #a: _ -> x: a -> p: (a -> vprop) -> Prims.unit
-> SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x) | [] | Steel.MonotonicHigherReference.rewrite_reveal_hide | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | x: a -> p: (_: a -> Steel.Effect.Common.vprop) -> _: Prims.unit -> Steel.Effect.SteelT Prims.unit | {
"end_col": 72,
"end_line": 114,
"start_col": 4,
"start_line": 114
} |
Steel.Effect.Atomic.SteelAtomicUT | val witness_thunk:
#inames: _ ->
#a: Type ->
#pcm: FStar.PCM.pcm a ->
r: Ghost.erased (M.ref a pcm) ->
fact: M.stable_property pcm ->
v: Ghost.erased a ->
squash (fact_valid_compat #_ #pcm fact v) ->
unit
-> SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v) (fun _ -> PR.pts_to r v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let witness_thunk (#inames: _) (#a:Type) (#pcm:FStar.PCM.pcm a)
(r:Ghost.erased (M.ref a pcm))
(fact:M.stable_property pcm)
(v:Ghost.erased a)
(_:squash (fact_valid_compat #_ #pcm fact v))
(_:unit)
: SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v)
(fun _ -> PR.pts_to r v)
= witness r fact v () | val witness_thunk:
#inames: _ ->
#a: Type ->
#pcm: FStar.PCM.pcm a ->
r: Ghost.erased (M.ref a pcm) ->
fact: M.stable_property pcm ->
v: Ghost.erased a ->
squash (fact_valid_compat #_ #pcm fact v) ->
unit
-> SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v) (fun _ -> PR.pts_to r v)
let witness_thunk
(#inames: _)
(#a: Type)
(#pcm: FStar.PCM.pcm a)
(r: Ghost.erased (M.ref a pcm))
(fact: M.stable_property pcm)
(v: Ghost.erased a)
(_: squash (fact_valid_compat #_ #pcm fact v))
(_: unit)
: SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v) (fun _ -> PR.pts_to r v) = | true | null | false | witness r fact v () | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"FStar.Ghost.erased",
"Steel.Memory.ref",
"Steel.Memory.stable_property",
"Prims.squash",
"Steel.Preorder.fact_valid_compat",
"FStar.Ghost.reveal",
"Prims.unit",
"Steel.PCMReference.witness",
"Steel.Memory.witnessed",
"Steel.PCMReference.pts_to",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
= let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h: history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h
let witnessed #a #p r fact =
M.witnessed r (lift_fact fact)
let get_squash (#p:prop) (_:unit{p}) : squash p = ()
let witness_thunk (#inames: _) (#a:Type) (#pcm:FStar.PCM.pcm a)
(r:Ghost.erased (M.ref a pcm))
(fact:M.stable_property pcm)
(v:Ghost.erased a)
(_:squash (fact_valid_compat #_ #pcm fact v))
(_:unit)
: SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val witness_thunk:
#inames: _ ->
#a: Type ->
#pcm: FStar.PCM.pcm a ->
r: Ghost.erased (M.ref a pcm) ->
fact: M.stable_property pcm ->
v: Ghost.erased a ->
squash (fact_valid_compat #_ #pcm fact v) ->
unit
-> SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v) (fun _ -> PR.pts_to r v) | [] | Steel.MonotonicHigherReference.witness_thunk | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: FStar.Ghost.erased (Steel.Memory.ref a pcm) ->
fact: Steel.Memory.stable_property pcm ->
v: FStar.Ghost.erased a ->
_: Prims.squash (Steel.Preorder.fact_valid_compat fact (FStar.Ghost.reveal v)) ->
_: Prims.unit
-> Steel.Effect.Atomic.SteelAtomicUT (Steel.Memory.witnessed (FStar.Ghost.reveal r) fact) | {
"end_col": 23,
"end_line": 172,
"start_col": 4,
"start_line": 172
} |
Steel.Effect.SteelT | val intro_pure (#a #p #f: _) (r: ref a p) (v: a) (h: history a p {history_val h v f})
: SteelT unit (PR.pts_to r h) (fun _ -> pts_to_body r f v h) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m) | val intro_pure (#a #p #f: _) (r: ref a p) (v: a) (h: history a p {history_val h v f})
: SteelT unit (PR.pts_to r h) (fun _ -> pts_to_body r f v h)
let intro_pure #a #p #f (r: ref a p) (v: a) (h: history a p {history_val h v f})
: SteelT unit (PR.pts_to r h) (fun _ -> pts_to_body r f v h) = | true | null | false | rewrite_slprop (PR.pts_to r h)
(pts_to_body _ _ _ _)
(fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"FStar.Preorder.preorder",
"Steel.FractionalPermission.perm",
"Steel.MonotonicHigherReference.ref",
"Steel.Preorder.history",
"Steel.Preorder.history_val",
"FStar.Ghost.hide",
"Steel.Effect.Atomic.rewrite_slprop",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.PCMReference.pts_to",
"Steel.Preorder.pcm_history",
"Steel.MonotonicHigherReference.pts_to_body",
"Steel.Memory.mem",
"Steel.Memory.pure_star_interp",
"Steel.Memory.pts_to",
"Prims.unit",
"Steel.Memory.emp_unit",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val intro_pure (#a #p #f: _) (r: ref a p) (v: a) (h: history a p {history_val h v f})
: SteelT unit (PR.pts_to r h) (fun _ -> pts_to_body r f v h) | [] | Steel.MonotonicHigherReference.intro_pure | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
v: a ->
h: Steel.Preorder.history a p {Steel.Preorder.history_val h (FStar.Ghost.hide v) f}
-> Steel.Effect.SteelT Prims.unit | {
"end_col": 60,
"end_line": 57,
"start_col": 4,
"start_line": 55
} |
Steel.Effect.SteelT | val intro_pure_full (#a #p #f: _) (r: ref a p) (v: a) (h: history a p {history_val h v f})
: SteelT unit (PR.pts_to r h) (fun _ -> pts_to r f v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v) | val intro_pure_full (#a #p #f: _) (r: ref a p) (v: a) (h: history a p {history_val h v f})
: SteelT unit (PR.pts_to r h) (fun _ -> pts_to r f v)
let intro_pure_full #a #p #f (r: ref a p) (v: a) (h: history a p {history_val h v f})
: SteelT unit (PR.pts_to r h) (fun _ -> pts_to r f v) = | true | null | false | intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"FStar.Preorder.preorder",
"Steel.FractionalPermission.perm",
"Steel.MonotonicHigherReference.ref",
"Steel.Preorder.history",
"Steel.Preorder.history_val",
"FStar.Ghost.hide",
"Steel.Effect.Atomic.intro_exists",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.MonotonicHigherReference.pts_to_body",
"Prims.unit",
"Steel.MonotonicHigherReference.intro_pure",
"Steel.PCMReference.pts_to",
"Steel.Preorder.pcm_history",
"Steel.MonotonicHigherReference.pts_to",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val intro_pure_full (#a #p #f: _) (r: ref a p) (v: a) (h: history a p {history_val h v f})
: SteelT unit (PR.pts_to r h) (fun _ -> pts_to r f v) | [] | Steel.MonotonicHigherReference.intro_pure_full | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
v: a ->
h: Steel.Preorder.history a p {Steel.Preorder.history_val h (FStar.Ghost.hide v) f}
-> Steel.Effect.SteelT Prims.unit | {
"end_col": 38,
"end_line": 67,
"start_col": 4,
"start_line": 66
} |
Steel.Effect.SteelT | val alloc (#a:Type) (p:Preorder.preorder a) (v:a)
: SteelT (ref a p) emp (fun r -> pts_to r full_perm v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x | val alloc (#a:Type) (p:Preorder.preorder a) (v:a)
: SteelT (ref a p) emp (fun r -> pts_to r full_perm v)
let alloc (#a: Type) (p: Preorder.preorder a) (v: a) = | true | null | false | let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x:ref a p = alloc h in
intro_pure_full x v h;
x | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Prims.unit",
"Steel.MonotonicHigherReference.intro_pure_full",
"Steel.FractionalPermission.full_perm",
"Steel.PCMReference.alloc",
"Steel.Preorder.history",
"Steel.Preorder.pcm_history",
"Steel.Memory.ref",
"Prims._assert",
"FStar.PCM.compatible",
"Steel.Preorder.Current",
"Prims.Cons",
"Prims.Nil"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val alloc (#a:Type) (p:Preorder.preorder a) (v:a)
: SteelT (ref a p) emp (fun r -> pts_to r full_perm v) | [] | Steel.MonotonicHigherReference.alloc | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | p: FStar.Preorder.preorder a -> v: a -> Steel.Effect.SteelT (Steel.MonotonicHigherReference.ref a p) | {
"end_col": 5,
"end_line": 75,
"start_col": 3,
"start_line": 71
} |
Steel.Effect.Atomic.SteelGhostT | val elim_pure (#a #uses #p #f: _) (r: ref a p) (v: Ghost.erased a) (h: Ghost.erased (history a p))
: SteelGhostT (_: unit{history_val h v f}) uses (pts_to_body r f v h) (fun _ -> PR.pts_to r h) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f)) | val elim_pure (#a #uses #p #f: _) (r: ref a p) (v: Ghost.erased a) (h: Ghost.erased (history a p))
: SteelGhostT (_: unit{history_val h v f}) uses (pts_to_body r f v h) (fun _ -> PR.pts_to r h)
let elim_pure #a #uses #p #f (r: ref a p) (v: Ghost.erased a) (h: Ghost.erased (history a p))
: SteelGhostT (_: unit{history_val h v f}) uses (pts_to_body r f v h) (fun _ -> PR.pts_to r h) = | true | null | false | let _ = extract_pure r v h in
drop (pure (history_val h v f)) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Memory.inames",
"FStar.Preorder.preorder",
"Steel.FractionalPermission.perm",
"Steel.MonotonicHigherReference.ref",
"FStar.Ghost.erased",
"Steel.Preorder.history",
"Steel.Effect.Atomic.drop",
"Steel.Effect.Common.pure",
"Steel.Preorder.history_val",
"FStar.Ghost.reveal",
"Prims.unit",
"Steel.MonotonicHigherReference.extract_pure",
"Steel.MonotonicHigherReference.pts_to_body",
"Steel.PCMReference.pts_to",
"Steel.Preorder.pcm_history",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val elim_pure (#a #uses #p #f: _) (r: ref a p) (v: Ghost.erased a) (h: Ghost.erased (history a p))
: SteelGhostT (_: unit{history_val h v f}) uses (pts_to_body r f v h) (fun _ -> PR.pts_to r h) | [] | Steel.MonotonicHigherReference.elim_pure | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
v: FStar.Ghost.erased a ->
h: FStar.Ghost.erased (Steel.Preorder.history a p)
-> Steel.Effect.Atomic.SteelGhostT
(_: Prims.unit{Steel.Preorder.history_val (FStar.Ghost.reveal h) v f}) | {
"end_col": 35,
"end_line": 104,
"start_col": 3,
"start_line": 103
} |
Steel.Effect.Atomic.SteelGhostT | val extract_pure
(#a #uses #p #f: _)
(r: ref a p)
(v: Ghost.erased a)
(h: Ghost.erased (history a p))
: SteelGhostT (_: unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
) | val extract_pure
(#a #uses #p #f: _)
(r: ref a p)
(v: Ghost.erased a)
(h: Ghost.erased (history a p))
: SteelGhostT (_: unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
let extract_pure #a #uses #p #f (r: ref a p) (v: Ghost.erased a) (h: Ghost.erased (history a p))
: SteelGhostT (_: unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h) = | true | null | false | rewrite_slprop (pts_to_body r f v h)
((PR.pts_to r h) `star` (pure (history_val h v f)))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h)
(pts_to_body r f v h)
(fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Memory.inames",
"FStar.Preorder.preorder",
"Steel.FractionalPermission.perm",
"Steel.MonotonicHigherReference.ref",
"FStar.Ghost.erased",
"Steel.Preorder.history",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.PCMReference.pts_to",
"Steel.Preorder.pcm_history",
"FStar.Ghost.reveal",
"Steel.MonotonicHigherReference.pts_to_body",
"Steel.Memory.mem",
"Steel.Memory.pure_star_interp",
"Steel.Memory.pts_to",
"Steel.Preorder.history_val",
"Prims.unit",
"Steel.Memory.emp_unit",
"Steel.Effect.Atomic.elim_pure",
"Steel.Effect.Common.star",
"Steel.Effect.Common.pure",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val extract_pure
(#a #uses #p #f: _)
(r: ref a p)
(v: Ghost.erased a)
(h: Ghost.erased (history a p))
: SteelGhostT (_: unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h) | [] | Steel.MonotonicHigherReference.extract_pure | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
v: FStar.Ghost.erased a ->
h: FStar.Ghost.erased (Steel.Preorder.history a p)
-> Steel.Effect.Atomic.SteelGhostT
(_: Prims.unit{Steel.Preorder.history_val (FStar.Ghost.reveal h) v f}) | {
"end_col": 5,
"end_line": 93,
"start_col": 4,
"start_line": 85
} |
Steel.Effect.Atomic.SteelAtomicU | val recall (#inames: _) (#a:Type u#1) (#q:perm) (#p:Preorder.preorder a)
(fact:property a)
(r:erased (ref a p))
(v:erased a)
(w:witnessed r fact)
: SteelAtomicU unit inames (pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True)
(ensures fun _ _ _ -> fact v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let recall (#inames: _) (#a:Type u#1) (#q:perm) (#p:Preorder.preorder a) (fact:property a)
(r:Ghost.erased (ref a p)) (v:erased a) (w:witnessed r fact)
: SteelAtomicU unit inames (pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True)
(ensures fun _ _ _ -> fact v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
let h1 = recall (lift_fact fact) r h w in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v) | val recall (#inames: _) (#a:Type u#1) (#q:perm) (#p:Preorder.preorder a)
(fact:property a)
(r:erased (ref a p))
(v:erased a)
(w:witnessed r fact)
: SteelAtomicU unit inames (pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True)
(ensures fun _ _ _ -> fact v)
let recall
(#inames: _)
(#a: Type u#1)
(#q: perm)
(#p: Preorder.preorder a)
(fact: property a)
(r: Ghost.erased (ref a p))
(v: erased a)
(w: witnessed r fact)
: SteelAtomicU unit
inames
(pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True)
(ensures fun _ _ _ -> fact v) = | true | null | false | let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
let h1 = recall (lift_fact fact) r h w in
rewrite_slprop (PR.pts_to r h)
(pts_to_body r q v h)
(fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v) | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Memory.inames",
"Steel.FractionalPermission.perm",
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.property",
"FStar.Ghost.erased",
"Steel.MonotonicHigherReference.ref",
"Steel.MonotonicHigherReference.witnessed",
"FStar.Ghost.reveal",
"Steel.Effect.Atomic.intro_exists_erased",
"Steel.Preorder.history",
"Steel.MonotonicHigherReference.pts_to_body",
"Prims.unit",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.PCMReference.pts_to",
"Steel.Preorder.pcm_history",
"Steel.Memory.mem",
"Steel.Memory.pure_star_interp",
"Steel.Memory.pts_to",
"Steel.Preorder.history_val",
"Steel.Memory.emp_unit",
"Steel.PCMReference.recall",
"Steel.Preorder.lift_fact",
"Steel.MonotonicHigherReference.elim_pure",
"Steel.Effect.Atomic.witness_exists",
"Steel.MonotonicHigherReference.pts_to",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.rmem",
"Prims.l_True"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
= let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h: history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h
let witnessed #a #p r fact =
M.witnessed r (lift_fact fact)
let get_squash (#p:prop) (_:unit{p}) : squash p = ()
let witness_thunk (#inames: _) (#a:Type) (#pcm:FStar.PCM.pcm a)
(r:Ghost.erased (M.ref a pcm))
(fact:M.stable_property pcm)
(v:Ghost.erased a)
(_:squash (fact_valid_compat #_ #pcm fact v))
(_:unit)
: SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v)
(fun _ -> PR.pts_to r v)
= witness r fact v ()
#push-options "--print_implicits"
let witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:Ghost.erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v)
(fun _ -> pts_to r q v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
assert (forall h'. compatible pcm_history h h' ==> lift_fact fact h');
lift_fact_is_stable #a #p fact;
let w = witness_thunk #_ #_ #(pcm_history #a #p) r (lift_fact fact) h () _ in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
return w
let recall (#inames: _) (#a:Type u#1) (#q:perm) (#p:Preorder.preorder a) (fact:property a)
(r:Ghost.erased (ref a p)) (v:erased a) (w:witnessed r fact)
: SteelAtomicU unit inames (pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val recall (#inames: _) (#a:Type u#1) (#q:perm) (#p:Preorder.preorder a)
(fact:property a)
(r:erased (ref a p))
(v:erased a)
(w:witnessed r fact)
: SteelAtomicU unit inames (pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True)
(ensures fun _ _ _ -> fact v) | [] | Steel.MonotonicHigherReference.recall | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
fact: Steel.MonotonicHigherReference.property a ->
r: FStar.Ghost.erased (Steel.MonotonicHigherReference.ref a p) ->
v: FStar.Ghost.erased a ->
w: Steel.MonotonicHigherReference.witnessed (FStar.Ghost.reveal r) fact
-> Steel.Effect.Atomic.SteelAtomicU Prims.unit | {
"end_col": 45,
"end_line": 213,
"start_col": 3,
"start_line": 204
} |
Steel.Effect.Steel | val write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
= let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h: history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h | val write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
let write (#a: Type) (#p: Preorder.preorder a) (#v: erased a) (r: ref a p) (x: a)
: Steel unit
(pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True) = | true | null | false | let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h:history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"FStar.Preorder.preorder",
"FStar.Ghost.erased",
"Steel.MonotonicHigherReference.ref",
"Steel.MonotonicHigherReference.intro_pure_full",
"Steel.FractionalPermission.full_perm",
"Prims.unit",
"Steel.PCMReference.write",
"Steel.Preorder.history",
"Steel.Preorder.pcm_history",
"Steel.Preorder.extend_history'",
"Steel.PCMReference.read",
"Steel.Preorder.history_val",
"FStar.Ghost.reveal",
"Steel.MonotonicHigherReference.elim_pure",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.Effect.Atomic.witness_exists",
"Steel.MonotonicHigherReference.pts_to_body",
"Steel.MonotonicHigherReference.pts_to",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.rmem",
"Prims.l_and",
"Prims.l_True"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True) | [] | Steel.MonotonicHigherReference.write | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.MonotonicHigherReference.ref a p -> x: a -> Steel.Effect.Steel Prims.unit | {
"end_col": 25,
"end_line": 157,
"start_col": 3,
"start_line": 150
} |
Steel.Effect.Atomic.SteelAtomicUT | val witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v)
(fun _ -> pts_to r q v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:Ghost.erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v)
(fun _ -> pts_to r q v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
assert (forall h'. compatible pcm_history h h' ==> lift_fact fact h');
lift_fact_is_stable #a #p fact;
let w = witness_thunk #_ #_ #(pcm_history #a #p) r (lift_fact fact) h () _ in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
return w | val witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v)
(fun _ -> pts_to r q v)
let witness
(#inames: _)
(#a: Type)
(#q: perm)
(#p: Preorder.preorder a)
(r: Ghost.erased (ref a p))
(fact: stable_property p)
(v: erased a)
(_: squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v) (fun _ -> pts_to r q v) = | true | null | false | let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
assert (forall h'. compatible pcm_history h h' ==> lift_fact fact h');
lift_fact_is_stable #a #p fact;
let w = witness_thunk #_ #_ #(pcm_history #a #p) r (lift_fact fact) h () _ in
rewrite_slprop (PR.pts_to r h)
(pts_to_body r q v h)
(fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
return w | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Memory.inames",
"Steel.FractionalPermission.perm",
"FStar.Preorder.preorder",
"FStar.Ghost.erased",
"Steel.MonotonicHigherReference.ref",
"Steel.MonotonicHigherReference.stable_property",
"Prims.squash",
"FStar.Ghost.reveal",
"Steel.Effect.Atomic.return",
"Steel.MonotonicHigherReference.witnessed",
"Steel.MonotonicHigherReference.pts_to",
"Steel.Effect.Common.vprop",
"Prims.unit",
"Steel.Effect.Atomic.intro_exists_erased",
"Steel.Preorder.history",
"Steel.MonotonicHigherReference.pts_to_body",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.PCMReference.pts_to",
"Steel.Preorder.pcm_history",
"Steel.Memory.mem",
"Steel.Memory.pure_star_interp",
"Steel.Memory.pts_to",
"Steel.Preorder.history_val",
"Steel.Memory.emp_unit",
"Steel.Memory.witnessed",
"Steel.Memory.ref",
"Steel.Preorder.lift_fact",
"Steel.MonotonicHigherReference.witness_thunk",
"Steel.Preorder.lift_fact_is_stable",
"Prims._assert",
"Prims.l_Forall",
"Prims.l_imp",
"FStar.PCM.compatible",
"Steel.MonotonicHigherReference.elim_pure",
"Steel.Effect.Atomic.witness_exists"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
= let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h: history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h
let witnessed #a #p r fact =
M.witnessed r (lift_fact fact)
let get_squash (#p:prop) (_:unit{p}) : squash p = ()
let witness_thunk (#inames: _) (#a:Type) (#pcm:FStar.PCM.pcm a)
(r:Ghost.erased (M.ref a pcm))
(fact:M.stable_property pcm)
(v:Ghost.erased a)
(_:squash (fact_valid_compat #_ #pcm fact v))
(_:unit)
: SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v)
(fun _ -> PR.pts_to r v)
= witness r fact v ()
#push-options "--print_implicits"
let witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:Ghost.erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v)
(fun _ -> pts_to r q v) | [] | Steel.MonotonicHigherReference.witness | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: FStar.Ghost.erased (Steel.MonotonicHigherReference.ref a p) ->
fact: Steel.MonotonicHigherReference.stable_property p ->
v: FStar.Ghost.erased a ->
_: Prims.squash (fact (FStar.Ghost.reveal v))
-> Steel.Effect.Atomic.SteelAtomicUT
(Steel.MonotonicHigherReference.witnessed (FStar.Ghost.reveal r) fact) | {
"end_col": 12,
"end_line": 196,
"start_col": 3,
"start_line": 183
} |
Steel.Effect.Atomic.SteelGhostT | val share (#inames:_)
(#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit inames
(pts_to r f v)
(fun _ -> pts_to r (half_perm f) v `star` pts_to r (half_perm f) v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let share #o (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a)
: SteelGhostT unit o
(pts_to r f v)
(fun _ -> pts_to r (half_perm f) v `star` pts_to r (half_perm f) v)
= let open Steel.Effect.Atomic in
elim_pts_to r f v;
let h : erased (history a p) = witness_exists () in
elim_pure _;
let sh = split_current h in
PR.split r h sh sh;
intro_pure (history_val sh v (half_perm f));
intro_exists #(history a p) sh (pts_to_body r (half_perm f) v);
intro_pts_to r (half_perm f) v;
intro_pure (history_val sh v (half_perm f));
intro_exists #(history a p) sh (pts_to_body r (half_perm f) v);
intro_pts_to r (half_perm f) v | val share (#inames:_)
(#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit inames
(pts_to r f v)
(fun _ -> pts_to r (half_perm f) v `star` pts_to r (half_perm f) v)
let share #o (#a: Type) (#p: Preorder.preorder a) (r: ref a p) (f: perm) (v: Ghost.erased a)
: SteelGhostT unit
o
(pts_to r f v)
(fun _ -> (pts_to r (half_perm f) v) `star` (pts_to r (half_perm f) v)) = | true | null | false | let open Steel.Effect.Atomic in
elim_pts_to r f v;
let h:erased (history a p) = witness_exists () in
elim_pure _;
let sh = split_current h in
PR.split r h sh sh;
intro_pure (history_val sh v (half_perm f));
intro_exists #(history a p) sh (pts_to_body r (half_perm f) v);
intro_pts_to r (half_perm f) v;
intro_pure (history_val sh v (half_perm f));
intro_exists #(history a p) sh (pts_to_body r (half_perm f) v);
intro_pts_to r (half_perm f) v | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.Memory.inames",
"FStar.Preorder.preorder",
"Steel.MonotonicHigherReference.ref",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.MonotonicHigherReference.intro_pts_to",
"Steel.FractionalPermission.half_perm",
"Prims.unit",
"Steel.Effect.Atomic.intro_exists",
"Steel.Preorder.history",
"Steel.MonotonicHigherReference.pts_to_body",
"Steel.Effect.Atomic.intro_pure",
"Steel.Preorder.history_val",
"Steel.PCMReference.split",
"Steel.Preorder.pcm_history",
"FStar.Ghost.hide",
"Prims.l_and",
"Prims.b2t",
"Steel.Preorder.uu___is_Current",
"FStar.Ghost.reveal",
"FStar.PCM.composable",
"Prims.eq2",
"FStar.PCM.op",
"Steel.Preorder.vhist",
"Steel.Preorder.__proj__Current__item__h",
"Steel.Preorder.hval",
"Steel.Preorder.__proj__Current__item__f",
"Steel.Preorder.split_current",
"Steel.Effect.Atomic.elim_pure",
"Steel.Effect.Atomic.witness_exists",
"Steel.MonotonicHigherReference.elim_pts_to",
"Steel.MonotonicHigherReference.pts_to",
"Steel.Effect.Common.star",
"Steel.Effect.Common.vprop"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v
let write (#a:Type) (#p:Preorder.preorder a) (#v:erased a)
(r:ref a p) (x:a)
: Steel unit (pts_to r full_perm v)
(fun v -> pts_to r full_perm x)
(requires fun _ -> p v x /\ True)
(ensures fun _ _ _ -> True)
= let h_old_e = witness_exists #_ #_ #(pts_to_body r full_perm v) () in
let _ = elim_pure r v h_old_e in
let h_old = read r h_old_e in
let h: history a p = extend_history' h_old x in
write r h_old_e h;
intro_pure_full r x h
let witnessed #a #p r fact =
M.witnessed r (lift_fact fact)
let get_squash (#p:prop) (_:unit{p}) : squash p = ()
let witness_thunk (#inames: _) (#a:Type) (#pcm:FStar.PCM.pcm a)
(r:Ghost.erased (M.ref a pcm))
(fact:M.stable_property pcm)
(v:Ghost.erased a)
(_:squash (fact_valid_compat #_ #pcm fact v))
(_:unit)
: SteelAtomicUT (M.witnessed r fact) inames (PR.pts_to r v)
(fun _ -> PR.pts_to r v)
= witness r fact v ()
#push-options "--print_implicits"
let witness (#inames: _) (#a:Type) (#q:perm) (#p:Preorder.preorder a)
(r:Ghost.erased (ref a p))
(fact:stable_property p)
(v:erased a)
(_:squash (fact v))
: SteelAtomicUT (witnessed r fact) inames (pts_to r q v)
(fun _ -> pts_to r q v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
assert (forall h'. compatible pcm_history h h' ==> lift_fact fact h');
lift_fact_is_stable #a #p fact;
let w = witness_thunk #_ #_ #(pcm_history #a #p) r (lift_fact fact) h () _ in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
return w
let recall (#inames: _) (#a:Type u#1) (#q:perm) (#p:Preorder.preorder a) (fact:property a)
(r:Ghost.erased (ref a p)) (v:erased a) (w:witnessed r fact)
: SteelAtomicU unit inames (pts_to r q v)
(fun _ -> pts_to r q v)
(requires fun _ -> True)
(ensures fun _ _ _ -> fact v)
= let h = witness_exists #_ #_ #(pts_to_body r q v) () in
let _ = elim_pure #_ #_ #_ #q r v h in
let h1 = recall (lift_fact fact) r h w in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v)
let elim_pts_to #o (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit o
(pts_to r f v)
(fun _ -> pts_to' r f v)
= rewrite_slprop _ _ (fun _ -> ())
let intro_pts_to #o (#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit o
(pts_to' r f v)
(fun _ -> pts_to' r f v)
= rewrite_slprop _ _ (fun _ -> ())
let share #o (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a)
: SteelGhostT unit o
(pts_to r f v) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val share (#inames:_)
(#a:Type)
(#p:Preorder.preorder a)
(r:ref a p)
(f:perm)
(v:Ghost.erased a)
: SteelGhostT unit inames
(pts_to r f v)
(fun _ -> pts_to r (half_perm f) v `star` pts_to r (half_perm f) v) | [] | Steel.MonotonicHigherReference.share | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.MonotonicHigherReference.ref a p ->
f: Steel.FractionalPermission.perm ->
v: FStar.Ghost.erased a
-> Steel.Effect.Atomic.SteelGhostT Prims.unit | {
"end_col": 34,
"end_line": 251,
"start_col": 4,
"start_line": 240
} |
Steel.Effect.SteelT | val read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#frame:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` frame v))
(fun v -> pts_to r q v `star` frame v) | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "PR"
},
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.Preorder",
"short_module": "Q"
},
{
"abbrev": false,
"full_module": "Steel.Preorder",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.PCMReference",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "Preorder"
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v))
(fun v -> pts_to r q v `star` f v)
= let v = witness_exists () in
rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v) (h_exists (pts_to_body r q v) `star` f v) (fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h) (pts_to_body r q v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> (pts_to r q v `star` f v)) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop
(pts_to r q (hval_tot hv) `star` f (Ghost.reveal (Ghost.hide (hval_tot hv))))
(pts_to r q v `star` f v)
(fun _ -> ());
return v | val read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#frame:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` frame v))
(fun v -> pts_to r q v `star` frame v)
let read_refine (#a: Type) (#q: perm) (#p: Preorder.preorder a) (#f: (a -> vprop)) (r: ref a p)
: SteelT a
(h_exists (fun (v: a) -> (pts_to r q v) `star` (f v)))
(fun v -> (pts_to r q v) `star` (f v)) = | true | null | false | let v = witness_exists () in
rewrite_slprop ((pts_to r q (Ghost.hide (Ghost.reveal v))) `star` (f v))
((h_exists (pts_to_body r q v)) `star` (f v))
(fun _ -> ());
let h = witness_exists () in
let _ = elim_pure r v h in
let hv = read r h in
let _:squash (compatible pcm_history h hv) = () in
rewrite_slprop (PR.pts_to r h)
(pts_to_body r q v h)
(fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v q) m);
intro_exists_erased h (pts_to_body r q v);
rewrite_erased (fun v -> ((pts_to r q v) `star` (f v))) v (hval_tot hv);
let v = hval_tot hv in
rewrite_slprop ((pts_to r q (hval_tot hv)) `star` (f (Ghost.reveal (Ghost.hide (hval_tot hv)))))
((pts_to r q v) `star` (f v))
(fun _ -> ());
return v | {
"checked_file": "Steel.MonotonicHigherReference.fst.checked",
"dependencies": [
"Steel.Preorder.fst.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.MonotonicHigherReference.fst"
} | [] | [
"Steel.FractionalPermission.perm",
"FStar.Preorder.preorder",
"Steel.Effect.Common.vprop",
"Steel.MonotonicHigherReference.ref",
"Steel.Effect.Atomic.return",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.Effect.Common.VStar",
"Steel.MonotonicHigherReference.pts_to",
"Prims.unit",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.Effect.Common.star",
"Steel.Preorder.hval_tot",
"FStar.Ghost.reveal",
"Steel.Memory.mem",
"Steel.MonotonicHigherReference.rewrite_erased",
"FStar.Ghost.erased",
"Steel.Effect.Atomic.intro_exists_erased",
"Steel.Preorder.history",
"Steel.MonotonicHigherReference.pts_to_body",
"Steel.PCMReference.pts_to",
"Steel.Preorder.pcm_history",
"Steel.Memory.pure_star_interp",
"Steel.Memory.pts_to",
"Steel.Preorder.history_val",
"Steel.Memory.emp_unit",
"Prims.squash",
"FStar.PCM.compatible",
"Steel.PCMReference.read",
"Steel.MonotonicHigherReference.elim_pure",
"Steel.Effect.Atomic.witness_exists",
"Steel.Effect.Atomic.h_exists"
] | [] | (*
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 in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*)
module Steel.MonotonicHigherReference
open FStar.Ghost
open FStar.PCM
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.PCMReference
open Steel.FractionalPermission
open Steel.Preorder
module Preorder = FStar.Preorder
module Q = Steel.Preorder
module M = Steel.Memory
module PR = Steel.PCMReference
open FStar.Real
#set-options "--ide_id_info_off"
let ref a p = M.ref (history a p) pcm_history
[@@__reduce__]
let pts_to_body #a #p (r:ref a p) (f:perm) (v:Ghost.erased a) (h:history a p) =
PR.pts_to r h `star`
pure (history_val h v f)
let pts_to' (#a:Type) (#p:Preorder.preorder a) (r:ref a p) (f:perm) (v:Ghost.erased a) =
h_exists (pts_to_body r f v)
let pts_to_sl r f v = hp_of (pts_to' r f v)
let intro_pure #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop (PR.pts_to r h) (pts_to_body _ _ _ _) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m)
let intro_pure_full #a #p #f
(r:ref a p)
(v:a)
(h:history a p { history_val h v f })
: SteelT unit
(PR.pts_to r h)
(fun _ -> pts_to r f v)
= intro_pure #a #p #f r v h;
intro_exists h (pts_to_body r f v)
let alloc (#a:Type) (p:Preorder.preorder a) (v:a)
= let h = Current [v] full_perm in
assert (compatible pcm_history h h);
let x : ref a p = alloc h in
intro_pure_full x v h;
x
let extract_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> pts_to_body r f v h)
= rewrite_slprop
(pts_to_body r f v h)
(PR.pts_to r h `star` pure (history_val h v f))
(fun _ -> ());
elim_pure (history_val h v f);
rewrite_slprop (PR.pts_to r h) (pts_to_body r f v h) (fun m ->
emp_unit (M.pts_to r h);
pure_star_interp (M.pts_to r h) (history_val h v f) m
)
let elim_pure #a #uses #p #f
(r:ref a p)
(v:Ghost.erased a)
(h:Ghost.erased (history a p))
: SteelGhostT (_:unit{history_val h v f})
uses
(pts_to_body r f v h)
(fun _ -> PR.pts_to r h)
= let _ = extract_pure r v h in
drop (pure (history_val h v f))
let rewrite_erased #a (p:erased a -> vprop) (x:erased a) (y:a)
: Steel unit (p x) (fun _ -> p (Ghost.hide y))
(requires fun _ -> reveal x == y)
(ensures fun _ _ _ -> True)
= rewrite_slprop (p x) (p (Ghost.hide y)) (fun _ -> ())
let rewrite_reveal_hide #a (x:a) (p:a -> vprop) ()
: SteelT unit (p (Ghost.reveal (Ghost.hide x))) (fun _ -> p x)
= rewrite_slprop (p (Ghost.reveal (Ghost.hide x))) (p x) (fun _ -> ())
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v)) | false | false | Steel.MonotonicHigherReference.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": true,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#frame:a -> vprop)
(r:ref a p)
: SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` frame v))
(fun v -> pts_to r q v `star` frame v) | [] | Steel.MonotonicHigherReference.read_refine | {
"file_name": "lib/steel/Steel.MonotonicHigherReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.MonotonicHigherReference.ref a p -> Steel.Effect.SteelT a | {
"end_col": 12,
"end_line": 142,
"start_col": 3,
"start_line": 120
} |
Prims.Tot | val va_ens_Check_adx_bmi2_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_adx_bmi2_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_adx_bmi2_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_adx_bmi2_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.adx_enabled",
"Vale.X64.CPU_Features_s.bmi2_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_adx_bmi2_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_adx_bmi2_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 93,
"end_line": 115,
"start_col": 2,
"start_line": 111
} |
Prims.Tot | val va_req_Check_sha_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_sha_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_sha_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_sha_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_sha_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_sha_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 83,
"end_line": 65,
"start_col": 2,
"start_line": 65
} |
Prims.Tot | val va_ens_Check_aesni_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_aesni_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_aesni_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_aesni_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.aesni_enabled",
"Vale.X64.CPU_Features_s.pclmulqdq_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_aesni_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_aesni_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 93,
"end_line": 26,
"start_col": 2,
"start_line": 22
} |
Prims.Tot | val va_wp_Check_aesni_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | val va_wp_Check_aesni_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_aesni_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.aesni_enabled",
"Vale.X64.CPU_Features_s.pclmulqdq_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_aesni_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_aesni_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 21,
"end_line": 44,
"start_col": 2,
"start_line": 39
} |
Prims.Tot | val va_wp_Check_avx2_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (()))) | val va_wp_Check_avx2_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_avx2_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx2_cpuid_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_avx2_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx2_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 99,
"end_line": 222,
"start_col": 2,
"start_line": 218
} |
Prims.Tot | val va_ens_Check_sha_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_sha_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_sha_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_sha_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.sha_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_sha_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_sha_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 65,
"end_line": 72,
"start_col": 2,
"start_line": 68
} |
Prims.Tot | val va_req_Check_adx_bmi2_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_adx_bmi2_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_adx_bmi2_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_adx_bmi2_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_adx_bmi2_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_adx_bmi2_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 88,
"end_line": 108,
"start_col": 2,
"start_line": 108
} |
Prims.Tot | val va_ens_Check_avx_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_avx_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_avx_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx_cpuid_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_avx_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_avx_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 65,
"end_line": 162,
"start_col": 2,
"start_line": 158
} |
Prims.Tot | val va_ens_Check_sse_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_sse_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_sse_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_sse_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.sse_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_sse_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_sse_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 65,
"end_line": 294,
"start_col": 2,
"start_line": 290
} |
Prims.Tot | val va_ens_Check_rdrand_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_rdrand_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_rdrand_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_rdrand_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.rdrand_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_rdrand_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_rdrand_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 65,
"end_line": 337,
"start_col": 2,
"start_line": 333
} |
Prims.Tot | val va_req_Check_aesni_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_aesni_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_aesni_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_aesni_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_aesni_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_aesni_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 85,
"end_line": 19,
"start_col": 2,
"start_line": 19
} |
Prims.Tot | val va_req_Check_avx_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_avx_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_avx_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_avx_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 83,
"end_line": 155,
"start_col": 2,
"start_line": 155
} |
Prims.Tot | val va_req_Check_sse_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_sse_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_sse_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_sse_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_sse_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_sse_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 83,
"end_line": 287,
"start_col": 2,
"start_line": 287
} |
Prims.Tot | val va_ens_Check_avx2_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_avx2_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_avx2_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx2_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx2_cpuid_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_avx2_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_avx2_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 65,
"end_line": 205,
"start_col": 2,
"start_line": 201
} |
Prims.Tot | val va_ens_Check_movbe_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_movbe_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_movbe_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_movbe_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.movbe_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_movbe_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_movbe_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 65,
"end_line": 249,
"start_col": 2,
"start_line": 245
} |
Prims.Tot | val va_req_Check_avx512_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_avx512_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_avx512_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx512_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_avx512_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx512_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 86,
"end_line": 375,
"start_col": 2,
"start_line": 375
} |
Prims.Tot | val va_req_Check_rdrand_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_rdrand_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_rdrand_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_rdrand_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_rdrand_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_rdrand_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 86,
"end_line": 330,
"start_col": 2,
"start_line": 330
} |
Prims.Tot | val va_wp_Check_adx_bmi2_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (()))) | val va_wp_Check_adx_bmi2_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_adx_bmi2_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.adx_enabled",
"Vale.X64.CPU_Features_s.bmi2_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_adx_bmi2_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_adx_bmi2_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 16,
"end_line": 133,
"start_col": 2,
"start_line": 128
} |
Prims.Tot | val va_wp_Check_avx_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (()))) | val va_wp_Check_avx_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_avx_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx_cpuid_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr] | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_avx_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 98,
"end_line": 178,
"start_col": 2,
"start_line": 174
} |
Prims.Tot | val va_req_Check_movbe_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_movbe_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_movbe_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_movbe_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_movbe_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_movbe_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 85,
"end_line": 242,
"start_col": 2,
"start_line": 242
} |
Prims.Tot | val va_wp_Check_rdrand_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (()))) | val va_wp_Check_rdrand_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_rdrand_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.rdrand_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_rdrand_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_rdrand_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 95,
"end_line": 354,
"start_col": 2,
"start_line": 350
} |
Prims.Tot | val va_wp_Check_sse_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (()))) | val va_wp_Check_sse_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_sse_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.sse_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr] | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_sse_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_sse_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 92,
"end_line": 310,
"start_col": 2,
"start_line": 306
} |
Prims.Tot | val va_ens_Check_avx512_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))) | val va_ens_Check_avx512_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_avx512_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR11
va_sM
(va_update_reg64 rR10
va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx512_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx512_cpuid_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR11",
"Vale.X64.Machine_s.rR10",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_avx512_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_avx512_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 67,
"end_line": 383,
"start_col": 2,
"start_line": 378
} |
Prims.Tot | val va_req_Check_avx512_xcr0_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_avx512_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled /\ avx_xcr0) | val va_req_Check_avx512_xcr0_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_avx512_xcr0_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_avx512_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled /\ avx_xcr0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx512_xcr0_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.osxsave_enabled",
"Vale.X64.CPU_Features_s.avx_xcr0",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win))
//--
//-- Check_avx_xcr0_stdcall
val va_code_Check_avx_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled)
let va_ens_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0))))))
val va_lemma_Check_avx_xcr0_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0
/\ osxsave_enabled))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))
[@ va_qattr]
let va_wp_Check_avx_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ osxsave_enabled /\ (forall (va_x_rax:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64 rRdx va_x_rdx
(va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0))) in va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) ==> va_k va_sM (())))
val va_wpProof_Check_avx_xcr0_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_xcr0_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_xcr0_stdcall win)
([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM,
va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_xcr0_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_xcr0_stdcall
win)) =
(va_QProc (va_code_Check_avx_xcr0_stdcall win) ([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64
rRcx; va_Mod_reg64 rRax]) (va_wp_Check_avx_xcr0_stdcall win) (va_wpProof_Check_avx_xcr0_stdcall
win))
//--
//-- Check_avx512_xcr0_stdcall
val va_code_Check_avx512_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_xcr0_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_avx512_xcr0_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx512_xcr0_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 32,
"end_line": 516,
"start_col": 2,
"start_line": 515
} |
Prims.Tot | val va_req_Check_avx2_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_avx2_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_avx2_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx2_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_avx2_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx2_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 84,
"end_line": 198,
"start_col": 2,
"start_line": 198
} |
Prims.Tot | val va_wp_Check_movbe_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (()))) | val va_wp_Check_movbe_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_movbe_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.movbe_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_movbe_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_movbe_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 94,
"end_line": 266,
"start_col": 2,
"start_line": 262
} |
Prims.Tot | val va_wp_Check_sha_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (()))) | val va_wp_Check_sha_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_sha_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.sha_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr] | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_sha_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_sha_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 92,
"end_line": 88,
"start_col": 2,
"start_line": 84
} |
Prims.Tot | val va_ens_Check_osxsave_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | val va_ens_Check_osxsave_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_osxsave_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rR9
va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx
va_sM
(va_update_reg64 rRbx
va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_osxsave_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.osxsave_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_osxsave_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_osxsave_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 65,
"end_line": 431,
"start_col": 2,
"start_line": 427
} |
Prims.Tot | val va_ens_Check_avx_xcr0_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0)))))) | val va_ens_Check_avx_xcr0_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_avx_xcr0_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_avx_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx_xcr0_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx_xcr0",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win))
//--
//-- Check_avx_xcr0_stdcall
val va_code_Check_avx_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled)
let va_ens_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_avx_xcr0_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_avx_xcr0_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 46,
"end_line": 477,
"start_col": 2,
"start_line": 474
} |
Prims.Tot | val va_req_Check_osxsave_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0) | val va_req_Check_osxsave_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_osxsave_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_osxsave_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_osxsave_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_osxsave_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 87,
"end_line": 424,
"start_col": 2,
"start_line": 424
} |
Prims.Tot | val va_req_Check_avx_xcr0_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_req_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled) | val va_req_Check_avx_xcr0_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop
let va_req_Check_avx_xcr0_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop = | false | null | false | (va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Prims.l_and",
"Vale.X64.Decls.va_require_total",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx_xcr0_stdcall",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.osxsave_enabled",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win))
//--
//-- Check_avx_xcr0_stdcall
val va_code_Check_avx_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_xcr0_stdcall : win:bool -> Tot va_pbool | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_req_Check_avx_xcr0_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) : prop | [] | Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx_xcr0_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> Prims.prop | {
"end_col": 20,
"end_line": 471,
"start_col": 2,
"start_line": 470
} |
Prims.Tot | val va_wp_Check_avx512_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(()))) | val va_wp_Check_avx512_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_avx512_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_r10: nat64)
(va_x_r11: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR11
va_x_r11
(va_upd_reg64 rR10
va_x_r10
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx512_cpuid_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR11",
"Vale.X64.Machine_s.rR10",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_avx512_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx512_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 10,
"end_line": 403,
"start_col": 2,
"start_line": 397
} |
Prims.Tot | val va_wp_Check_osxsave_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (()))) | val va_wp_Check_osxsave_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_osxsave_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\
(forall (va_x_rax: nat64)
(va_x_rbx: nat64)
(va_x_rcx: nat64)
(va_x_rdx: nat64)
(va_x_r9: nat64)
(va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rR9
va_x_r9
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx
va_x_rcx
(va_upd_reg64 rRbx va_x_rbx (va_upd_reg64 rRax va_x_rax va_s0)))))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.osxsave_enabled",
"Vale.Def.Types_s.nat64",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_osxsave_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_osxsave_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 96,
"end_line": 448,
"start_col": 2,
"start_line": 444
} |
Prims.Tot | val va_wp_Check_avx512_xcr0_stdcall
(win: bool)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_avx512_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0))
: Type0 =
(va_get_ok va_s0 /\ osxsave_enabled /\ avx_xcr0 /\ (forall (va_x_rax:nat64) (va_x_rcx:nat64)
(va_x_rdx:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0))) in va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) ==> va_k va_sM (()))) | val va_wp_Check_avx512_xcr0_stdcall
(win: bool)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_avx512_xcr0_stdcall
(win: bool)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\ osxsave_enabled /\ avx_xcr0 /\
(forall (va_x_rax: nat64) (va_x_rcx: nat64) (va_x_rdx: nat64) (va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0)))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) ==> va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.osxsave_enabled",
"Vale.X64.CPU_Features_s.avx_xcr0",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx512_xcr0",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win))
//--
//-- Check_avx_xcr0_stdcall
val va_code_Check_avx_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled)
let va_ens_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0))))))
val va_lemma_Check_avx_xcr0_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0
/\ osxsave_enabled))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))
[@ va_qattr]
let va_wp_Check_avx_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ osxsave_enabled /\ (forall (va_x_rax:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64 rRdx va_x_rdx
(va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0))) in va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) ==> va_k va_sM (())))
val va_wpProof_Check_avx_xcr0_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_xcr0_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_xcr0_stdcall win)
([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM,
va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_xcr0_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_xcr0_stdcall
win)) =
(va_QProc (va_code_Check_avx_xcr0_stdcall win) ([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64
rRcx; va_Mod_reg64 rRax]) (va_wp_Check_avx_xcr0_stdcall win) (va_wpProof_Check_avx_xcr0_stdcall
win))
//--
//-- Check_avx512_xcr0_stdcall
val va_code_Check_avx512_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled /\ avx_xcr0)
let va_ens_Check_avx512_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0))))))
val va_lemma_Check_avx512_xcr0_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_xcr0_stdcall win) va_s0 /\ va_get_ok
va_s0 /\ osxsave_enabled /\ avx_xcr0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))
[@ va_qattr]
let va_wp_Check_avx512_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_avx512_xcr0_stdcall
(win: bool)
(va_s0: va_state)
(va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx512_xcr0_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 82,
"end_line": 538,
"start_col": 2,
"start_line": 535
} |
Prims.Tot | val va_wp_Check_avx_xcr0_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_wp_Check_avx_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ osxsave_enabled /\ (forall (va_x_rax:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64 rRdx va_x_rdx
(va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0))) in va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) ==> va_k va_sM (()))) | val va_wp_Check_avx_xcr0_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0
let va_wp_Check_avx_xcr0_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 = | false | null | false | (va_get_ok va_s0 /\ osxsave_enabled /\
(forall (va_x_rax: nat64) (va_x_rcx: nat64) (va_x_rdx: nat64) (va_x_efl: Vale.X64.Flags.t).
let va_sM =
va_upd_flags va_x_efl
(va_upd_reg64 rRdx
va_x_rdx
(va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0)))
in
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) ==> va_k va_sM (()))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Vale.X64.CPU_Features_s.osxsave_enabled",
"Prims.l_Forall",
"Vale.X64.Memory.nat64",
"Vale.X64.Flags.t",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx_xcr0",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_upd_flags",
"Vale.X64.Decls.va_upd_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win))
//--
//-- Check_avx_xcr0_stdcall
val va_code_Check_avx_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled)
let va_ens_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0))))))
val va_lemma_Check_avx_xcr0_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0
/\ osxsave_enabled))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))
[@ va_qattr]
let va_wp_Check_avx_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_wp_Check_avx_xcr0_stdcall (win: bool) (va_s0: va_state) (va_k: (va_state -> unit -> Type0))
: Type0 | [] | Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx_xcr0_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
win: Prims.bool ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Type0 | {
"end_col": 70,
"end_line": 493,
"start_col": 2,
"start_line": 490
} |
Prims.Tot | val va_ens_Check_avx512_xcr0_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_ens_Check_avx512_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0)))))) | val va_ens_Check_avx512_xcr0_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop
let va_ens_Check_avx512_xcr0_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop = | false | null | false | (va_req_Check_avx512_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) /\
va_state_eq va_sM
(va_update_flags va_sM
(va_update_reg64 rRdx
va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.X64.Decls.va_fuel",
"Prims.l_and",
"Vale.Lib.X64.Cpuidstdcall.va_req_Check_avx512_xcr0_stdcall",
"Vale.X64.Decls.va_ensure_total",
"Prims.b2t",
"Vale.X64.Decls.va_get_ok",
"Prims.l_imp",
"Prims.l_not",
"Prims.eq2",
"Prims.int",
"Vale.X64.Decls.va_get_reg64",
"Vale.X64.Machine_s.rRax",
"Vale.X64.CPU_Features_s.avx512_xcr0",
"Vale.X64.Decls.va_state_eq",
"Vale.X64.Decls.va_update_flags",
"Vale.X64.Decls.va_update_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Decls.va_update_ok",
"Prims.prop"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win))
//--
//-- Check_avx_xcr0_stdcall
val va_code_Check_avx_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled)
let va_ens_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0))))))
val va_lemma_Check_avx_xcr0_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0
/\ osxsave_enabled))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))
[@ va_qattr]
let va_wp_Check_avx_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ osxsave_enabled /\ (forall (va_x_rax:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64 rRdx va_x_rdx
(va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0))) in va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) ==> va_k va_sM (())))
val va_wpProof_Check_avx_xcr0_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_xcr0_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_xcr0_stdcall win)
([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM,
va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_xcr0_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_xcr0_stdcall
win)) =
(va_QProc (va_code_Check_avx_xcr0_stdcall win) ([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64
rRcx; va_Mod_reg64 rRax]) (va_wp_Check_avx_xcr0_stdcall win) (va_wpProof_Check_avx_xcr0_stdcall
win))
//--
//-- Check_avx512_xcr0_stdcall
val va_code_Check_avx512_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled /\ avx_xcr0)
let va_ens_Check_avx512_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state) | false | true | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_ens_Check_avx512_xcr0_stdcall
(va_b0: va_code)
(va_s0: va_state)
(win: bool)
(va_sM: va_state)
(va_fM: va_fuel)
: prop | [] | Vale.Lib.X64.Cpuidstdcall.va_ens_Check_avx512_xcr0_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
va_sM: Vale.X64.Decls.va_state ->
va_fM: Vale.X64.Decls.va_fuel
-> Prims.prop | {
"end_col": 46,
"end_line": 522,
"start_col": 2,
"start_line": 519
} |
Prims.Tot | val va_quick_Check_aesni_stdcall (win: bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win)) | val va_quick_Check_aesni_stdcall (win: bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
let va_quick_Check_aesni_stdcall (win: bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_aesni_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_aesni_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_aesni_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_aesni_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win)) | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_aesni_stdcall (win: bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_aesni_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_aesni_stdcall win) | {
"end_col": 41,
"end_line": 57,
"start_col": 2,
"start_line": 55
} |
Prims.Tot | val va_quick_Check_avx_stdcall (win: bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win)) | val va_quick_Check_avx_stdcall (win: bool) : (va_quickCode unit (va_code_Check_avx_stdcall win))
let va_quick_Check_avx_stdcall (win: bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_avx_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_avx_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr] | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_avx_stdcall (win: bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_avx_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx_stdcall win) | {
"end_col": 39,
"end_line": 190,
"start_col": 2,
"start_line": 188
} |
Prims.Tot | val va_quick_Check_sha_stdcall (win: bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win)) | val va_quick_Check_sha_stdcall (win: bool) : (va_quickCode unit (va_code_Check_sha_stdcall win))
let va_quick_Check_sha_stdcall (win: bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_sha_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_sha_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_sha_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_sha_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr] | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_sha_stdcall (win: bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_sha_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_sha_stdcall win) | {
"end_col": 39,
"end_line": 100,
"start_col": 2,
"start_line": 98
} |
Prims.Tot | val va_quick_Check_sse_stdcall (win: bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win)) | val va_quick_Check_sse_stdcall (win: bool) : (va_quickCode unit (va_code_Check_sse_stdcall win))
let va_quick_Check_sse_stdcall (win: bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_sse_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_sse_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_sse_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_sse_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr] | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_sse_stdcall (win: bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_sse_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_sse_stdcall win) | {
"end_col": 39,
"end_line": 322,
"start_col": 2,
"start_line": 320
} |
Prims.Tot | val va_quick_Check_movbe_stdcall (win: bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win)) | val va_quick_Check_movbe_stdcall (win: bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
let va_quick_Check_movbe_stdcall (win: bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_movbe_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_movbe_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_movbe_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_movbe_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win)) | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_movbe_stdcall (win: bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_movbe_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_movbe_stdcall win) | {
"end_col": 41,
"end_line": 279,
"start_col": 2,
"start_line": 277
} |
Prims.Tot | val va_quick_Check_avx2_stdcall (win: bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win)) | val va_quick_Check_avx2_stdcall (win: bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win))
let va_quick_Check_avx2_stdcall (win: bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_avx2_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx2_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx2_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_avx2_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr] | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_avx2_stdcall (win: bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_avx2_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx2_stdcall win) | {
"end_col": 40,
"end_line": 234,
"start_col": 2,
"start_line": 232
} |
Prims.Tot | val va_quick_Check_adx_bmi2_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_adx_bmi2_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win)) | val va_quick_Check_adx_bmi2_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_adx_bmi2_stdcall win))
let va_quick_Check_adx_bmi2_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_adx_bmi2_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_adx_bmi2_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_adx_bmi2_stdcall win)
(va_wpProof_Check_adx_bmi2_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_adx_bmi2_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_adx_bmi2_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_adx_bmi2_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_adx_bmi2_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_adx_bmi2_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_adx_bmi2_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_adx_bmi2_stdcall win) | {
"end_col": 49,
"end_line": 147,
"start_col": 2,
"start_line": 145
} |
Prims.Tot | val va_quick_Check_avx512_xcr0_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx512_xcr0_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_avx512_xcr0_stdcall (win:bool) : (va_quickCode unit
(va_code_Check_avx512_xcr0_stdcall win)) =
(va_QProc (va_code_Check_avx512_xcr0_stdcall win) ([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64
rRcx; va_Mod_reg64 rRax]) (va_wp_Check_avx512_xcr0_stdcall win)
(va_wpProof_Check_avx512_xcr0_stdcall win)) | val va_quick_Check_avx512_xcr0_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx512_xcr0_stdcall win))
let va_quick_Check_avx512_xcr0_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx512_xcr0_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_avx512_xcr0_stdcall win)
([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRax])
(va_wp_Check_avx512_xcr0_stdcall win)
(va_wpProof_Check_avx512_xcr0_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx512_xcr0_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx512_xcr0_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_avx512_xcr0_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win))
//--
//-- Check_avx_xcr0_stdcall
val va_code_Check_avx_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled)
let va_ens_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0))))))
val va_lemma_Check_avx_xcr0_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0
/\ osxsave_enabled))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))
[@ va_qattr]
let va_wp_Check_avx_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ osxsave_enabled /\ (forall (va_x_rax:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64 rRdx va_x_rdx
(va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0))) in va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) ==> va_k va_sM (())))
val va_wpProof_Check_avx_xcr0_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_xcr0_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_xcr0_stdcall win)
([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM,
va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_xcr0_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_xcr0_stdcall
win)) =
(va_QProc (va_code_Check_avx_xcr0_stdcall win) ([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64
rRcx; va_Mod_reg64 rRax]) (va_wp_Check_avx_xcr0_stdcall win) (va_wpProof_Check_avx_xcr0_stdcall
win))
//--
//-- Check_avx512_xcr0_stdcall
val va_code_Check_avx512_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled /\ avx_xcr0)
let va_ens_Check_avx512_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0))))))
val va_lemma_Check_avx512_xcr0_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_xcr0_stdcall win) va_s0 /\ va_get_ok
va_s0 /\ osxsave_enabled /\ avx_xcr0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))
[@ va_qattr]
let va_wp_Check_avx512_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0))
: Type0 =
(va_get_ok va_s0 /\ osxsave_enabled /\ avx_xcr0 /\ (forall (va_x_rax:nat64) (va_x_rcx:nat64)
(va_x_rdx:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0))) in va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_xcr0) ==> va_k va_sM (())))
val va_wpProof_Check_avx512_xcr0_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_xcr0_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_xcr0_stdcall win)
([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM,
va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_xcr0_stdcall (win:bool) : (va_quickCode unit | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_avx512_xcr0_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx512_xcr0_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_avx512_xcr0_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx512_xcr0_stdcall win) | {
"end_col": 47,
"end_line": 552,
"start_col": 2,
"start_line": 550
} |
Prims.Tot | val va_quick_Check_avx512_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx512_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win)) | val va_quick_Check_avx512_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx512_stdcall win))
let va_quick_Check_avx512_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx512_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_avx512_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR11;
va_Mod_reg64 rR10;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_avx512_stdcall win)
(va_wpProof_Check_avx512_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx512_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR11",
"Vale.X64.Machine_s.rR10",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx512_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_avx512_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_avx512_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx512_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_avx512_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx512_stdcall win) | {
"end_col": 82,
"end_line": 416,
"start_col": 2,
"start_line": 414
} |
Prims.Tot | val va_quick_Check_osxsave_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_osxsave_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win)) | val va_quick_Check_osxsave_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_osxsave_stdcall win))
let va_quick_Check_osxsave_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_osxsave_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_osxsave_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_osxsave_stdcall win)
(va_wpProof_Check_osxsave_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_osxsave_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_osxsave_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_osxsave_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_osxsave_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_osxsave_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_osxsave_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_osxsave_stdcall win) | {
"end_col": 48,
"end_line": 462,
"start_col": 2,
"start_line": 460
} |
Prims.Tot | val va_quick_Check_rdrand_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_rdrand_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win)) | val va_quick_Check_rdrand_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_rdrand_stdcall win))
let va_quick_Check_rdrand_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_rdrand_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_rdrand_stdcall win)
([
va_Mod_flags;
va_Mod_reg64 rR9;
va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx;
va_Mod_reg64 rRbx;
va_Mod_reg64 rRax
])
(va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_rdrand_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rR9",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRbx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_rdrand_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_rdrand_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_rdrand_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_rdrand_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_rdrand_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_rdrand_stdcall win) | {
"end_col": 42,
"end_line": 367,
"start_col": 2,
"start_line": 365
} |
Prims.Tot | val va_quick_Check_avx_xcr0_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx_xcr0_stdcall win)) | [
{
"abbrev": false,
"full_module": "Vale.Lib.X64.Cpuid",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Meta",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.CPU_Features_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCodes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.QuickCode",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.InsBasic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Decls",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.State",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.X64.Machine_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.Types",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.X64",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let va_quick_Check_avx_xcr0_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_xcr0_stdcall
win)) =
(va_QProc (va_code_Check_avx_xcr0_stdcall win) ([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64
rRcx; va_Mod_reg64 rRax]) (va_wp_Check_avx_xcr0_stdcall win) (va_wpProof_Check_avx_xcr0_stdcall
win)) | val va_quick_Check_avx_xcr0_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx_xcr0_stdcall win))
let va_quick_Check_avx_xcr0_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx_xcr0_stdcall win)) = | false | null | false | (va_QProc (va_code_Check_avx_xcr0_stdcall win)
([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRax])
(va_wp_Check_avx_xcr0_stdcall win)
(va_wpProof_Check_avx_xcr0_stdcall win)) | {
"checked_file": "Vale.Lib.X64.Cpuidstdcall.fsti.checked",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsBasic.fsti.checked",
"Vale.X64.Flags.fsti.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Arch.Types.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Vale.Lib.X64.Cpuidstdcall.fsti"
} | [
"total"
] | [
"Prims.bool",
"Vale.X64.QuickCode.va_QProc",
"Prims.unit",
"Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx_xcr0_stdcall",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_flags",
"Vale.X64.QuickCode.va_Mod_reg64",
"Vale.X64.Machine_s.rRdx",
"Vale.X64.Machine_s.rRcx",
"Vale.X64.Machine_s.rRax",
"Prims.Nil",
"Vale.Lib.X64.Cpuidstdcall.va_wp_Check_avx_xcr0_stdcall",
"Vale.Lib.X64.Cpuidstdcall.va_wpProof_Check_avx_xcr0_stdcall",
"Vale.X64.QuickCode.va_quickCode"
] | [] | module Vale.Lib.X64.Cpuidstdcall
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
//-- Check_aesni_stdcall
val va_code_Check_aesni_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_aesni_stdcall : win:bool -> Tot va_pbool
let va_req_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_aesni_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_aesni_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_aesni_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_aesni_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_aesni_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
aesni_enabled /\ pclmulqdq_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==>
va_k va_sM (())))
val va_wpProof_Check_aesni_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_aesni_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_aesni_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_aesni_stdcall (win:bool) : (va_quickCode unit (va_code_Check_aesni_stdcall win))
=
(va_QProc (va_code_Check_aesni_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_aesni_stdcall win)
(va_wpProof_Check_aesni_stdcall win))
//--
//-- Check_sha_stdcall
val va_code_Check_sha_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sha_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sha_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sha_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sha_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sha_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sha_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sha_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sha_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sha_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sha_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sha_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sha_stdcall win)) =
(va_QProc (va_code_Check_sha_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sha_stdcall win)
(va_wpProof_Check_sha_stdcall win))
//--
//-- Check_adx_bmi2_stdcall
val va_code_Check_adx_bmi2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_adx_bmi2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_adx_bmi2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_adx_bmi2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\
va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM
(va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_adx_bmi2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_adx_bmi2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_adx_bmi2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
adx_enabled /\ bmi2_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k
va_sM (())))
val va_wpProof_Check_adx_bmi2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_adx_bmi2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_adx_bmi2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_adx_bmi2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_adx_bmi2_stdcall
win)) =
(va_QProc (va_code_Check_adx_bmi2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_adx_bmi2_stdcall
win) (va_wpProof_Check_adx_bmi2_stdcall win))
//--
//-- Check_avx_stdcall
val va_code_Check_avx_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_stdcall win)) =
(va_QProc (va_code_Check_avx_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx_stdcall win)
(va_wpProof_Check_avx_stdcall win))
//--
//-- Check_avx2_stdcall
val va_code_Check_avx2_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx2_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx2_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx2_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_avx2_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx2_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_avx2_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0
=
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
avx2_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_avx2_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx2_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx2_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx2_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx2_stdcall win)) =
(va_QProc (va_code_Check_avx2_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_avx2_stdcall win)
(va_wpProof_Check_avx2_stdcall win))
//--
//-- Check_movbe_stdcall
val va_code_Check_movbe_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_movbe_stdcall : win:bool -> Tot va_pbool
let va_req_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_movbe_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_movbe_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM
== va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9
va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_movbe_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_movbe_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_movbe_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
movbe_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_movbe_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_movbe_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_movbe_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_movbe_stdcall (win:bool) : (va_quickCode unit (va_code_Check_movbe_stdcall win))
=
(va_QProc (va_code_Check_movbe_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_movbe_stdcall win)
(va_wpProof_Check_movbe_stdcall win))
//--
//-- Check_sse_stdcall
val va_code_Check_sse_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_sse_stdcall : win:bool -> Tot va_pbool
let va_req_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_sse_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_sse_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok
va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_sse_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_sse_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx
va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM (va_update_reg64
rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_sse_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
sse_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_sse_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_sse_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_sse_stdcall win) ([va_Mod_flags;
va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax])
va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_sse_stdcall (win:bool) : (va_quickCode unit (va_code_Check_sse_stdcall win)) =
(va_QProc (va_code_Check_sse_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_sse_stdcall win)
(va_wpProof_Check_sse_stdcall win))
//--
//-- Check_rdrand_stdcall
val va_code_Check_rdrand_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_rdrand_stdcall : win:bool -> Tot va_pbool
let va_req_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_rdrand_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_rdrand_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_rdrand_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_rdrand_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_rdrand_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
rdrand_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_rdrand_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_rdrand_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_rdrand_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_rdrand_stdcall (win:bool) : (va_quickCode unit (va_code_Check_rdrand_stdcall
win)) =
(va_QProc (va_code_Check_rdrand_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_rdrand_stdcall win)
(va_wpProof_Check_rdrand_stdcall win))
//--
//-- Check_avx512_stdcall
val va_code_Check_avx512_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx512_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_avx512_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx512_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64
rRbx va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rR11 va_sM (va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))))
val va_lemma_Check_avx512_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx512_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM ==
va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR11 va_sM
(va_update_reg64 rR10 va_sM (va_update_reg64 rR9 va_sM (va_update_reg64 rRdx va_sM
(va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))))))
[@ va_qattr]
let va_wp_Check_avx512_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_r10:nat64) (va_x_r11:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM =
va_upd_flags va_x_efl (va_upd_reg64 rR11 va_x_r11 (va_upd_reg64 rR10 va_x_r10 (va_upd_reg64 rR9
va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0
==> avx512_cpuid_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM
(())))
val va_wpProof_Check_avx512_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx512_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx512_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64 rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx;
va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx512_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx512_stdcall
win)) =
(va_QProc (va_code_Check_avx512_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR11; va_Mod_reg64
rR10; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64
rRax]) (va_wp_Check_avx512_stdcall win) (va_wpProof_Check_avx512_stdcall win))
//--
//-- Check_osxsave_stdcall
val va_code_Check_osxsave_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_osxsave_stdcall : win:bool -> Tot va_pbool
let va_req_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0)
let va_ens_Check_osxsave_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_osxsave_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx
va_sM == va_get_reg64 rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64
rR9 va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0))))))))
val va_lemma_Check_osxsave_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_osxsave_stdcall win) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64
rRbx va_s0 /\ va_state_eq va_sM (va_update_flags va_sM (va_update_reg64 rR9 va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRbx va_sM
(va_update_reg64 rRax va_sM (va_update_ok va_sM va_s0)))))))))
[@ va_qattr]
let va_wp_Check_osxsave_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ (forall (va_x_rax:nat64) (va_x_rbx:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_r9:nat64) (va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64
rR9 va_x_r9 (va_upd_reg64 rRdx va_x_rdx (va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRbx va_x_rbx
(va_upd_reg64 rRax va_x_rax va_s0))))) in va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==>
osxsave_enabled) /\ va_get_reg64 rRbx va_sM == va_get_reg64 rRbx va_s0 ==> va_k va_sM (())))
val va_wpProof_Check_osxsave_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_osxsave_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_osxsave_stdcall win)
([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx;
va_Mod_reg64 rRax]) va_s0 va_k ((va_sM, va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_osxsave_stdcall (win:bool) : (va_quickCode unit (va_code_Check_osxsave_stdcall
win)) =
(va_QProc (va_code_Check_osxsave_stdcall win) ([va_Mod_flags; va_Mod_reg64 rR9; va_Mod_reg64
rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRbx; va_Mod_reg64 rRax]) (va_wp_Check_osxsave_stdcall
win) (va_wpProof_Check_osxsave_stdcall win))
//--
//-- Check_avx_xcr0_stdcall
val va_code_Check_avx_xcr0_stdcall : win:bool -> Tot va_code
val va_codegen_success_Check_avx_xcr0_stdcall : win:bool -> Tot va_pbool
let va_req_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) : prop =
(va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0 /\
osxsave_enabled)
let va_ens_Check_avx_xcr0_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (va_sM:va_state)
(va_fM:va_fuel) : prop =
(va_req_Check_avx_xcr0_stdcall va_b0 va_s0 win /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\
va_get_ok va_sM /\ (va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM
(va_update_flags va_sM (va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64
rRax va_sM (va_update_ok va_sM va_s0))))))
val va_lemma_Check_avx_xcr0_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Check_avx_xcr0_stdcall win) va_s0 /\ va_get_ok va_s0
/\ osxsave_enabled))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) /\ va_state_eq va_sM (va_update_flags va_sM
(va_update_reg64 rRdx va_sM (va_update_reg64 rRcx va_sM (va_update_reg64 rRax va_sM
(va_update_ok va_sM va_s0)))))))
[@ va_qattr]
let va_wp_Check_avx_xcr0_stdcall (win:bool) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) :
Type0 =
(va_get_ok va_s0 /\ osxsave_enabled /\ (forall (va_x_rax:nat64) (va_x_rcx:nat64) (va_x_rdx:nat64)
(va_x_efl:Vale.X64.Flags.t) . let va_sM = va_upd_flags va_x_efl (va_upd_reg64 rRdx va_x_rdx
(va_upd_reg64 rRcx va_x_rcx (va_upd_reg64 rRax va_x_rax va_s0))) in va_get_ok va_sM /\
(va_get_reg64 rRax va_sM =!= 0 ==> avx_xcr0) ==> va_k va_sM (())))
val va_wpProof_Check_avx_xcr0_stdcall : win:bool -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Check_avx_xcr0_stdcall win va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Check_avx_xcr0_stdcall win)
([va_Mod_flags; va_Mod_reg64 rRdx; va_Mod_reg64 rRcx; va_Mod_reg64 rRax]) va_s0 va_k ((va_sM,
va_f0, va_g))))
[@ "opaque_to_smt" va_qattr]
let va_quick_Check_avx_xcr0_stdcall (win:bool) : (va_quickCode unit (va_code_Check_avx_xcr0_stdcall | false | false | Vale.Lib.X64.Cpuidstdcall.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": true,
"smtencoding_l_arith_repr": "native",
"smtencoding_nl_arith_repr": "wrapped",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [
"smt.arith.nl=false",
"smt.QI.EAGER_THRESHOLD=100",
"smt.CASE_SPLIT=3"
],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val va_quick_Check_avx_xcr0_stdcall (win: bool)
: (va_quickCode unit (va_code_Check_avx_xcr0_stdcall win)) | [] | Vale.Lib.X64.Cpuidstdcall.va_quick_Check_avx_xcr0_stdcall | {
"file_name": "obj/Vale.Lib.X64.Cpuidstdcall.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | win: Prims.bool
-> Vale.X64.QuickCode.va_quickCode Prims.unit
(Vale.Lib.X64.Cpuidstdcall.va_code_Check_avx_xcr0_stdcall win) | {
"end_col": 9,
"end_line": 507,
"start_col": 2,
"start_line": 505
} |
Prims.Tot | val key0_len:(x: UInt32.t{UInt32.v x = B.length key0}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul | val key0_len:(x: UInt32.t{UInt32.v x = B.length key0})
let key0_len:(x: UInt32.t{UInt32.v x = B.length key0}) = | false | null | false | 16ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val key0_len:(x: UInt32.t{UInt32.v x = B.length key0}) | [] | Test.Vectors.Aes128Gcm.key0_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.key0} | {
"end_col": 6,
"end_line": 13,
"start_col": 2,
"start_line": 13
} |
Prims.Tot | val tag0_len:(x: UInt32.t{UInt32.v x = B.length tag0}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul | val tag0_len:(x: UInt32.t{UInt32.v x = B.length tag0})
let tag0_len:(x: UInt32.t{UInt32.v x = B.length tag0}) = | false | null | false | 16ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val tag0_len:(x: UInt32.t{UInt32.v x = B.length tag0}) | [] | Test.Vectors.Aes128Gcm.tag0_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.tag0} | {
"end_col": 6,
"end_line": 45,
"start_col": 2,
"start_line": 45
} |
Prims.Tot | val nonce1_len:(x: UInt32.t{UInt32.v x = B.length nonce1}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul | val nonce1_len:(x: UInt32.t{UInt32.v x = B.length nonce1})
let nonce1_len:(x: UInt32.t{UInt32.v x = B.length nonce1}) = | false | null | false | 12ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val nonce1_len:(x: UInt32.t{UInt32.v x = B.length nonce1}) | [] | Test.Vectors.Aes128Gcm.nonce1_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.nonce1} | {
"end_col": 6,
"end_line": 69,
"start_col": 2,
"start_line": 69
} |
Prims.Tot | val input1_len:(x: UInt32.t{UInt32.v x = B.length input1}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul | val input1_len:(x: UInt32.t{UInt32.v x = B.length input1})
let input1_len:(x: UInt32.t{UInt32.v x = B.length input1}) = | false | null | false | 16ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val input1_len:(x: UInt32.t{UInt32.v x = B.length input1}) | [] | Test.Vectors.Aes128Gcm.input1_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.input1} | {
"end_col": 6,
"end_line": 85,
"start_col": 2,
"start_line": 85
} |
Prims.Tot | val aad1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l | val aad1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b})
let aad1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l = [] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val aad1:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.aad1 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 0 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 74,
"start_col": 2,
"start_line": 72
} |
Prims.Tot | val nonce0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | val nonce0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
let nonce0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l =
[0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy]
in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Cons",
"FStar.UInt8.__uint_to_t",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val nonce0:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.nonce0 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 12 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 18,
"start_col": 2,
"start_line": 16
} |
Prims.Tot | val key3_len:(x: UInt32.t{UInt32.v x = B.length key3}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let key3_len: (x:UInt32.t { UInt32.v x = B.length key3 }) =
16ul | val key3_len:(x: UInt32.t{UInt32.v x = B.length key3})
let key3_len:(x: UInt32.t{UInt32.v x = B.length key3}) = | false | null | false | 16ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul
let key2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) =
16ul
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce2_len: (x:UInt32.t { UInt32.v x = B.length nonce2 }) =
12ul
let aad2: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad2_len: (x:UInt32.t { UInt32.v x = B.length aad2 }) =
0ul
let input2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b /\ B.disjoint b aad2 }) =
B.recall aad2;[@inline_let] let l = [ 0xd9uy; 0x31uy; 0x32uy; 0x25uy; 0xf8uy; 0x84uy; 0x06uy; 0xe5uy; 0xa5uy; 0x59uy; 0x09uy; 0xc5uy; 0xafuy; 0xf5uy; 0x26uy; 0x9auy; 0x86uy; 0xa7uy; 0xa9uy; 0x53uy; 0x15uy; 0x34uy; 0xf7uy; 0xdauy; 0x2euy; 0x4cuy; 0x30uy; 0x3duy; 0x8auy; 0x31uy; 0x8auy; 0x72uy; 0x1cuy; 0x3cuy; 0x0cuy; 0x95uy; 0x95uy; 0x68uy; 0x09uy; 0x53uy; 0x2fuy; 0xcfuy; 0x0euy; 0x24uy; 0x49uy; 0xa6uy; 0xb5uy; 0x25uy; 0xb1uy; 0x6auy; 0xeduy; 0xf5uy; 0xaauy; 0x0duy; 0xe6uy; 0x57uy; 0xbauy; 0x63uy; 0x7buy; 0x39uy; 0x1auy; 0xafuy; 0xd2uy; 0x55uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input2_len: (x:UInt32.t { UInt32.v x = B.length input2 }) =
64ul
let tag2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x4duy; 0x5cuy; 0x2auy; 0xf3uy; 0x27uy; 0xcduy; 0x64uy; 0xa6uy; 0x2cuy; 0xf3uy; 0x5auy; 0xbduy; 0x2buy; 0xa6uy; 0xfauy; 0xb4uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag2_len: (x:UInt32.t { UInt32.v x = B.length tag2 }) =
16ul
let output2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b }) =
[@inline_let] let l = [ 0x42uy; 0x83uy; 0x1euy; 0xc2uy; 0x21uy; 0x77uy; 0x74uy; 0x24uy; 0x4buy; 0x72uy; 0x21uy; 0xb7uy; 0x84uy; 0xd0uy; 0xd4uy; 0x9cuy; 0xe3uy; 0xaauy; 0x21uy; 0x2fuy; 0x2cuy; 0x02uy; 0xa4uy; 0xe0uy; 0x35uy; 0xc1uy; 0x7euy; 0x23uy; 0x29uy; 0xacuy; 0xa1uy; 0x2euy; 0x21uy; 0xd5uy; 0x14uy; 0xb2uy; 0x54uy; 0x66uy; 0x93uy; 0x1cuy; 0x7duy; 0x8fuy; 0x6auy; 0x5auy; 0xacuy; 0x84uy; 0xaauy; 0x05uy; 0x1buy; 0xa3uy; 0x0buy; 0x39uy; 0x6auy; 0x0auy; 0xacuy; 0x97uy; 0x3duy; 0x58uy; 0xe0uy; 0x91uy; 0x47uy; 0x3fuy; 0x59uy; 0x85uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output2_len: (x:UInt32.t { UInt32.v x = B.length output2 }) =
64ul
let key3: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val key3_len:(x: UInt32.t{UInt32.v x = B.length key3}) | [] | Test.Vectors.Aes128Gcm.key3_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.key3} | {
"end_col": 6,
"end_line": 157,
"start_col": 2,
"start_line": 157
} |
Prims.Tot | val output0_len:(x: UInt32.t{UInt32.v x = B.length output0}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul | val output0_len:(x: UInt32.t{UInt32.v x = B.length output0})
let output0_len:(x: UInt32.t{UInt32.v x = B.length output0}) = | false | null | false | 0ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val output0_len:(x: UInt32.t{UInt32.v x = B.length output0}) | [] | Test.Vectors.Aes128Gcm.output0_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.output0} | {
"end_col": 5,
"end_line": 53,
"start_col": 2,
"start_line": 53
} |
Prims.Tot | val input0_len:(x: UInt32.t{UInt32.v x = B.length input0}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul | val input0_len:(x: UInt32.t{UInt32.v x = B.length input0})
let input0_len:(x: UInt32.t{UInt32.v x = B.length input0}) = | false | null | false | 0ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val input0_len:(x: UInt32.t{UInt32.v x = B.length input0}) | [] | Test.Vectors.Aes128Gcm.input0_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.input0} | {
"end_col": 5,
"end_line": 37,
"start_col": 2,
"start_line": 37
} |
Prims.Tot | val aad2:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let aad2: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l | val aad2:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b})
let aad2:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l = [] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul
let key2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) =
16ul
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce2_len: (x:UInt32.t { UInt32.v x = B.length nonce2 }) =
12ul | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val aad2:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.aad2 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 0 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 122,
"start_col": 2,
"start_line": 120
} |
Prims.Tot | val nonce2_len:(x: UInt32.t{UInt32.v x = B.length nonce2}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let nonce2_len: (x:UInt32.t { UInt32.v x = B.length nonce2 }) =
12ul | val nonce2_len:(x: UInt32.t{UInt32.v x = B.length nonce2})
let nonce2_len:(x: UInt32.t{UInt32.v x = B.length nonce2}) = | false | null | false | 12ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul
let key2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) =
16ul
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val nonce2_len:(x: UInt32.t{UInt32.v x = B.length nonce2}) | [] | Test.Vectors.Aes128Gcm.nonce2_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.nonce2} | {
"end_col": 6,
"end_line": 117,
"start_col": 2,
"start_line": 117
} |
Prims.Tot | val output1_len:(x: UInt32.t{UInt32.v x = B.length output1}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul | val output1_len:(x: UInt32.t{UInt32.v x = B.length output1})
let output1_len:(x: UInt32.t{UInt32.v x = B.length output1}) = | false | null | false | 16ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val output1_len:(x: UInt32.t{UInt32.v x = B.length output1}) | [] | Test.Vectors.Aes128Gcm.output1_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.output1} | {
"end_col": 6,
"end_line": 101,
"start_col": 2,
"start_line": 101
} |
Prims.Tot | val nonce1:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | val nonce1:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
let nonce1:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l =
[0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy]
in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Cons",
"FStar.UInt8.__uint_to_t",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val nonce1:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.nonce1 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 12 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 66,
"start_col": 2,
"start_line": 64
} |
Prims.Tot | val aad0:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l | val aad0:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b})
let aad0:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l = [] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val aad0:(b: B.buffer UInt8.t {B.length b = 0 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.aad0 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 0 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 26,
"start_col": 2,
"start_line": 24
} |
Prims.Tot | val nonce3_len:(x: UInt32.t{UInt32.v x = B.length nonce3}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let nonce3_len: (x:UInt32.t { UInt32.v x = B.length nonce3 }) =
12ul | val nonce3_len:(x: UInt32.t{UInt32.v x = B.length nonce3})
let nonce3_len:(x: UInt32.t{UInt32.v x = B.length nonce3}) = | false | null | false | 12ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul
let key2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) =
16ul
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce2_len: (x:UInt32.t { UInt32.v x = B.length nonce2 }) =
12ul
let aad2: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad2_len: (x:UInt32.t { UInt32.v x = B.length aad2 }) =
0ul
let input2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b /\ B.disjoint b aad2 }) =
B.recall aad2;[@inline_let] let l = [ 0xd9uy; 0x31uy; 0x32uy; 0x25uy; 0xf8uy; 0x84uy; 0x06uy; 0xe5uy; 0xa5uy; 0x59uy; 0x09uy; 0xc5uy; 0xafuy; 0xf5uy; 0x26uy; 0x9auy; 0x86uy; 0xa7uy; 0xa9uy; 0x53uy; 0x15uy; 0x34uy; 0xf7uy; 0xdauy; 0x2euy; 0x4cuy; 0x30uy; 0x3duy; 0x8auy; 0x31uy; 0x8auy; 0x72uy; 0x1cuy; 0x3cuy; 0x0cuy; 0x95uy; 0x95uy; 0x68uy; 0x09uy; 0x53uy; 0x2fuy; 0xcfuy; 0x0euy; 0x24uy; 0x49uy; 0xa6uy; 0xb5uy; 0x25uy; 0xb1uy; 0x6auy; 0xeduy; 0xf5uy; 0xaauy; 0x0duy; 0xe6uy; 0x57uy; 0xbauy; 0x63uy; 0x7buy; 0x39uy; 0x1auy; 0xafuy; 0xd2uy; 0x55uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input2_len: (x:UInt32.t { UInt32.v x = B.length input2 }) =
64ul
let tag2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x4duy; 0x5cuy; 0x2auy; 0xf3uy; 0x27uy; 0xcduy; 0x64uy; 0xa6uy; 0x2cuy; 0xf3uy; 0x5auy; 0xbduy; 0x2buy; 0xa6uy; 0xfauy; 0xb4uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag2_len: (x:UInt32.t { UInt32.v x = B.length tag2 }) =
16ul
let output2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b }) =
[@inline_let] let l = [ 0x42uy; 0x83uy; 0x1euy; 0xc2uy; 0x21uy; 0x77uy; 0x74uy; 0x24uy; 0x4buy; 0x72uy; 0x21uy; 0xb7uy; 0x84uy; 0xd0uy; 0xd4uy; 0x9cuy; 0xe3uy; 0xaauy; 0x21uy; 0x2fuy; 0x2cuy; 0x02uy; 0xa4uy; 0xe0uy; 0x35uy; 0xc1uy; 0x7euy; 0x23uy; 0x29uy; 0xacuy; 0xa1uy; 0x2euy; 0x21uy; 0xd5uy; 0x14uy; 0xb2uy; 0x54uy; 0x66uy; 0x93uy; 0x1cuy; 0x7duy; 0x8fuy; 0x6auy; 0x5auy; 0xacuy; 0x84uy; 0xaauy; 0x05uy; 0x1buy; 0xa3uy; 0x0buy; 0x39uy; 0x6auy; 0x0auy; 0xacuy; 0x97uy; 0x3duy; 0x58uy; 0xe0uy; 0x91uy; 0x47uy; 0x3fuy; 0x59uy; 0x85uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output2_len: (x:UInt32.t { UInt32.v x = B.length output2 }) =
64ul
let key3: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key3_len: (x:UInt32.t { UInt32.v x = B.length key3 }) =
16ul
let nonce3: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val nonce3_len:(x: UInt32.t{UInt32.v x = B.length nonce3}) | [] | Test.Vectors.Aes128Gcm.nonce3_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.nonce3} | {
"end_col": 6,
"end_line": 165,
"start_col": 2,
"start_line": 165
} |
Prims.Tot | val key0:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | val key0:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b})
let key0:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l =
[
0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy;
0x00uy; 0x00uy; 0x00uy; 0x00uy
]
in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Cons",
"FStar.UInt8.__uint_to_t",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0" | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val key0:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.key0 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 16 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 10,
"start_col": 2,
"start_line": 8
} |
Prims.Tot | val tag2_len:(x: UInt32.t{UInt32.v x = B.length tag2}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let tag2_len: (x:UInt32.t { UInt32.v x = B.length tag2 }) =
16ul | val tag2_len:(x: UInt32.t{UInt32.v x = B.length tag2})
let tag2_len:(x: UInt32.t{UInt32.v x = B.length tag2}) = | false | null | false | 16ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul
let key2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) =
16ul
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce2_len: (x:UInt32.t { UInt32.v x = B.length nonce2 }) =
12ul
let aad2: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad2_len: (x:UInt32.t { UInt32.v x = B.length aad2 }) =
0ul
let input2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b /\ B.disjoint b aad2 }) =
B.recall aad2;[@inline_let] let l = [ 0xd9uy; 0x31uy; 0x32uy; 0x25uy; 0xf8uy; 0x84uy; 0x06uy; 0xe5uy; 0xa5uy; 0x59uy; 0x09uy; 0xc5uy; 0xafuy; 0xf5uy; 0x26uy; 0x9auy; 0x86uy; 0xa7uy; 0xa9uy; 0x53uy; 0x15uy; 0x34uy; 0xf7uy; 0xdauy; 0x2euy; 0x4cuy; 0x30uy; 0x3duy; 0x8auy; 0x31uy; 0x8auy; 0x72uy; 0x1cuy; 0x3cuy; 0x0cuy; 0x95uy; 0x95uy; 0x68uy; 0x09uy; 0x53uy; 0x2fuy; 0xcfuy; 0x0euy; 0x24uy; 0x49uy; 0xa6uy; 0xb5uy; 0x25uy; 0xb1uy; 0x6auy; 0xeduy; 0xf5uy; 0xaauy; 0x0duy; 0xe6uy; 0x57uy; 0xbauy; 0x63uy; 0x7buy; 0x39uy; 0x1auy; 0xafuy; 0xd2uy; 0x55uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input2_len: (x:UInt32.t { UInt32.v x = B.length input2 }) =
64ul
let tag2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x4duy; 0x5cuy; 0x2auy; 0xf3uy; 0x27uy; 0xcduy; 0x64uy; 0xa6uy; 0x2cuy; 0xf3uy; 0x5auy; 0xbduy; 0x2buy; 0xa6uy; 0xfauy; 0xb4uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val tag2_len:(x: UInt32.t{UInt32.v x = B.length tag2}) | [] | Test.Vectors.Aes128Gcm.tag2_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.tag2} | {
"end_col": 6,
"end_line": 141,
"start_col": 2,
"start_line": 141
} |
Prims.Tot | val nonce3:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let nonce3: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | val nonce3:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b})
let nonce3:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l =
[0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy]
in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Cons",
"FStar.UInt8.__uint_to_t",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul
let key2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) =
16ul
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce2_len: (x:UInt32.t { UInt32.v x = B.length nonce2 }) =
12ul
let aad2: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad2_len: (x:UInt32.t { UInt32.v x = B.length aad2 }) =
0ul
let input2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b /\ B.disjoint b aad2 }) =
B.recall aad2;[@inline_let] let l = [ 0xd9uy; 0x31uy; 0x32uy; 0x25uy; 0xf8uy; 0x84uy; 0x06uy; 0xe5uy; 0xa5uy; 0x59uy; 0x09uy; 0xc5uy; 0xafuy; 0xf5uy; 0x26uy; 0x9auy; 0x86uy; 0xa7uy; 0xa9uy; 0x53uy; 0x15uy; 0x34uy; 0xf7uy; 0xdauy; 0x2euy; 0x4cuy; 0x30uy; 0x3duy; 0x8auy; 0x31uy; 0x8auy; 0x72uy; 0x1cuy; 0x3cuy; 0x0cuy; 0x95uy; 0x95uy; 0x68uy; 0x09uy; 0x53uy; 0x2fuy; 0xcfuy; 0x0euy; 0x24uy; 0x49uy; 0xa6uy; 0xb5uy; 0x25uy; 0xb1uy; 0x6auy; 0xeduy; 0xf5uy; 0xaauy; 0x0duy; 0xe6uy; 0x57uy; 0xbauy; 0x63uy; 0x7buy; 0x39uy; 0x1auy; 0xafuy; 0xd2uy; 0x55uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input2_len: (x:UInt32.t { UInt32.v x = B.length input2 }) =
64ul
let tag2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x4duy; 0x5cuy; 0x2auy; 0xf3uy; 0x27uy; 0xcduy; 0x64uy; 0xa6uy; 0x2cuy; 0xf3uy; 0x5auy; 0xbduy; 0x2buy; 0xa6uy; 0xfauy; 0xb4uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag2_len: (x:UInt32.t { UInt32.v x = B.length tag2 }) =
16ul
let output2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b }) =
[@inline_let] let l = [ 0x42uy; 0x83uy; 0x1euy; 0xc2uy; 0x21uy; 0x77uy; 0x74uy; 0x24uy; 0x4buy; 0x72uy; 0x21uy; 0xb7uy; 0x84uy; 0xd0uy; 0xd4uy; 0x9cuy; 0xe3uy; 0xaauy; 0x21uy; 0x2fuy; 0x2cuy; 0x02uy; 0xa4uy; 0xe0uy; 0x35uy; 0xc1uy; 0x7euy; 0x23uy; 0x29uy; 0xacuy; 0xa1uy; 0x2euy; 0x21uy; 0xd5uy; 0x14uy; 0xb2uy; 0x54uy; 0x66uy; 0x93uy; 0x1cuy; 0x7duy; 0x8fuy; 0x6auy; 0x5auy; 0xacuy; 0x84uy; 0xaauy; 0x05uy; 0x1buy; 0xa3uy; 0x0buy; 0x39uy; 0x6auy; 0x0auy; 0xacuy; 0x97uy; 0x3duy; 0x58uy; 0xe0uy; 0x91uy; 0x47uy; 0x3fuy; 0x59uy; 0x85uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output2_len: (x:UInt32.t { UInt32.v x = B.length output2 }) =
64ul
let key3: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key3_len: (x:UInt32.t { UInt32.v x = B.length key3 }) =
16ul | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val nonce3:(b: B.buffer UInt8.t {B.length b = 12 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.nonce3 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 12 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 162,
"start_col": 2,
"start_line": 160
} |
Prims.Tot | val tag1:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | val tag1:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b})
let tag1:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l =
[
0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy;
0x12uy; 0x57uy; 0xbduy; 0xdfuy
]
in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Cons",
"FStar.UInt8.__uint_to_t",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val tag1:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.tag1 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 16 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 90,
"start_col": 2,
"start_line": 88
} |
Prims.Tot | val tag0:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | val tag0:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b})
let tag0:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) = | false | null | false | [@@ inline_let ]let l =
[
0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy;
0xa4uy; 0xe7uy; 0x45uy; 0x5auy
]
in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"LowStar.Buffer.gcmalloc_of_list",
"FStar.UInt8.t",
"FStar.Monotonic.HyperHeap.root",
"LowStar.Monotonic.Buffer.mbuffer",
"LowStar.Buffer.trivial_preorder",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"LowStar.Monotonic.Buffer.length",
"FStar.Pervasives.normalize_term",
"FStar.List.Tot.Base.length",
"Prims.b2t",
"Prims.op_Negation",
"LowStar.Monotonic.Buffer.g_is_null",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowStar.Monotonic.Buffer.recallable",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.op_Equality",
"Prims.int",
"LowStar.Buffer.buffer",
"Prims.list",
"Prims.Cons",
"FStar.UInt8.__uint_to_t",
"Prims.Nil"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val tag0:(b: B.buffer UInt8.t {B.length b = 16 /\ B.recallable b}) | [] | Test.Vectors.Aes128Gcm.tag0 | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | b:
LowStar.Buffer.buffer FStar.UInt8.t
{LowStar.Monotonic.Buffer.length b = 16 /\ LowStar.Monotonic.Buffer.recallable b} | {
"end_col": 38,
"end_line": 42,
"start_col": 2,
"start_line": 40
} |
Prims.Tot | val tag3_len:(x: UInt32.t{UInt32.v x = B.length tag3}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let tag3_len: (x:UInt32.t { UInt32.v x = B.length tag3 }) =
16ul | val tag3_len:(x: UInt32.t{UInt32.v x = B.length tag3})
let tag3_len:(x: UInt32.t{UInt32.v x = B.length tag3}) = | false | null | false | 16ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul
let key2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) =
16ul
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce2_len: (x:UInt32.t { UInt32.v x = B.length nonce2 }) =
12ul
let aad2: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad2_len: (x:UInt32.t { UInt32.v x = B.length aad2 }) =
0ul
let input2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b /\ B.disjoint b aad2 }) =
B.recall aad2;[@inline_let] let l = [ 0xd9uy; 0x31uy; 0x32uy; 0x25uy; 0xf8uy; 0x84uy; 0x06uy; 0xe5uy; 0xa5uy; 0x59uy; 0x09uy; 0xc5uy; 0xafuy; 0xf5uy; 0x26uy; 0x9auy; 0x86uy; 0xa7uy; 0xa9uy; 0x53uy; 0x15uy; 0x34uy; 0xf7uy; 0xdauy; 0x2euy; 0x4cuy; 0x30uy; 0x3duy; 0x8auy; 0x31uy; 0x8auy; 0x72uy; 0x1cuy; 0x3cuy; 0x0cuy; 0x95uy; 0x95uy; 0x68uy; 0x09uy; 0x53uy; 0x2fuy; 0xcfuy; 0x0euy; 0x24uy; 0x49uy; 0xa6uy; 0xb5uy; 0x25uy; 0xb1uy; 0x6auy; 0xeduy; 0xf5uy; 0xaauy; 0x0duy; 0xe6uy; 0x57uy; 0xbauy; 0x63uy; 0x7buy; 0x39uy; 0x1auy; 0xafuy; 0xd2uy; 0x55uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input2_len: (x:UInt32.t { UInt32.v x = B.length input2 }) =
64ul
let tag2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x4duy; 0x5cuy; 0x2auy; 0xf3uy; 0x27uy; 0xcduy; 0x64uy; 0xa6uy; 0x2cuy; 0xf3uy; 0x5auy; 0xbduy; 0x2buy; 0xa6uy; 0xfauy; 0xb4uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag2_len: (x:UInt32.t { UInt32.v x = B.length tag2 }) =
16ul
let output2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b }) =
[@inline_let] let l = [ 0x42uy; 0x83uy; 0x1euy; 0xc2uy; 0x21uy; 0x77uy; 0x74uy; 0x24uy; 0x4buy; 0x72uy; 0x21uy; 0xb7uy; 0x84uy; 0xd0uy; 0xd4uy; 0x9cuy; 0xe3uy; 0xaauy; 0x21uy; 0x2fuy; 0x2cuy; 0x02uy; 0xa4uy; 0xe0uy; 0x35uy; 0xc1uy; 0x7euy; 0x23uy; 0x29uy; 0xacuy; 0xa1uy; 0x2euy; 0x21uy; 0xd5uy; 0x14uy; 0xb2uy; 0x54uy; 0x66uy; 0x93uy; 0x1cuy; 0x7duy; 0x8fuy; 0x6auy; 0x5auy; 0xacuy; 0x84uy; 0xaauy; 0x05uy; 0x1buy; 0xa3uy; 0x0buy; 0x39uy; 0x6auy; 0x0auy; 0xacuy; 0x97uy; 0x3duy; 0x58uy; 0xe0uy; 0x91uy; 0x47uy; 0x3fuy; 0x59uy; 0x85uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output2_len: (x:UInt32.t { UInt32.v x = B.length output2 }) =
64ul
let key3: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key3_len: (x:UInt32.t { UInt32.v x = B.length key3 }) =
16ul
let nonce3: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce3_len: (x:UInt32.t { UInt32.v x = B.length nonce3 }) =
12ul
let aad3: (b: B.buffer UInt8.t { B.length b = 20 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xeduy; 0xfauy; 0xceuy; 0xdeuy; 0xaduy; 0xbeuy; 0xefuy; 0xfeuy; 0xeduy; 0xfauy; 0xceuy; 0xdeuy; 0xaduy; 0xbeuy; 0xefuy; 0xabuy; 0xaduy; 0xdauy; 0xd2uy; ] in
assert_norm (List.Tot.length l = 20);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad3_len: (x:UInt32.t { UInt32.v x = B.length aad3 }) =
20ul
let input3: (b: B.buffer UInt8.t { B.length b = 60 /\ B.recallable b /\ B.disjoint b aad3 }) =
B.recall aad3;[@inline_let] let l = [ 0xd9uy; 0x31uy; 0x32uy; 0x25uy; 0xf8uy; 0x84uy; 0x06uy; 0xe5uy; 0xa5uy; 0x59uy; 0x09uy; 0xc5uy; 0xafuy; 0xf5uy; 0x26uy; 0x9auy; 0x86uy; 0xa7uy; 0xa9uy; 0x53uy; 0x15uy; 0x34uy; 0xf7uy; 0xdauy; 0x2euy; 0x4cuy; 0x30uy; 0x3duy; 0x8auy; 0x31uy; 0x8auy; 0x72uy; 0x1cuy; 0x3cuy; 0x0cuy; 0x95uy; 0x95uy; 0x68uy; 0x09uy; 0x53uy; 0x2fuy; 0xcfuy; 0x0euy; 0x24uy; 0x49uy; 0xa6uy; 0xb5uy; 0x25uy; 0xb1uy; 0x6auy; 0xeduy; 0xf5uy; 0xaauy; 0x0duy; 0xe6uy; 0x57uy; 0xbauy; 0x63uy; 0x7buy; 0x39uy; ] in
assert_norm (List.Tot.length l = 60);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input3_len: (x:UInt32.t { UInt32.v x = B.length input3 }) =
60ul
let tag3: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x5buy; 0xc9uy; 0x4fuy; 0xbcuy; 0x32uy; 0x21uy; 0xa5uy; 0xdbuy; 0x94uy; 0xfauy; 0xe9uy; 0x5auy; 0xe7uy; 0x12uy; 0x1auy; 0x47uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val tag3_len:(x: UInt32.t{UInt32.v x = B.length tag3}) | [] | Test.Vectors.Aes128Gcm.tag3_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.tag3} | {
"end_col": 6,
"end_line": 189,
"start_col": 2,
"start_line": 189
} |
Prims.Tot | val output3_len:(x: UInt32.t{UInt32.v x = B.length output3}) | [
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "Test.Vectors",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | false | let output3_len: (x:UInt32.t { UInt32.v x = B.length output3 }) =
60ul | val output3_len:(x: UInt32.t{UInt32.v x = B.length output3})
let output3_len:(x: UInt32.t{UInt32.v x = B.length output3}) = | false | null | false | 60ul | {
"checked_file": "Test.Vectors.Aes128Gcm.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.fst.checked"
],
"interface_file": false,
"source_file": "Test.Vectors.Aes128Gcm.fst"
} | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Test.Vectors.Aes128Gcm
module B = LowStar.Buffer
#set-options "--max_fuel 0 --max_ifuel 0"
let key0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key0_len: (x:UInt32.t { UInt32.v x = B.length key0 }) =
16ul
let nonce0: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce0_len: (x:UInt32.t { UInt32.v x = B.length nonce0 }) =
12ul
let aad0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad0_len: (x:UInt32.t { UInt32.v x = B.length aad0 }) =
0ul
let input0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b /\ B.disjoint b aad0 }) =
B.recall aad0;[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input0_len: (x:UInt32.t { UInt32.v x = B.length input0 }) =
0ul
let tag0: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x58uy; 0xe2uy; 0xfcuy; 0xceuy; 0xfauy; 0x7euy; 0x30uy; 0x61uy; 0x36uy; 0x7fuy; 0x1duy; 0x57uy; 0xa4uy; 0xe7uy; 0x45uy; 0x5auy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag0_len: (x:UInt32.t { UInt32.v x = B.length tag0 }) =
16ul
let output0: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output0_len: (x:UInt32.t { UInt32.v x = B.length output0 }) =
0ul
let key1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key1_len: (x:UInt32.t { UInt32.v x = B.length key1 }) =
16ul
let nonce1: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce1_len: (x:UInt32.t { UInt32.v x = B.length nonce1 }) =
12ul
let aad1: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad1_len: (x:UInt32.t { UInt32.v x = B.length aad1 }) =
0ul
let input1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b /\ B.disjoint b aad1 }) =
B.recall aad1;[@inline_let] let l = [ 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; 0x00uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input1_len: (x:UInt32.t { UInt32.v x = B.length input1 }) =
16ul
let tag1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xabuy; 0x6euy; 0x47uy; 0xd4uy; 0x2cuy; 0xecuy; 0x13uy; 0xbduy; 0xf5uy; 0x3auy; 0x67uy; 0xb2uy; 0x12uy; 0x57uy; 0xbduy; 0xdfuy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag1_len: (x:UInt32.t { UInt32.v x = B.length tag1 }) =
16ul
let output1: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x03uy; 0x88uy; 0xdauy; 0xceuy; 0x60uy; 0xb6uy; 0xa3uy; 0x92uy; 0xf3uy; 0x28uy; 0xc2uy; 0xb9uy; 0x71uy; 0xb2uy; 0xfeuy; 0x78uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output1_len: (x:UInt32.t { UInt32.v x = B.length output1 }) =
16ul
let key2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key2_len: (x:UInt32.t { UInt32.v x = B.length key2 }) =
16ul
let nonce2: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce2_len: (x:UInt32.t { UInt32.v x = B.length nonce2 }) =
12ul
let aad2: (b: B.buffer UInt8.t { B.length b = 0 /\ B.recallable b }) =
[@inline_let] let l = [ ] in
assert_norm (List.Tot.length l = 0);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad2_len: (x:UInt32.t { UInt32.v x = B.length aad2 }) =
0ul
let input2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b /\ B.disjoint b aad2 }) =
B.recall aad2;[@inline_let] let l = [ 0xd9uy; 0x31uy; 0x32uy; 0x25uy; 0xf8uy; 0x84uy; 0x06uy; 0xe5uy; 0xa5uy; 0x59uy; 0x09uy; 0xc5uy; 0xafuy; 0xf5uy; 0x26uy; 0x9auy; 0x86uy; 0xa7uy; 0xa9uy; 0x53uy; 0x15uy; 0x34uy; 0xf7uy; 0xdauy; 0x2euy; 0x4cuy; 0x30uy; 0x3duy; 0x8auy; 0x31uy; 0x8auy; 0x72uy; 0x1cuy; 0x3cuy; 0x0cuy; 0x95uy; 0x95uy; 0x68uy; 0x09uy; 0x53uy; 0x2fuy; 0xcfuy; 0x0euy; 0x24uy; 0x49uy; 0xa6uy; 0xb5uy; 0x25uy; 0xb1uy; 0x6auy; 0xeduy; 0xf5uy; 0xaauy; 0x0duy; 0xe6uy; 0x57uy; 0xbauy; 0x63uy; 0x7buy; 0x39uy; 0x1auy; 0xafuy; 0xd2uy; 0x55uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input2_len: (x:UInt32.t { UInt32.v x = B.length input2 }) =
64ul
let tag2: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x4duy; 0x5cuy; 0x2auy; 0xf3uy; 0x27uy; 0xcduy; 0x64uy; 0xa6uy; 0x2cuy; 0xf3uy; 0x5auy; 0xbduy; 0x2buy; 0xa6uy; 0xfauy; 0xb4uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag2_len: (x:UInt32.t { UInt32.v x = B.length tag2 }) =
16ul
let output2: (b: B.buffer UInt8.t { B.length b = 64 /\ B.recallable b }) =
[@inline_let] let l = [ 0x42uy; 0x83uy; 0x1euy; 0xc2uy; 0x21uy; 0x77uy; 0x74uy; 0x24uy; 0x4buy; 0x72uy; 0x21uy; 0xb7uy; 0x84uy; 0xd0uy; 0xd4uy; 0x9cuy; 0xe3uy; 0xaauy; 0x21uy; 0x2fuy; 0x2cuy; 0x02uy; 0xa4uy; 0xe0uy; 0x35uy; 0xc1uy; 0x7euy; 0x23uy; 0x29uy; 0xacuy; 0xa1uy; 0x2euy; 0x21uy; 0xd5uy; 0x14uy; 0xb2uy; 0x54uy; 0x66uy; 0x93uy; 0x1cuy; 0x7duy; 0x8fuy; 0x6auy; 0x5auy; 0xacuy; 0x84uy; 0xaauy; 0x05uy; 0x1buy; 0xa3uy; 0x0buy; 0x39uy; 0x6auy; 0x0auy; 0xacuy; 0x97uy; 0x3duy; 0x58uy; 0xe0uy; 0x91uy; 0x47uy; 0x3fuy; 0x59uy; 0x85uy; ] in
assert_norm (List.Tot.length l = 64);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let output2_len: (x:UInt32.t { UInt32.v x = B.length output2 }) =
64ul
let key3: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xffuy; 0xe9uy; 0x92uy; 0x86uy; 0x65uy; 0x73uy; 0x1cuy; 0x6duy; 0x6auy; 0x8fuy; 0x94uy; 0x67uy; 0x30uy; 0x83uy; 0x08uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let key3_len: (x:UInt32.t { UInt32.v x = B.length key3 }) =
16ul
let nonce3: (b: B.buffer UInt8.t { B.length b = 12 /\ B.recallable b }) =
[@inline_let] let l = [ 0xcauy; 0xfeuy; 0xbauy; 0xbeuy; 0xfauy; 0xceuy; 0xdbuy; 0xaduy; 0xdeuy; 0xcauy; 0xf8uy; 0x88uy; ] in
assert_norm (List.Tot.length l = 12);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let nonce3_len: (x:UInt32.t { UInt32.v x = B.length nonce3 }) =
12ul
let aad3: (b: B.buffer UInt8.t { B.length b = 20 /\ B.recallable b }) =
[@inline_let] let l = [ 0xfeuy; 0xeduy; 0xfauy; 0xceuy; 0xdeuy; 0xaduy; 0xbeuy; 0xefuy; 0xfeuy; 0xeduy; 0xfauy; 0xceuy; 0xdeuy; 0xaduy; 0xbeuy; 0xefuy; 0xabuy; 0xaduy; 0xdauy; 0xd2uy; ] in
assert_norm (List.Tot.length l = 20);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let aad3_len: (x:UInt32.t { UInt32.v x = B.length aad3 }) =
20ul
let input3: (b: B.buffer UInt8.t { B.length b = 60 /\ B.recallable b /\ B.disjoint b aad3 }) =
B.recall aad3;[@inline_let] let l = [ 0xd9uy; 0x31uy; 0x32uy; 0x25uy; 0xf8uy; 0x84uy; 0x06uy; 0xe5uy; 0xa5uy; 0x59uy; 0x09uy; 0xc5uy; 0xafuy; 0xf5uy; 0x26uy; 0x9auy; 0x86uy; 0xa7uy; 0xa9uy; 0x53uy; 0x15uy; 0x34uy; 0xf7uy; 0xdauy; 0x2euy; 0x4cuy; 0x30uy; 0x3duy; 0x8auy; 0x31uy; 0x8auy; 0x72uy; 0x1cuy; 0x3cuy; 0x0cuy; 0x95uy; 0x95uy; 0x68uy; 0x09uy; 0x53uy; 0x2fuy; 0xcfuy; 0x0euy; 0x24uy; 0x49uy; 0xa6uy; 0xb5uy; 0x25uy; 0xb1uy; 0x6auy; 0xeduy; 0xf5uy; 0xaauy; 0x0duy; 0xe6uy; 0x57uy; 0xbauy; 0x63uy; 0x7buy; 0x39uy; ] in
assert_norm (List.Tot.length l = 60);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let input3_len: (x:UInt32.t { UInt32.v x = B.length input3 }) =
60ul
let tag3: (b: B.buffer UInt8.t { B.length b = 16 /\ B.recallable b }) =
[@inline_let] let l = [ 0x5buy; 0xc9uy; 0x4fuy; 0xbcuy; 0x32uy; 0x21uy; 0xa5uy; 0xdbuy; 0x94uy; 0xfauy; 0xe9uy; 0x5auy; 0xe7uy; 0x12uy; 0x1auy; 0x47uy; ] in
assert_norm (List.Tot.length l = 16);
B.gcmalloc_of_list HyperStack.root l
inline_for_extraction let tag3_len: (x:UInt32.t { UInt32.v x = B.length tag3 }) =
16ul
let output3: (b: B.buffer UInt8.t { B.length b = 60 /\ B.recallable b }) =
[@inline_let] let l = [ 0x42uy; 0x83uy; 0x1euy; 0xc2uy; 0x21uy; 0x77uy; 0x74uy; 0x24uy; 0x4buy; 0x72uy; 0x21uy; 0xb7uy; 0x84uy; 0xd0uy; 0xd4uy; 0x9cuy; 0xe3uy; 0xaauy; 0x21uy; 0x2fuy; 0x2cuy; 0x02uy; 0xa4uy; 0xe0uy; 0x35uy; 0xc1uy; 0x7euy; 0x23uy; 0x29uy; 0xacuy; 0xa1uy; 0x2euy; 0x21uy; 0xd5uy; 0x14uy; 0xb2uy; 0x54uy; 0x66uy; 0x93uy; 0x1cuy; 0x7duy; 0x8fuy; 0x6auy; 0x5auy; 0xacuy; 0x84uy; 0xaauy; 0x05uy; 0x1buy; 0xa3uy; 0x0buy; 0x39uy; 0x6auy; 0x0auy; 0xacuy; 0x97uy; 0x3duy; 0x58uy; 0xe0uy; 0x91uy; ] in
assert_norm (List.Tot.length l = 60);
B.gcmalloc_of_list HyperStack.root l | false | false | Test.Vectors.Aes128Gcm.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_elim_box": false,
"smtencoding_l_arith_repr": "boxwrap",
"smtencoding_nl_arith_repr": "boxwrap",
"smtencoding_valid_elim": false,
"smtencoding_valid_intro": true,
"tcnorm": true,
"trivial_pre_for_unannotated_effectful_fns": false,
"z3cliopt": [],
"z3refresh": false,
"z3rlimit": 5,
"z3rlimit_factor": 1,
"z3seed": 0,
"z3smtopt": [],
"z3version": "4.8.5"
} | null | val output3_len:(x: UInt32.t{UInt32.v x = B.length output3}) | [] | Test.Vectors.Aes128Gcm.output3_len | {
"file_name": "providers/test/vectors/Test.Vectors.Aes128Gcm.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: FStar.UInt32.t{FStar.UInt32.v x = LowStar.Monotonic.Buffer.length Test.Vectors.Aes128Gcm.output3} | {
"end_col": 6,
"end_line": 197,
"start_col": 2,
"start_line": 197
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.